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. Image for the cookie policy date

Urgent: Doesn't load the TreeView at times?

Hi,

I see an inconsistent pattern of loading of TreeView on and off

The Bricks view doesn't load the TreeView at times.

<div class="row">
    <ejs-treeview id="testTree">
        <e-treeview-fields id="nodeId" parentId="pid" text="nodeText" hasChildren="hasChild" expanded="expanded">
            <e-data-manager url="/Bricks/GetAllData" adaptor="ODataV4Adaptor" crossDomain="true" offline="true"></e-data-manager>
        </e-treeview-fields>
    </ejs-treeview>
</div>

BricksController.cs

        [HttpGet]
        [HttpPost]
        [ActionName("GetAllData")]
        public IEnumerable<ParentNodeViewModel> GetAllData()
        {
            return ...;
        }

What could be the issue?

1 Reply

CI Christopher Issac Sunder K Syncfusion Team February 27, 2019 12:02 PM UTC

Hi John, 

Thank you for contacting Syncfusion support. 

We have prepared a sample based on your query but we were unable to replicate the issue at our end. Please check the following sample and modify it as per your application , So that it would be more helpful to sort out the issue and resolve it. Also please let us know exact scenario of TreeView on and off in your application. Are you mentioning destroy and re-rendering treeview? 
Sample 

Thanks, 
Christo 


Loader.
Up arrow icon