This is a migrated thread and some comments may be shown as answers.

Problem with binding Selfreferencing Grid using javascipt.

1 Answer 17 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aviii
Top achievements
Rank 1
Aviii asked on 19 Mar 2010, 02:21 PM

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

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 24 Mar 2010, 08:50 AM
Hello Aviii,

Presently, the control does not support building self-referencing hierarchy on the client. In order to ensure that the structure is properly built, you can use server side binding.
I hope this information helps.

Sincerely yours,
Yavor
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Aviii
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or