| <telerik:RadGrid ID="GridDepartment" runat="server" OnPageIndexChanged="GridDepartment_PageIndexChanged" |
| OnPageSizeChanged="GridDepartment_PageSizeChanged" OnSortCommand="GridDepartment_SortCommand" |
| OnItemDataBound="GridDepartment_ItemDataBound" OnItemCommand="GridDepartment_ItemCommand"> |
| <MasterTableView AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" |
| GroupsDefaultExpanded="false" PageSize="20"> |
| <Columns> |
| <telerik:GridTemplateColumn> |
| <ItemTemplate> |
| <asp:CheckBox ID="checkBox" runat="server" AutoPostBack="true"/> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn DataField="DspName" HeaderText="姓名" UniqueName="DspName" |
| SortExpression="DspName"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="DeptName" HeaderText="部门" UniqueName="DeptName" |
| SortExpression="DeptName"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <GroupByExpressions> |
| <telerik:GridGroupByExpression> |
| <SelectFields> |
| <telerik:GridGroupByField FieldName="DeptName" HeaderText="部门" /> |
| </SelectFields> |
| <GroupByFields> |
| <telerik:GridGroupByField FieldName="DeptName" HeaderText="部门" SortOrder="Descending" /> |
| </GroupByFields> |
| </telerik:GridGroupByExpression> |
| </GroupByExpressions> |
| </MasterTableView> |
| <ClientSettings> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| </telerik:RadGrid> I don't know how to get the information when users click the CheckBox. For example,when users click the first two,how can I know the choosed items? Please have a look at the attachment. |