RAdCombobox OnSelectedIndexChanged event button Click event

3 posts, 0 answers
  1. Prasad
    Prasad avatar
    40 posts
    Member since:
    Sep 2011

    Posted 25 Sep 2012 Link to this post

    Hi Team,

    I am Using RadCombobox and List box and a button in a page. Radcombobox has selected index changed event. Filling listbox in this event . I am checking some items (not all) from code behind file after clicking button then Select index change event is firing before button click event. If i select all the elements from the code behind file then it is going well(button click event only fires). please give suggestion/solution as soon as possible for selectedindexchanged event occurring UN eventually.

    Thanks,
    Prasad.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 25 Sep 2012 Link to this post

    Hi Prasad,

    Try modifying your code as follows to achieve your scenario.

    C#:
    protected void RadComboBox1_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
      if (this.Request.Params.Get("__EVENTTARGET") == "RadComboBox1")
       {
          // Your Code
       }
    }

    Hope this helps.

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hari
    Hari avatar
    1 posts
    Member since:
    Sep 2015

    Posted 24 Sep 2015 in reply to Shinu Link to this post

    Thanks bro , that one line helped me :) 
Back to Top