Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Oct 01, 2008 06:41
open dhtmlx forum
DHX Grid: How to get select id and value of #select_filter

Hi there,
I want to get the selected option's id and value of selectbox that comes when we use #select_filter.
How to get it ??
Answer posted by Support on Oct 01, 2008 07:03
There are two ways

a) direct HTML location

var value = grid.hdr.getElementsByTagName("select")[0].value;

b) using of onFilterStart (latest codebase required) event, it provides the array of indexes and array of values as incoming parameters, which can be used to catch value of #select_filter
Answer posted by Tejas Shah on Oct 01, 2008 07:07
Hi there,
              Can u please send me the latest codebase file required for this ...
              I will be grateful !!
Answer posted by Support on Oct 01, 2008 08:01
Updated js file sent by email.