页面中我放置一个CA Grid:
<table cellspacing="0" cellpadding="1" width="100%" align="center" border="0"> <tr> <td align="center"> <ComponentArt:Grid id="Grid1" runat="server" EnableViewState="true" AllowEditing="true" ShowHeader="False" CssClass="Grid" KeyboardEnabled="false" FooterCssClass="GridFooter" RunningMode="Client" PagerStyle="Numbered" PagerTextCssClass="PagerText" PageSize="15" ImagesBaseUrl="images/" width="710" Height="350"> <Levels> <ComponentArt:GridLevel DataKeyField="ModuleId" ShowTableHeading="false" ShowSelectorCells="true" SelectorCellCssClass="SelectorCell" SelectorCellWidth="18" SelectorImageUrl="selector.gif" SelectorImageWidth="17" SelectorImageHeight="15" HeadingSelectorCellCssClass="SelectorCell" HeadingCellCssClass="HeadingCell" HeadingRowCssClass="HeadingRow" HeadingTextCssClass="HeadingCellText" DataCellCssClass="DataCell" RowCssClass="Row" SelectedRowCssClass="SelectedRow" SortAscendingImageUrl="asc.gif" SortDescendingImageUrl="desc.gif" SortImageWidth="10" SortImageHeight="10"> <Columns> <ComponentArt:GridColumn AllowEditing="false" DataField="ModuleId" Align="Center" HeadingText="ModuleId" AllowGrouping="False" /> <ComponentArt:GridColumn AllowEditing="false" DataField="ModuleValue" Align="Center" HeadingText="ModuleValue" AllowGrouping="False" /> <ComponentArt:GridColumn AllowEditing="false" DataField="ModuleName" HeadingText="ModuleName" AllowGrouping="False" /> <ComponentArt:GridColumn HeadingText="选择" DataCellClientTemplateId="CheckBoxSelectClientTemplate" /> </Columns> </ComponentArt:GridLevel> </Levels> <ClientTemplates> <ComponentArt:ClientTemplate ID="CheckBoxSelectClientTemplate"> <input type="checkbox" id="cb_select## DataItem.GetMember('ModuleId').Value ##" value="## DataItem.Moduled ##" /> </ComponentArt:ClientTemplate> </ClientTemplates> </ComponentArt:Grid> </td> </tr> </table>
样式我都没加,可是有一个奇怪的现象就是,就是当点击复选框时:
1、有时点击选不中
2、当选中一部分后,再点击有时会把已经选中的去掉
请帮忙解决一下这个问题,感激不尽!!!