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

Row indicator column showing when it should not be

2 Answers 306 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Polaris431
Top achievements
Rank 1
Polaris431 asked on 13 May 2009, 02:37 PM

My grid is showing a column that appears to be the row indicator column. I do not want a row indicator column. I have tried setting many attributes to turn it off. I can only assume that it's the row indicator column. I am not adding a column ahead of the edit column. How can I get the first column removed? See my aspx code below:

        <telerik:RadGrid ID="RadGridSignedSessions" Skin="Office2007" runat="server" Width="100%" 
          Height="100%" AutoGenerateColumns="False" PageSize="25" AllowSorting="True" AllowMultiRowSelection="False" 
          AllowPaging="True" GridLines="None" OnNeedDataSource="RadGridSignedSessions_NeedDataSource" 
          Style="border: 0; outline: none" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" 
          AllowAutomaticUpdates="True" EnableAJAX="True">  
          <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle> 
          <MasterTableView DataKeyNames="ID" AllowMultiColumnSorting="True" CommandItemDisplay="TopAndBottom" AutoGenerateColumns="False" RowIndicatorColumn-Visible="false">  
            <Columns> 
              <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" HeaderStyle-Width="30px">  
              </telerik:GridEditCommandColumn> 
              <telerik:GridBoundColumn Visible="false" DataField="ID" UniqueName="ID">  
              </telerik:GridBoundColumn> 
              <telerik:GridBoundColumn SortExpression="TherapistName" HeaderText="Therapist/Teacher" 
                DataField="TherapistName" UniqueName="TherapistName">  
              </telerik:GridBoundColumn> 
              <telerik:GridBoundColumn SortExpression="PatientName" HeaderText="Participant/Patient" 
                DataField="PatientName" UniqueName="PatientName">  
              </telerik:GridBoundColumn> 
              <telerik:GridBoundColumn SortExpression="WorkStartTime" HeaderText="Service Date" 
                DataField="WorkStartTimeLocal" UniqueName="WorkStartTime">  
              </telerik:GridBoundColumn> 
              <telerik:GridBoundColumn SortExpression="HoursWorked" HeaderText="Hours Worked" DataField="HoursWorked" 
                UniqueName="HoursWorked">  
              </telerik:GridBoundColumn> 
              <telerik:GridCheckBoxColumn SortExpression="GuardianUnavailableToSign" HeaderText="Guardian/Supervisor Didn't Sign" 
                DataField="GuardianUnavailableToSign" UniqueName="GuardianUnavailableToSign">  
              </telerik:GridCheckBoxColumn> 
              <telerik:GridCheckBoxColumn SortExpression="SessionApproved" HeaderText="Approved" 
                DataField="SessionApproved" UniqueName="SessionApproved">  
              </telerik:GridCheckBoxColumn> 
              <telerik:GridButtonColumn ConfirmText="Delete this record?" ConfirmDialogType="RadWindow" 
                ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" 
                UniqueName="DeleteColumn" HeaderStyle-Width="30px" > 
              </telerik:GridButtonColumn> 
            </Columns> 
          </MasterTableView> 
          <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="false" AllowColumnsReorder="True" 
            EnablePostBackOnRowClick="True">  
            <Resizing AllowRowResize="True" AllowColumnResize="True"></Resizing> 
            <Selecting AllowRowSelect="true" /> 
            <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
            <ClientEvents OnGridCreated="SignedSessionsGridCreated" /> 
          </ClientSettings> 
        </telerik:RadGrid> 

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 May 2009, 09:11 AM
Hello,

You can try out the following code to hide the RowIndicatorColumn:
c#:
protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        RadGrid1.MasterTableView.GetColumn("RowIndicator").Display = false
    } 

Thanks
Princy.
0
JC
Top achievements
Rank 1
answered on 19 Aug 2010, 04:12 AM
If you set the AllowRowResize="True", the RowIndicatorColumn will be automatically displayed. Set the AllowRowResize to False if you want remove the RowIndicatorColumn.

Regards,
Tags
Grid
Asked by
Polaris431
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
JC
Top achievements
Rank 1
Share this question
or