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

Remove groups from radPanelBar

4 Answers 82 Views
Panelbar (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
JulioR
Top achievements
Rank 1
JulioR asked on 01 Feb 2008, 01:28 PM
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

4 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 04 Feb 2008, 09:20 AM
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
0
JulioR
Top achievements
Rank 1
answered on 08 Feb 2008, 09:57 AM
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
0
JulioR
Top achievements
Rank 1
answered on 08 Feb 2008, 10:03 AM
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

0
Accepted
Boyko Markov
Telerik team
answered on 08 Feb 2008, 12:47 PM
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
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
JulioR
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
JulioR
Top achievements
Rank 1
Share this question
or