Santosh Sasupalli

Santosh Sasupalli

  • NA
  • 181
  • 25k

js tree with ajax reques

Feb 15 2017 12:34 AM
call ajax requst that returns jsonformate like this
[{"ServiceCategoryId":1,"ServiceParentCategoryId":0,"ServiceCategory":"hospital"},
{"ServiceCategoryId":2,"ServiceParentCategoryId":1,"ServiceCategory":"bloodtest"},
{"ServiceCategoryId":3,"ServiceParentCategoryId":0,"ServiceCategory":"water"}]
how to implement js tree with this data
here ServiceParentCategoryId is 0 then it is Parent
Servicecategoryid = servicecategoryId then it is child of that node
 

Answers (3)