Floating RadPane counts

2 posts, 0 answers
  1. Muhammad Irfan
    Muhammad Irfan avatar
    18 posts
    Member since:
    Jan 2010

    Posted 17 Aug 2011 Link to this post

    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?
  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 22 Aug 2011 Link to this post

    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,
    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 >>

Back to Top