HI
I am trying to bind a selfreferencing grid using client side javascript. I am not using any server side code in any event. When i am able to bind the grid without selfreferencing but i add this line in my ascx page.
when i add this line my page gets in deadlock. it doesn't load.
<
SelfHierarchySettings KeyName="OrgID" ParentKeyName="ParentID" />
I use following code to bind the grid at client side.
loadGrid: function() { |
MyService.GetList(oncallback, onError, onTimeOut); |
}, |
oncallback: function(data) { var orgGrid = $find('<%= OrgGrid.ClientID %>'); |
var tableView = Grid.get_masterTableView(); |
if (data.length > 0) { |
tableView.set_dataSource(data); |
tableView.dataBind(); |
} |
}, |
This is just a part of code. and the way i am binding the grids. It worked fine when binding normal grid. But when adding <SelfHierarchySettings KeyName="OrgID" ParentKeyName="ParentID" /> in the system gets in unstable state. it shows continuesly loading. I want to set these properties at client side but there is no method for setting this.
Please suggest.
Thanx