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

Grid in a template column

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wade West
Top achievements
Rank 1
Wade West asked on 06 Mar 2009, 02:46 PM
I have a user control that contains a grid and a few other controls that it works flawless on its own, but now I have a requirement to include that user control as a column in another grid. Everything looks wonderful when first rendered, but as soon as the outer grid issues any command for paging or edit/insert the inner grid gets blanked out. The other controls on the user control are fine and any interaction with the user control will refresh the inner grid. The user control is in a template column that is defined in markup and not programmatically.  Also, the user control functions correctly while nested in the table aside from the noted problem. What am I missing?

Many thanks,

Wade

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 10 Mar 2009, 09:30 AM
Hi Wade,

Can you please verify that the grid from the user control nested inside the outer grid's template column is bound using NeedDataSource event handling or through a data source control? This should ensure that the control will be bound to data every time when this is necessary.

In case you bind the inner grid programmatically inside the ItemDataBound event of the wrapper grid, double-check that the logic is executed when edit/insert/page action occurs.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Wade West
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or