I was struggling with adding items from client side. I got a RadTextbox and RadCombobox. On a radbutton client click, i want to get the textbox value and add it into the Radcombobox. This I was trying with JavaScript but didnt come up with the right code. Please help.
Thanks for your code with a neat explanation.
The JS code to insert item into the combobox you are writing in between trackChanges and commitChanges. Can you please let me know the exact purpose of this especially the trackChanges()?
When you are making some changes to the RadComboBox from client side it should be available on the server after postback and those codes should be written in between trackChanges and commitChanges methods. If you simple make some changes and try to commit it without calling trackChanges(), those changes wont be reflected in the RadComboBox.
The purpose of trackChanges() is to start tracking changes made to RadComboBox that will be preserved over post-backs and commitChanges() is to write the changes to RadComboBox that were made since a previous call
to trackChanges, so that they are preserved over post-backs.