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

collapsible panel slow closing

3 Answers 31 Views
CollapsiblePanel
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 18 Dec 2017, 05:47 AM

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

3 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 18 Dec 2017, 08:59 AM
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.
0
Roger
Top achievements
Rank 1
answered on 18 Dec 2017, 10:09 PM

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

0
Hristo
Telerik team
answered on 19 Dec 2017, 01:30 PM
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.
Tags
CollapsiblePanel
Asked by
Roger
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Roger
Top achievements
Rank 1
Share this question
or