hello,
there are two grids say grid1 and grid2. the grid1 is filled with rows before it is rendered but grid two is empty. on client side through javascript, selected rows from the grid1 are added to grid2(by creating new rows of grid2 and adding values from the selected rows of grid1). there is a templatecolumn containing a html checkbox in grid2 which is the only differenence when grid1 and grid2 columns are compared. this column is declared in the source. so when in on the client side the row is added with javascript, this column and its checkbox appears disabled except all even if the property of the column is AllowUpdate="Yes".
so i want to find something on the server side decleration or on the client side javascript like row.getCell(2).Element.Disabled=false which would enable this checkbox .
actually i Have used TemplateColumn. the column is as follows
<igtbl:TemplatedColumn Type="CheckBox" AllowUpdate="Yes">
<CellTemplate>
<input type="checkbox" runat="server" id="chkSelectRow" onclick="Showit()" />
</CellTemplate>
</igtbl:TemplatedColumn>
unfortunately i cannot use the Showit() because the column is disabled : )
Hello,
Yes, I believe that this is the default behaviour -- the checkbox will be disabled unless explicitly the grid row is placed in edit mode. I think the solution for this is to use templated colunms instead of checkbox column and place a checkbox inside the CellTemplate, e.g.
<asp:CheckBox runat="server" ID="CheckBox1" .... />