I would like to rebind bound RadComboBoxes when insertions or deletions have occurred, however I get this error:
| Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control. A typical RadComboBox declaration |
| <telerik:RadComboBox | ||||||||
| ID="cmbCity" | ||||||||
| runat="server" | ||||||||
| DataSourceID="srcAllCity" | ||||||||
| CssClass="rowtbxedit" | ||||||||
| RadComboBoxImagePosition="Right" | ||||||||
| Width="200px" | ||||||||
| DataTextField="City" | ||||||||
| DataValueField="City" | ||||||||
| Skin="Office2007" | ||||||||
| ShowDropDownOnTextboxClick="False" | ||||||||
| text='<%# Bind("City") %>' | ||||||||
| AllowCustomtext="false" | ||||||||
| MarkFirstMatch="true" | ||||||||
| > | ||||||||
| <CollapseAnimation type="OutQuint" duration="200"></CollapseAnimation> | ||||||||
| <ExpandAnimation type="OutQuart"></ExpandAnimation> | ||||||||
| </telerik:RadComboBox> |
||||||||
since this doesn't work, how do I get the comboboxes to repopulate? |