What's the best way to realize a two way binding between two RadComboBox's?
I have a user control wit only a RadComboBox that get filled with company names and companyID's I have two fill() methods. Both sets the companyId as value and one with the company name as text and the other the companyID as text.
I use two user controls in a Edit-FormTemplate van the RadGrid. setting them in ItemCreate event - One shoving the company name and the other shoving the companyID,. They are both set to the same SelectedIndexChanged evnt.
In this SelectedIndexChanged I want to set the Selected value of both when the event is fired. But how do find the Usercontrols?
I tried various code snippert but I can'get it to work, so as this:
Please help
Anders Pedersen
I have a user control wit only a RadComboBox that get filled with company names and companyID's I have two fill() methods. Both sets the companyId as value and one with the company name as text and the other the companyID as text.
I use two user controls in a Edit-FormTemplate van the RadGrid. setting them in ItemCreate event - One shoving the company name and the other shoving the companyID,. They are both set to the same SelectedIndexChanged evnt.
In this SelectedIndexChanged I want to set the Selected value of both when the event is fired. But how do find the Usercontrols?
I tried various code snippert but I can'get it to work, so as this:
var temp = (sender as RadComboBox).NamingContainer.NamingContainer;
DealerComboBox combo = (DealerComboBox)temp.FindControl("DealerComboBoxCodeCode");
Please help
Anders Pedersen