collapsible panel slow closing

4 posts, 1 answers
  1. Roger
    Roger avatar
    22 posts
    Member since:
    Nov 2017

    Posted 17 Dec 2017 Link to this post

    Hi

    I have a form with 6 collapsible panels on it... if the user doesn't not have confidentiality access and the information is confidential then I want 5 of the panels to close and be disabled..so the user can only view 1 panel. Unfortunately the form loads with data before the panels close (even though the pane.collapse is called before the data load event...so the user can see the data from a confidential section...even if briefly.

    Can you think of a way to stop this so that no confidential data can be viewed?

    Thanks

  2. Answer
    Hristo
    Admin
    Hristo avatar
    1260 posts

    Posted 18 Dec 2017 Link to this post

    Hello Roger,

    Thank you for writing.

    You can consider setting the AnimationFrames property of the control to 1. This property determines the speed with which the animation is executed.
    public RadForm1()
    {
        InitializeComponent();
     
        this.radCollapsiblePanel1.AnimationFrames = 1;
        this.radCollapsiblePanel1.IsExpanded = false;
        this.radCollapsiblePanel1.Enabled = false;
     
    }

    Additionally, you may also consider not populating with data the controls located in the collapsible panels which are not enabled.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Roger
    Roger avatar
    22 posts
    Member since:
    Nov 2017

    Posted 18 Dec 2017 in reply to Hristo Link to this post

    Hi Hristo,

    thanks for that setting the proprty to 1 worked...didn't know it existed till you mentioned it. Also controls are databound so change automatically...I did change the data after the collapse call but the duration was too slow..your suggestion fixed it.

     

    Thanks

  4. Hristo
    Admin
    Hristo avatar
    1260 posts

    Posted 19 Dec 2017 Link to this post

    Hello Roger,

    Thank you for the update.

    I am glad that I managed to help. Some additional information about the built-in animations you can find in the following documentation articles: 

    I hope this helps. Let me know if you have other questions.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top