Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by techtigre on May 15, 2007 22:54
open dhtmlx forum
Dynamic combobox population

I am using the dhtmlXGrid and need one column's combobox selection to drive another column's combobox contents. What event handler must I use for the first combobox selection? What code samples should I look at to dynamically populate the second combobox's content based on the value selected in the first combobox? I am using AJAX calls to get the content from a datasource to populate the combobox.
Answer posted on May 16, 2007 10:31
You can use on onEditCell event, it occurs few times

stage 0 - cell edit initiaited
stage 1 - editor opened an ready to work
stage 2 - editor closing initiated

The "stage 0" is the moment of time when you can populate your combobox on the fly.
You can check
    samples/pro_dynamic_combo.html

Attachments (1)
Answer posted by Andrei (Support) on Dec 01, 2014 02:50

I hope this information will be enough for you. But you also can have a look at js calendar date picker and javascript pop up windows.