Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Force Server Side Filtering

    Hi, i'm using SmartGWT 2.5.

    I need to force my ListGrid to use Server-sided filtering ONLY.

    Is there an easy way to achieve this?

    I've already read about the methode invalidateCache() but i don't know where to add this and if this is the right one for my problem.

    Thanks in advance!

    #2
    Look at listgrid.getResultSet().setUseClientFiltering();
    MichalG

    Comment


      #3
      thnx i think i just solved it with this one:
      Code:
      this.addFilterEditorSubmitHandler(new FilterEditorSubmitHandler(){
      
      			@Override
      			public void onFilterEditorSubmit(FilterEditorSubmitEvent event) {
      				// TODO Auto-generated method stub
      				 CustomGrid.this.invalidateCache(); 
      			}
      			
      		});
      allthough the FAQ said that this may cause performance problems...^^ x_O

      Comment


        #4
        setUseClientFiltering

        I'm using this code:

        Code:
        listGrid.addDataArrivedHandler(new DataArrivedHandler() {
        	
        	@Override
        	public void onDataArrived(DataArrivedEvent event) {
        		listGrid.getResultSet().setUseClientFiltering(false);
        	}
        });

        Comment


          #5
          None of these approaches are correct. Use listGrid.setDataProperties() to setUseClientFiltering(false) before data is fetched.

          Comment

          Working...
          X