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

[Solved] Master Detail Grid and Loading progress

2 Answers 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ashok
Top achievements
Rank 1
Ashok asked on 08 Apr 2011, 07:54 PM
Hi using master detail grid with Client binding. Master grid row is selectible. When I click row in master grid, I will to display "loading... " message / image. I tried following code in script, but it doesn't show "loading... ".

function TreeGrid_OnRowSelect(e) {
    $('#loading').show();
    var grid = $(e.row).parents('.t-grid').data('tGrid');
    var indexOfIdColumn = GetGridColumnIndexByName(grid, "Id");
  
    var pId = e.row.cells[indexOfIdColumn].innerHTML;
    var similarGrid = $('#SimilarGrid').data('tGrid');
  
    $('#loading').hide();    
  
    // rebind the related grid        
    similarEntityGrid.rebind({ pId: pId });
}

Any idea what am I doing wrong?

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 11 Apr 2011, 08:36 AM
Hi Tejas,

 Your code is hiding the loading element just after showing it. You should probably hide it after the related grid is bound. To do so subscribe to its OnDataBound event and hide the loading indicator there.

Regards,
Atanas Korchev
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
0
Ashok
Top achievements
Rank 1
answered on 11 Apr 2011, 03:40 PM
Hi Atanas,

Thanks. That worked.
Tags
Grid
Asked by
Ashok
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Ashok
Top achievements
Rank 1
Share this question
or