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

RadGrid with Details table

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
Veteran
David asked on 28 May 2012, 07:32 PM
I am working on a master/detail type grid project.  The parent level tables are bound to the grid using a "NeedsDatasource" event.  The DetailViewTableBind event is used to bind data to the child items.  In reality the parent data row contains a list of objects which represent the data being displayed in the child data.

Visually everything looks like it is working until I press the "edit" button on a element of the child table.  When I do this the grid appears to refresh and the "details" vanish.  The grid is left in update mode with no details visible and no ability to cancel the update mode.

As an example, 

header row 1
(edit) detail row 1-1
(edit)        detail row 1-2
header row 2
(edit)        detail row 2-1
(edit)        detail row 2-1

If I click on the edit button on "detail row 2" (on header row 1), the display refreshes as follows:

header row 1
header row 2
(edit)        detail row 2-1
(edit)        detail row 2-2

Visually the two detail rows present on header row 1 vanish.

The parent grid is setup with allow automatic update/inserts/deletes.  The HierarchyLoadMode is set to Client.

Can anyone give me a clue what I am overlooking?  I need to be able to edit the child "table" without the parent rows being in edit mode.  

Any suggestions would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 31 May 2012, 08:13 AM
Hi David,

You could try debugging your application in order to observe if the NeedsDataSource and DetailTableDataBind events are called appropriately. The behavior could be caused from not setting the DataSource property of the grids. You could try the approaches described below:
  • If ajax is enabled you could try dissabling to see if the issue still persists
  • Check for places where ViewState is disabled and try to enable it
  • Remove all explicit Rebind calls in order to see if the problem is caused from there

Greetings,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
David
Top achievements
Rank 1
Veteran
Answers by
Antonio Stoilkov
Telerik team
Share this question
or