1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    8
    Vote Rating
    0
    koushikgraj is on a distinguished road

      0  

    Default servers side export functionality isse

    servers side export functionality isse


    Hi all,

    Please help me on how to get filtered values from the datagrid during server side export.

    Thanks

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Posts
    8
    Vote Rating
    0
    koushikgraj is on a distinguished road

      0  

    Default


    basically I need to get all filtered field name & values when i clicked on export button.

    currently I am getting sort parameter like below,
    Code:
    var sort_fields = (Groupdstore.sorters.items[0])?"&sort_fields="+Groupdstore.sorters.items[0].property+" "+Groupdstore.sorters.items[0].direction:'';
    And also can able to get selected columns using following code,
    Code:
    var column_length = AdminGroupPanel.columns.length;				var display_fields = '';
    				var display_fields_heading = '';
    				for(i=0;i<column_length;i++)
    				{
    					if(!AdminGroupPanel.columns[i].hidden && AdminGroupPanel.columns[i].dataIndex != false && AdminGroupPanel.columns[i].dataIndex != null)
    					{
    						display_fields += AdminGroupPanel.columns[i].dataIndex+',';
    						display_fields_heading += AdminGroupPanel.columns[i].text+',';
    					}
    				}
    So I am expecting the same way to get the filtered field name & values. But I dint find it under Grid Panel & Store both.

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    8
    Vote Rating
    0
    koushikgraj is on a distinguished road

      0  

    Default


    Hello Everyone,

    I got the solution for that,
    Code:
    var values = gridPanel.filters.getFilterData();for(var i=0;i<values.length;i++)
    {
    	filtered_values += "&filter["+i+"][data][type]="+values[i].data.type;
    	filtered_values += "&filter["+i+"][data][value]="+values[i].data.value;
    	filtered_values += "&filter["+i+"][field]="+values[i].field;
    }
    Thanks,
    Koushik