Remove groups from radPanelBar

5 posts, 1 answers
  1. JulioR
    JulioR avatar
    26 posts
    Member since:
    Dec 2006

    Posted 01 Feb 2008 Link to this post

    Hi all,

    It seems to be a quiet easy thing, but I can't find the way to remove all groups (each one with a radtreeview on it) from the radPanelBar. I was using items.clear sentenceĀ before Q3 and it was working, but now when I requery the data source of the radPanelBar to reload all new groups dinamically, there are problems with the previous treeviews... they are still there after execute radPanelBar.Items.Clear().

    Any idea's?

    Thanks & regards,

    Julio
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 04 Feb 2008 Link to this post

    Hello Julio,

    Thank you for the feedback.

    Unfortunately we were not able to reproduce your case. Could you please send us a sample project that demonstrates this behavior?

    I'm looking forward to your reply.

    Thank you,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. JulioR
    JulioR avatar
    26 posts
    Member since:
    Dec 2006

    Posted 08 Feb 2008 Link to this post

    Thanks for the reply,

    To clarify everything a little, what I want is to delete all groups in the radPanelBar, including controls inside each group. What is the right way to do it on Q3 release?

    Regards,

    Julio
  5. JulioR
    JulioR avatar
    26 posts
    Member since:
    Dec 2006

    Posted 08 Feb 2008 Link to this post

    Hi again,

    I have already found the solution. I don't know if this is a dirty way to do it, but is working.

    Prev to Q3

    RadPanelBar1.Items.Clear()

    Post Q3

    RadPanelBar1.Controls.Clear()

    RadPanelBar1.Items.Clear()

    I hope this will help to someone else.

    Regards,

    Julio

  6. Answer
    Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 08 Feb 2008 Link to this post

    Hello JulioR,

    Thank you for writing.

    The first child control added to RadPanelBar is its scrollbar. If you call the Clear method you won't have any scrollbars in the control. A solution which keeps the scrollbar in place could be to iterate through the controls and to delete all controls except the scrollbar.

    I hope this is helpful. Let me know if I could assist you any further.

    Sincerely yours,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready