Hi,
I am filling my treegrid this way :
<ejs-treegrid id="MyTreeGrid" dataSource="ViewBag.DataSource" hasChildMapping="hasChild" idMapping="id" height="700" parentIdMapping="pid">.....</ejs-treegrid>
I am adding a new item from javascript :
var treeObj = document.getElementById('MyTreeGrid').ej2_instances[0];
var ds = treeObj.dataSource;
ds.unshift({id: ...., pid: .....});
treeObj.dataSource = ds;
However it doesn't wok, the treegrid is not refreshed and the newly added item doesn't appear.
Any idea please ?