Announcement

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

    DataSource Client Only issue

    Hi,

    I've configured my datasource as follow:
    Code:
        	   setID(id);   
        	   setRecordXPath("items");  
      	   setDataFormat(DSDataFormat.JSON);
      	       
      	   //set field definition
    
               setDataURL("getData.do");  
               setClientOnly(true);
               setCriteriaPolicy(CriteriaPolicy.DROPONCHANGE);
    when I tried to the below call to fetch data, the parameter (m) is not send to the server side.

    Code:
    DSRequest dsRequest = new DSRequest();        
    dsRequest.setParams(m);
    grid.getDataSource().invalidateCache();
    grid.fetchData(null,null,dsRequest);
    If i set the clientOnly to false, then I can't use AdvancedFilter to filter data on client side.

    Can someone please help me? I need to pass parameters back to the server when the grid refresh and filter the grid data on client side by using AdvancedFilter.

    SmartGwt: 2.2
    GWT:1.5.3
    Browser: IE8

    Thanks,

    Kuan

    #2
    Does anyone have a solution?

    Comment

    Working...
    X