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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

First node not expanded after view init

Thread ID:

Created:

Updated:

Platform:

Replies:

128648 Feb 2,2017 03:11 PM UTC Feb 23,2017 04:46 AM UTC Angular 2
loading
Tags: ejTreeView
Agne
Asked On February 2, 2017 03:11 PM UTC

Hello,

data for treeview I am getting from backend and database. I am using property loadOnDemand:true. I am using this code to get data from backend:
    ngAfterViewInit()
    {
        $("#treeView").ejTreeView({loadOnDemand: true});

        var dataManager = new ej.DataManager({ url: this.myUrl + "menu/GetMenuPost", crossDomain: true, adaptor: new ej.UrlAdaptor(),
            headers: [{Authorization: 'Bearer ' + JSON.parse(localStorage.getItem('currentUser')).authToken}]  });

        this.menuFields = { dataSource: dataManager, id: 'id', parentId: 'parent_Id', text: 'text', hasChild: 'leaf', expanded: 'expanded', imageUrl: 'iconCls', tableName: 'className' };
    }

When I set property expanded to true in my backend, the first node after view init is not expanded. But when I expand it, all other nodes is expanded. What do I need to do to get my first node expand after view init?

Karthik Ravichandran [Syncfusion]
Replied On February 4, 2017 07:01 AM UTC

Hi Agne, 
 
Thanks for contacting Syncfusion support. 
 
We have considered this as a bug in our side and the fix will be available in Volume 1, 2017 main release which will be available in the mid of February 2017. 
 
Regards, 
Karthik R 


Karthik Ravichandran [Syncfusion]
Replied On February 23, 2017 04:46 AM UTC

Hi Agne,   
We are glad to announce that our Essential Studio 2017 Volume 1 Main Release v15.1.0.33 is rolled out and is available for download under the following link. 
 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards, 
Karthik R 


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.

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

;