Databind and Command.

2 posts, 0 answers
  1. Sampathkumar
    Sampathkumar avatar
    47 posts
    Member since:
    Apr 2009

    Posted 17 Dec 2009 Link to this post


        How do i stop the selectionchange event if the data is in bind mode. please help me.

    Sampathkumar S

  2. Valeri Hristov
    Valeri Hristov avatar
    2252 posts

    Posted 17 Dec 2009 Link to this post

    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; }
            if (value != this._Name)
                this._Name = value;

    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.
Back to Top