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

Row Selection not working

2 Answers 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Abdulaziz
Top achievements
Rank 1
Abdulaziz asked on 30 Aug 2012, 06:53 PM
I have radgride in my aspx page but when i show my page in browser can not see row selection i don't know why
note : property AllowMultiRowSelection="true" 
- I use VS2010 Frameworke 4 ,VB.net

<telerik:RadGrid ID="RadGrid1" ShowGroupPanel="True" ShowStatusBar="true"
       runat="server" DataSourceID="SqlDataSource1" Width="95%" AutoGenerateColumns="False"
       PageSize="15" AllowSorting="True" AllowMultiRowSelection="true" AllowPaging="True" GridLines="None" AllowFilteringByColumn="true">
       <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
       <MasterTableView Width="100%" DataSourceID="SqlDataSource1" DataKeyNames="Class_ID" AllowMultiColumnSorting="True">
           <DetailTables>
               <telerik:GridTableView DataKeyNames="Client_id" DataSourceID="SqlDataSource2" Width="100%" runat="server">
                   <ParentTableRelation>
                       <telerik:GridRelationFields DetailKeyField="Class_ID" MasterKeyField="Class_ID" />
                   </ParentTableRelation>
                   <DetailTables>
                       <telerik:GridTableView DataKeyNames="Client_id" DataSourceID="SqlDataSource3" Width="100%" runat="server">
                           <ParentTableRelation>
                               <telerik:GridRelationFields DetailKeyField="Client_id" MasterKeyField="Client_id" />
                           </ParentTableRelation>
                           <Columns>
                               <telerik:GridBoundColumn SortExpression="Class_ID" HeaderText="Class_ID" DataField="Class_ID" UniqueName="Class_ID">
                               </telerik:GridBoundColumn>
                               <telerik:GridBoundColumn SortExpression="Course_Name" HeaderText="Course_Name" DataField="Course_Name" UniqueName="Course_Arabic_Name">
                               </telerik:GridBoundColumn>
                               <telerik:GridBoundColumn SortExpression="Client_id" HeaderText="Client_id" DataField="Client_id" UniqueName="Client_id">
                               </telerik:GridBoundColumn>
                           </Columns>
                           <SortExpressions>
                               <telerik:GridSortExpression FieldName="Client_id" SortOrder="Descending"></telerik:GridSortExpression>
                           </SortExpressions>
                       </telerik:GridTableView>
                   </DetailTables>
                   <Columns>
                       <telerik:GridBoundColumn SortExpression="Full_Arb_Nmae" HeaderText="Full_Arb_Nmae" DataField="Full_Arb_Nmae" UniqueName="Full_Arb_Nmae">
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn SortExpression="Client_id" HeaderText="Client_id" DataField="Client_id" UniqueName="Client_id">
                       </telerik:GridBoundColumn>
                   </Columns>
                   <SortExpressions>
                       <telerik:GridSortExpression FieldName="Client_id"></telerik:GridSortExpression>
                   </SortExpressions>
               </telerik:GridTableView>
           </DetailTables>
           <Columns>
               <telerik:GridBoundColumn SortExpression="Employee_Name" HeaderText="Employee_Name" DataField="Employee_Name" UniqueName="CustomerID">
               </telerik:GridBoundColumn>
               <telerik:GridBoundColumn SortExpression="Course_Name" HeaderText="Course_Name" DataField="Course_Name" UniqueName="Course_Name 
"
>
               </telerik:GridBoundColumn>
               <telerik:GridBoundColumn SortExpression="Start_Date" HeaderText="Start_Date" DataField="Start_Date" UniqueName="Start_Date">
               </telerik:GridBoundColumn>
           </Columns>
           <SortExpressions>
               <telerik:GridSortExpression FieldName="Course_Arabic_Name"></telerik:GridSortExpression>
           </SortExpressions>
       </MasterTableView>
       <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
           <Resizing AllowRowResize="True" AllowColumnResize="True"></Resizing>
       </ClientSettings>
   </telerik:RadGrid>

any one can help me

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 31 Aug 2012, 05:47 AM
Hello,

You also have to set below property.

<ClientSettings>
               <Selecting AllowRowSelect="true" />
           </ClientSettings>


Thanks,
Jayesh Goyani
0
Abdulaziz
Top achievements
Rank 1
answered on 31 Aug 2012, 01:25 PM
Thanks , work fine
Tags
Grid
Asked by
Abdulaziz
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Abdulaziz
Top achievements
Rank 1
Share this question
or