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

[Solved] issues with grid with server binding, grouping, and DetailView

0 Answers 74 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.
Kevin
Top achievements
Rank 1
Kevin asked on 22 Dec 2011, 05:28 PM
I am having an issue with the MVC grid, and it appears to be a defect in the way the grid detail rows are rendered by the server when when in server binding mode.  I have created a very simple sample program that exhibts the error.  When you try and collapse the group it only hids the first element in the group.  If you remove the DetailView() statement then the grid correctly collapses.  I have tracked the issue down to the following:
  1. when a grouped grid is rendered on the client side with grouping and details views, each grid row and detail row(that has been   created) has a td with the class t-group-cell.  In addition the t-group-cell td is the first td of each row (including the detail row)
  2. so each row has a td with t-group-cell and t-hierarchy-cell added to the rows in that order
  3. when rendered from the server the detail rows do not have a td with the t-group-cell added to them.  In addition for the main rows of   the grid the t-group-cell is rendered second instead of first which creates a wierd visual effect as compared to the ajax rendered grid
  4. when the grid.colapse() method is called it looks for t-group-cell to determine the group level.  Once it finds the first detail row determines that the row is at level 0 and exits the hide code.

Is this a known issue, or am I missing something

Regards,
Kevin Koenig
Tags
Grid
Asked by
Kevin
Top achievements
Rank 1
Share this question
or