Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 14, 2007 15:22
open dhtmlx forum
I have a question concerning the selectbox of the toolbar. In this selectbox I would like to set a spe...

I have a question concerning the selectbox of the toolbar.

In this selectbox I would like to set a specific item (option-tags of the select-box) to be selected and I would like to read as well, wich item is selected at the moment. I could not find this methods in your API. Am I right or is there a way to get and set the “selected”-information
Answer posted on Mar 14, 2007 15:22

dhtmlxToolbar provides next methods to set value:

            toolbar.getItem(itemId).setSelected(value);

There is no direct way to get current selected value, but you can access the HTML select element :

            toolbar.getItem(itemId).selElement

and query all necessary data from it
Answer posted by Inga (Support) on Dec 09, 2014 21:04

To find more precise comments upon this issue, we can offer you read about problem add topic and gantz chart.