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

Grid in Web User Control

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul Bishop
Top achievements
Rank 1
Paul Bishop asked on 31 Jul 2008, 02:43 PM
When a user clicks a button on my web page I want to create an instance of a Web User Control in my code behind, set the data source for a Rad Grid that is in the Web User Control, and then add the Web User Control to the controls collection on my page.  When I try to set the datasource for the grid, I get a NullReferenceException.  From what I can tell the grid is null.  The scenario works when the user control already exists on the web page, but not when I create the web user control in code.

I have a sample project if that will help.

1 Answer, 1 is accepted

Sort by
0
Paul Bishop
Top achievements
Rank 1
answered on 31 Jul 2008, 07:13 PM
After further tests it looks like this is an issue with dynamic user controls in a dynamic RadPageView control.  I'll submit a post to the RadTabStrip forum.
Tags
Grid
Asked by
Paul Bishop
Top achievements
Rank 1
Answers by
Paul Bishop
Top achievements
Rank 1
Share this question
or