Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kovtun D on Jan 30, 2009 06:49
open dhtmlx forum
How to establish initial value #select_filter?

Hello.
This code has changed only the name, but sorting has not occurred.

mygrid.load (url, function () {mygrid.hdr.getElementsByTagName ("SELECT") [0].value = "Forex";}, "csv");

Other code which you have given, kills all table and it ceases to work. In my table constant values are known is "Forex" (2 column) and "EURUSD" (3 column). It is impossible to put them instead of empty fields which arise at page loading? That sorting was at once on these values...
Answer posted by Support on Feb 02, 2009 03:10

Please, try to use filterByAll() method after setting the default value to filter grid:

mygrid.load (url,function(){

mygrid.hdr.getElementsByTagName ("SELECT") [0].value = "Forex";

mygrid.filterByAll();

},"csv");