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

[Solved] GridClientSelectColumn CheckAll on a sharepoint webpart

1 Answer 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Phani Alla
Top achievements
Rank 1
Phani Alla asked on 06 Jul 2009, 03:53 PM
Hello, I'm creating a grid on a sharepoint webpart witha gridClientSelectColumn, when I try to click the checkbox on the header I'm getting an error "null is null or not an object" at the following line's onclick event. Looks like it doesn't find the Grid.
<th scope="col" class="rgHeader"><input id="RadGrid1_ctl00_ctl02_ctl00_CheckBoxColumnSelectCheckBox" type="checkbox" name="RadGrid1$ctl00$ctl02$ctl00$CheckBoxColumnSelectCheckBox" onclick="$find(&quot;RadGrid1&quot;)._selectAllRows(&quot;RadGrid1_ctl00&quot;, &quot;&quot;, event);" class="rgCheck" /></th

I'm creating the grid in CreateChildControls Method.

Any help please?

thank you,
Phani

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 09 Jul 2009, 08:53 AM
Hello Phani,

To avoid this behavior you can try to call EnsureChildControls(); in the Render event handler of the Web part.

If the problem still persists I will suggest you create the grid in the OnInit event handler.


Kind regards,
Georgi Krustev
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
Phani Alla
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or