Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Simon on Dec 07, 2009 03:14
open dhtmlx forum
'Drop-down filter' in DHTMLXGrid

Hi there,

My application requires 'tooltips' to be place onto elements, therefore I am attempting to create a 'drop-down' filter in DHTMLXGrid by using the 'makeFilter' call on an HTML 'Select' element (to which I can apply a tooltip by using the 'title' attribute).

I must be doing something wrong though, as the component isnt populated with values from the column as expected.

If you 'publish' this question I can add my code as an attachment.

Thanks,

Si
Answer posted by Alex (support) on Dec 07, 2009 06:13

Hello,

please attached the sample to recreate the issue

Answer posted by Simon on Dec 07, 2009 06:25
Thanks for the prompt reply!

Attached.
Attachments (1)
Answer posted by Stanislav (support) on Dec 07, 2009 08:55
Change the loading code as


filteredGrid.load("data.xml",function(){
     filteredGrid.refreshFilters();
});

By the way it possible to attach the custom tooltip to the native filters as well. You can use #select_filter and

filteredGrid.load("data.xml",function(){
     filteredGrid.getFilterElement(1).title = "custom tooltip here";
});