Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Naayan Dhumale on May 29, 2009 00:11
open dhtmlx forum
XGrid reset mehtod used to load initial data back to grid.

Hi Team,

I have a requirement to add a reset button beside the filter text box.

After doing some filter opertions using text box i want to load all initial data back which i got at the first time (all data before applying filters).
Please suggest me some methods use to implement this functionality ( reset button operartion).

Regards,
Narayan Dhumale

Answer posted by dhxSupport on May 29, 2009 00:43
You can add following button on your page:
<button onclick="mygrid.filterBy(INDEX,'');mygrid.getFilterElement(INDEX).value='';">Reset</button>
where INDEX - index of a column

Answer posted by Narayan Dhumale on May 29, 2009 04:06

Thanks team!!!!!

This is working fine now ...!!!!   :)