This question is locked. New answers and comments are not allowed.
Hi
I have a grid and a combobox on a form
When the user selects an item from the grid, I am setting the value of textboxes and an MVC Combobox based on the values that were in the grid row.
How can you set the value of a combobox based on text (sort of like FindItemByText in the RadCombobox)?
I can set the value by index like this:
I would like to set the value by text like this:
I suppose I could loop through all the items in the combobox until I find the one that matches the text, then select that. Is there a better way?
Thanks in advance.
I have a grid and a combobox on a form
When the user selects an item from the grid, I am setting the value of textboxes and an MVC Combobox based on the values that were in the grid row.
How can you set the value of a combobox based on text (sort of like FindItemByText in the RadCombobox)?
I can set the value by index like this:
$('#CategoryID').data('tComboBox').select(3);I would like to set the value by text like this:
$('#CategoryID').data('tComboBox').select('ComboBoxItem3');I suppose I could loop through all the items in the combobox until I find the one that matches the text, then select that. Is there a better way?
Thanks in advance.