How do i stop the selectionchange event if the data is in bind mode. please help me.
Regards
Sampathkumar S
1 Answer, 1 is accepted
0
Valeri Hristov
Telerik team
answered on 17 Dec 2009, 12:34 PM
Hi Sampathkumar,
I am posting my answer here in case someone else has the same question: There is no way to prevent the SelectionChanged event from firing, because there is a change in the selection when you initialize the control - by the default the selected item is null, when the binding is applied, SelectedItem it becomes something else. Instead of setting the command on the SelectionChanged event I would recommend calling the TelrikComboChange_Executed method in the Name property setter:
public string Name
{
get { return this._Name; }
set
{
if (value != this._Name)
{
this._Name = value;
this.TelrikComboChange_Executed();
this.OnPropertyChange("Name");
}
}
}