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

Floating RadPane counts

1 Answer 63 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Muhammad Irfan
Top achievements
Rank 1
Muhammad Irfan asked on 17 Aug 2011, 10:25 AM
Hi,
I have a page with RadRibbonBar at top and below RadDocking. Each Rad Ribbon bar tabs have few buttons like "View All", "Add new", "Edit Selected Item" & "Delete Selected Item".
When user press "View All" button, I create a new RadPane dynamically and add it to RadPaneGroup. Now I have following requirements to accomplish.
1. When user again press View All then just make then pane Docked and selected.
2. When user press Edit button and its relevant "View All Pane" is selected (i.e. has focus) then open a edit dialog. If its relevant "view all pane" is not selected (i.e. has focus) then don't do anything.
3. Same with Delete button as Edit button.

Now the problem is that if user Float the RadPane then it is removed form RadPaneGroup (i.e. its items count decreases) so I don't know how can I see that right now which RadPane has focus.
Kindly note that I am creating RadPane dynamically i.e. there is no fix number of RadPanes.
Kindly help me how can I do that?

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 22 Aug 2011, 08:37 AM
Hi Muhammad,

You can use the IsActive property of the Pane, which shows whether the Pane is active or not. Or you can set the ActivePane property of the Docking control and select which pane to be active at the moment.

Best wishes,
Konstantina
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 >>

Tags
Docking
Asked by
Muhammad Irfan
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or