Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sujoy Abraham on Sep 09, 2008 04:36
open dhtmlx forum
Changing values in the #SelectBox!!!!!!!!!!

Hi,

I want to change the text(Options) in the #SelectBox provided with the header.

That is if the column is specified for checkboxes the values in the select box are 0 or 1(if selected its 1 and if not its 0).

how can i change the 0 and 1 values in the select box?

 

Thanks & Regards,

Sujoy

Answer posted by Support on Sep 09, 2008 05:10
You can  use custom selectbox in header - in such case you will be able to define any options

instead of 
    grid.attachHeader("A,#select_filter,C")
use
    grid.attachHeader("A,<select onchange='mygrid.filterBy(1,this.value);' onclick=' (arguments[0]||event).cancelBubble=true; '><option value="0">unchecked<option value="1">checked</select>,C")