Not to close dropdown when select item.

3 posts, 0 answers
  1. Jose Mejia
    Jose  Mejia avatar
    107 posts
    Member since:
    May 2009

    Posted 31 Aug 2011 Link to this post


    Is it possible not to close dropdownlist panel when I select some items?
    For example, I have smth like treeview (not true treeview, but imagine):
    Master Item:
    and so on.

    For now I use the following code:
    if (e.Position == 1)//Master item position == 1.
      e.Cancel = true;

    Selected text(index) doesn't change, but it would be more convinient
    and elegant if dropdownlist panel won't close  if I select "Master Item:".
    Is it possible?

    Thanks in advance.
  2. Jose Mejia
    Jose  Mejia avatar
    107 posts
    Member since:
    May 2009

    Posted 02 Sep 2011 Link to this post

  3. DevCraft R3 2016 release webinar banner
  4. Stefan
    Stefan avatar
    2891 posts

    Posted 05 Sep 2011 Link to this post

    Hi Jose,

    Thank you for writing.

    You can control the drop down closing of RadDropDownList from the PopupClosing event of the control. If you need to cancel the closing, simply set the Cancel property from the event args to true.

    I hope that you find this information helpful. Should you have any other questions, do not hesitate to contact us.
    Kind regards,
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top