RadPane active/de-active on click

6 posts, 0 answers
  1. Xalbat
    Xalbat avatar
    3 posts
    Member since:
    Mar 2012

    Posted 16 Jul 2013 Link to this post

    Hello, I want to set my RadPane active/de-active on the user click, not the mouse hover event, for that i subclass the RadPane and override the MouseEnter event to disable the activation on the mouse hover, but i don't know how to set it active on the header click, the set of the active property is private and i don't see how to do that. My product version is 2012.1.410.1040.
    Thanks !

  2. George
    Admin
    George avatar
    1332 posts

    Posted 17 Jul 2013 Link to this post

    Hi Xalbat,

    Yes, RadPane.IsActive property has a private setter, but I would suggest using the RadDocking.ActivaPane property which has public setter. In this way you could activate the pane.

    Hope this helps.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Xalbat
    Xalbat avatar
    3 posts
    Member since:
    Mar 2012

    Posted 31 Jul 2013 Link to this post

    Hello, thanks for the answer but my problem is that my RadPane is in a RadPanegroup which is in a RadSplitContainer
    In fact my structure is that :
    a RadDocking
    ->with a RadDocking.DocumentHost which contain several tab on the top
    -> and  2 RadSplitContainer (on left and right side) which contain one RadPaneGroup  with one or more tab (=RadPane) which are floatable dockable etc.... and i don't see the ActivePane property on the RadPaneGroup, if i use the RadDocking.ActivePane it will be applied to all panel thing i don't want, only on each radsplitcontainer/radpanegroup.
    If you have an idea, you're welcome ;)
  5. George
    Admin
    George avatar
    1332 posts

    Posted 01 Aug 2013 Link to this post

    Hi Xalbat,

     
    I understand - in this case I would suggest using the RadPaneGroup.SelectedItem property. This will give you information about the selected pane in each RadPaneGroup.

    Please, let me know if this helps.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Xalbat
    Xalbat avatar
    3 posts
    Member since:
    Mar 2012

    Posted 01 Aug 2013 Link to this post

    public class RadPaneClickable : RadPane
    {
        protected override void OnMouseEnter(MouseEventArgs e)
        {
             
        }
     
        protected override void OnHeaderMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            base.OnHeaderMouseLeftButtonDown(sender,e);
            var toto = ((Telerik.Windows.Controls.RadPane)(this)).PaneGroup;
             
        }
     
    }
    this is my code.
    the problem is that the "SelectedItem" is always null. Even if the RadPane is flagged as activated.
  7. George
    Admin
    George avatar
    1332 posts

    Posted 06 Aug 2013 Link to this post

    Hi Xalbat,

     
    I tried to reproduce the problem with out latest assemblies, but to no avail. Could you refer to the attached project and let me know if I missed something? A video is attached as well.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
DevCraft banner