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

RadPanelBar - desible collapsing?

1 Answer 97 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.
Ljubo Žižić
Top achievements
Rank 1
Ljubo Žižić asked on 10 Jul 2009, 10:46 AM
Is there any way to disable collapsing of RadPanelBar - GroupStyle ListBar?
Because, I want to disable collapsing of exact group element until some action has done. After that, all elements should collapse normally.

Best regards,
ziza84

1 Answer, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 13 Jul 2009, 02:01 PM
Hello Ljubo Žižić,

You can achieve this by using the PanelBarGroupExpanding event. The event is fired when a group is expanding.

Test Example:

1. I have added three different groups with captions "Default Caption", "Caption" and "DefaultCaption"
2. I subscribed to PanelBarExpanding event of RadPanelBar
3. In the event handler, I canceled the expansion of a group with caption different than "Caption". "Caption" is the caption of the group which I want to disable to collapse.

 void radPanelBar1_PanelBarGroupExpanding(object sender, PanelBarGroupCancelEventArgs args)
        {
            if (args.Group.Caption != "Caption")
            {
                args.Cancel = true;
            }
        }

In the above code I cancel the expanding of all groups with Captions different than "Caption". I hope this helps.

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.
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Ljubo Žižić
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Share this question
or