Feb 07, 2009, 3:58 AM
GridPanel Checkbox Selection
I have placed a GridPanel on a Webform and need to populate the selected rows and checkboxes upon load of the page. I have the GridPanel binding in the .aspx page with the following code:
<ext:GridPanel ID="GridPanel1" runat="server" Title="Grid" Frame="true" height="500" Width="700" StoreID="Store1">
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column DataIndex="author_id" Header="ID" Hidden="true" />
<ext:Column DataIndex="author_name_l" Header="Lastname" />
<ext:Column DataIndex="author_name_f" Header="Firstname" />
</Columns>
</ColumnModel>
<SelectionModel>
<ext:CheckboxSelectionModel ID="CheckboxSelectionModel1" runat="server" />
</SelectionModel>
</ext:GridPanel>
How do I set the selected rows and check the boxes on Page_Load? Any assistance would greatly be appreciated. I tried the following example but it does not work: https://examples1.ext.net/Examples/G...box_Selection/