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

AutoGenerateEditColumn won't go away!

1 Answer 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stuart
Top achievements
Rank 1
Stuart asked on 08 Apr 2011, 09:50 PM
I have the following definition for my RadGrid:

<telerik:RadGrid ID="gvForecast" runat="server" Width="100%" Height="425px"
    AutoGenerateEditColumn="false" 
    AutoGenerateColumns="false" 
    GridLines="None" Skin="Office2007" ShowFooter="True" CellSpacing="0"
    OnCancelCommand="gvForecast_CancelCommand" 
    OnItemDataBound="gvForecast_ItemDataBound" 
    OnItemCreated="gvForecast_ItemCreated" 
    OnItemCommand="gvForecast_ItemCommand"
    OnColumnCreated="gvForecast_ColumnCreated" 
    AlternatingItemStyle-BackColor="#E2EDFE" >
As you can see, I have the auto generated edit column property set to false.  Regardless, the Edit column continues to appear as the far right hand column in my grid. 

Please don't tell me to hide it in PreRender....while this does hide the column, the header columns and remaining grid items are out of alignment.

For what it is worth, I can create my own Edit column <telerik:GridEditCommandColumn UniqueName="colEdit" Display="true"  without any problems, it's just that the auto generated column continues to remain at the far right side of the grid.   When I do this, both columns of Edit links are functional. 

Any help would be appreciated.  I am using the most current release of the toolkit.

Edit:  I attached a .jpg screen shot showing the stubborn Edit column.

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 14 Apr 2011, 08:37 AM
Hi Stuart,

Unless somewhere else the column is triggered to auto-generate, it would not do so, as you can see in any of our demos with statically declared columns. If you cannot find such place in your code, you can consider creating a runnable sample and sending it to us in a formal support ticket for further debugging. 

All the best,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Stuart
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or