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

Expand group programatically

5 Answers 129 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.
Bob
Top achievements
Rank 1
Bob asked on 13 Aug 2009, 07:35 AM
Hi Guys

Can anyone tell me how to expand a given group in a panelbar and call PerformClick on a given RadButtonElement?

Thanks in advance

5 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 13 Aug 2009, 09:18 AM
Hello Bob ,

To expand a group programatically you can use the Expanded property of RadPanelBarGroupElement. For example:

 this.radPanelBarGroupElement1.Expanded = true;

If you need more information, please write us back.

Kind regards,
Boyko Markov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jay Jose
Top achievements
Rank 1
answered on 09 Sep 2009, 02:42 PM
Hi,

I build my panelbar programmatically and I want to expand the groupelement when displayed.

I tried this:

this.radPanelBarGroupElement1.Expanded = true;

but it did not work.

Any more ideas?

Thanks,
Jay



0
Jay Jose
Top achievements
Rank 1
answered on 09 Sep 2009, 02:46 PM
Hi,

Kindly disregard my previous post, I already got the solution.

grpElement.ShowChildren(true);
grpElement.Expanded = true;

Thanks,
Jay
0
Bob
Top achievements
Rank 1
answered on 10 Sep 2009, 05:58 AM
Hi Jay

It seems to depend on the Groupstyle property. I resolved my problem by  setting

radGroupABC.Selected = true;

I did this after it had been added to the panel bar.

Hope that helps.

Bob Bailey
0
Boyko Markov
Telerik team
answered on 11 Sep 2009, 11:43 AM
Hello Bob ,

RadPanelBarGroupElement Expanded property purpose is to expand or collapse the group where the Selected property selects or deselects the group. When the panel bar is in OutlookStyle, you should use the Selected property instead of the Expanded property if you want to make active a particular group element. In all other cases you should use the Expanded property. Another important thing is that you should use these properties when the RadPanelBarGroupElement is part of the elements tree i.e it should be added to the items collection of RadPanelBar.

Best wishes,
Boyko Markov
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.
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Bob
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Jay Jose
Top achievements
Rank 1
Bob
Top achievements
Rank 1
Share this question
or