Note that there are some explanatory texts on larger screens.

plurals
  1. POInfragistics Jquery Tree
    text
    copied!<p>I need some help from you in using igTree when LoadOnDemand is set to true. I have a WCF REST Service which is giving me data to populate in igTree.</p> <p>Please find the sample code..</p> <pre><code>$.ajax( { type: "GET", url: "AssessmentProcWCFService.svc/GetAllEntities", contentType: "application/json; charset=utf-8", dataType: 'json', data: '{}', cache: false, success: OnGetAllEntitiesSuccess, error: OnGetAllEntitiesFailure }); </code></pre> <p>==================================================</p> <pre><code>function OnGetAllEntitiesSuccess(categoryList) { $("#APTreeView").igTree({ animationDuration: 0, dataSourceType: 'json', dataSource: categoryList.d, initialExpandDepth: false, loadOnDemand: true, dataSourceUrl: "AssessmentProcWCFService.svc/GetAllCategories?EntityID=primaryKey:id", bindings: { textKey: 'text', valueKey: 'id', primaryKey: 'id', expanded: 'expanded', childDataProperty: 'children' } }); } </code></pre> <p>=========================================================</p> <p>Questions:-</p> <ol> <li><p>How could I send the selected node ID to the Service when any node of the tree is expanding? The way I am sending in the above example it is not working when I am retrieving it in the service “public List GetAllCategories()” like “string entityID = HttpContext.Current.Request.QueryString["EntityID"];” I am getting entity id as null.</p></li> <li><p>How the tree get rendered when any node get expanded if LoadOnDemand is true?</p></li> </ol> <p>Please help me on this I have spend lot of time in it.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload