This is a migrated thread and some comments may be shown as answers.

Databind and Command.

1 Answer 48 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Sampathkumar
Top achievements
Rank 1
Sampathkumar asked on 17 Dec 2009, 11:04 AM
Hi,

    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

Sort by
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");
        }
    }
}


Sincerely yours,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Sampathkumar
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or