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

View State Mode Disabled shows Select Column on Radgrid

1 Answer 133 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tako
Top achievements
Rank 2
Tako asked on 27 Jan 2012, 08:23 PM
I have created a radgrid and have set it's view state mode to disabled. Problem is it generates an extra 'select' column and cannot seem to remove it. If I remove the view state then the column disappears.              

Tried setting the columns auto generate to false yet it remains persistant.  Also tried forcing it to be invisible as follows...

<telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" visible="false" />

Yet it remains there.

What can I do to remove it please?

Pasted my code below. Thanks in advance for your help.

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"
    GridLines="None" AllowFilteringByColumn="True" AllowSorting="True" Height="300px"
    PageSize="7" OnItemDataBound="RadGrid1_ItemDataBound"
ViewStateMode="Disabled" OnDataBound="RadGrid1_DataBound" AutoGenerateColumns="false"
SelectedItemStyle-Width="0px" CellSpacing="0">
    <MasterTableView>
        <Columns>
            <telerik:GridBoundColumn
                DataField="CODE"
                HeaderText="Code"
                ReadOnly="True"
                SortExpression="CODE" UniqueName="CODE">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn
                DataField="NAME"
                HeaderText="Code"
                ReadOnly="True"
                SortExpression="NAME" UniqueName="NAME">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
 
    <ClientSettings>
        <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="false" />
        <ClientEvents OnRowSelected="RowSelected" />
    </ClientSettings>
</telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 01 Feb 2012, 03:58 PM
Hello Timothy,

I am not able to reproduce the issue - could you give more details on how to replicate it on the attached sample.

All the best, Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Tako
Top achievements
Rank 2
Answers by
Tsvetoslav
Telerik team
Share this question
or