We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Side bar closing automatically when doing operations

Thread ID:

Created:

Updated:

Platform:

Replies:

151226 Feb 4,2020 01:34 PM UTC Feb 6,2020 09:24 AM UTC Angular - EJ 2 3
loading
Tags: Sidebar
Samba Shiva Rao Enuganti
Asked On February 4, 2020 01:34 PM UTC

Hi Team,

We Side bar on Left as Push Type & Dockable, inside it we have treeview control.

On right side we have Dashboard Layout.
When we are doing Drag & drop dashboard Layout panel, the left side bar closing automatically and the treeview not collapsing.

I have handled tree collapse in onclose event of sidebar, it's working as expected when I am click the collapse button, but it's not working as expected when auto close happening(while drag & drop of panels).

Thanks,
Shiva

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On February 5, 2020 10:42 AM UTC

Hi Samba, 
 
Greetings from Syncfusion support. 
 
Please, find the solutions for your queries. 
 
Query 1 – Sidebar closes unexpected while drag the panels. 
 
We have checked your reported issue from sidebar closes unexpectedly. We suspect the cause of closing of sidebar is due to the gestures in the Sidebar component. By default, when we click drag on the Sidebar, will trigger close event of the sidebar. This functionality can be disabled in the Sidebar by setting enableGestures property as false.  
 
Refer the below KB for enableGestures property. 
 
 
By disabling this property, it will resolve the reported problem. 
 
Query 2 – Click the collapse button not collapse the TreeView node. 
 
Refer the below UG Documentation for your requirement. In that sample, we can collapse the TreeView nodes using hamburger icon. 
 
 
 
If the issue still persists in your end. Can you please share the additional details regarding your requirement, it will helpful for us to resolve your issue at earlier? 
 
1.      Code snippet. 
 
2.      Explain the expected functionality of collapse button. 
 
Please let us know, if you need any further assistance. 
 
Regards,  
Shameer Ali Baig S. 


Samba Shiva Rao Enuganti
Replied On February 5, 2020 12:29 PM UTC

Hi Shameer,

I have set the enableGestures false then also it's not working as expected.

 public onClose(args: any) {
      this.treeviewInstance.collapseAll();//this one not working when Auto close is happening(while drag & drop of panels).
     
    }
Where as OnClose event is firing...

But our requirement is Sidebar should not close automatically...

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On February 6, 2020 09:24 AM UTC

Hi Samba, 
 
We have looked into your reported problem with Sidebar’s close event. We tried to replicate your problem by preparing a simple sample with your issue reproducing scenario. But we are unable to reproduce the reported issue. 
 
We have attached the sample for your reference, in which we set enableGestures property of Sidebar as false, after that, Sidebar’s close event is not triggered on drag and drop the panels of the Dashboard Layout component. Also, we have used collapseAll() method to collapse the TreeView nodes, when the close event of the Sidebar trigger. 
 
Could you please, check the below sample and let us know if it help solve the problem. 
 
 
 
If the reported issue still persist, could you please share us the source code of your application in which you face this issue or if possible, could please replicate the reported issue in the attached sample and share it to us? 
 
This information would help us to validate the cause of your problem and to provide you the prompt solution at the earliest. 
 
Regards, 
Shameer Ali Baig S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon