Custom Filter in Grid

Hi Team,



I am making a custom filter at the grid header as below:







        <![CDATA[
                <input type='text' name='Filter1' onclick='(arguments[0]||event).cancelBubble=true;'
onblur='reloadGrid();' style='width:90%; font-size:8pt; font-family:Tahoma;' /> ,
<input type='text' name='Filter2' onclick='(arguments[0]||event).cancelBubble=true;'
onblur='reloadGrid();' style='width:90%; font-size:8pt; font-family:Tahoma;' />                 
             ]]>

        









The filter is using server side.



The problem is when i reload the grid after filtering, the filter state is gone. My purpose is having the grid result based on more than 1 filter fields.

Is there any way i can hold the filter state?



Thanks in advance.



dian

Which code your are using for grid reloading ?
If you are using something similar to the
grid.clearAll();
grid.loadXML(url?filter="+some);
tnen be sure that url returns only data part of grid without head section of grid. If response will contain head section it will cause grid re-initialization, which will result in filter state lost.
If only data will be returned then grid will maintain its state.


Hi thanks for the answer. It works great after i exclude the head section when reload the grid :wink:



Thank you.



dian