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

[Solved] GridBoundColumn - can't click in EditMode for a single column grid

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eve
Top achievements
Rank 1
Eve asked on 09 Jun 2009, 12:54 PM
I may have found an issue with RadGrid...?

I have a grid that has a GridEditCommandColumn, one visible editable GridBoundColumn, and some invisible GridBoundColumn data items.  The EditMode is InPlace.

If you put the row into edit mode, you can't click on the textbox to edit it.  You can tab to it, but you can't click it.  

If I add another visible editable column to the grid, the problem goes away.

And I can get around it by manually setting focus to the textbox in ItemDataBound.

--Eve

The grid declaration:

 

<telerik:RadGrid ID="ConfigGrid" runat="server" AutoGenerateColumns="False"

 

 

OnNeedDataSource="ConfigGrid_NeedDataSource"

 

 

OnUpdateCommand="ConfigGrid_UpdateCommand"

 

 

OnItemDataBound="ConfigGrid_ItemDataBound"

 

 

ShowStatusBar="True" AllowPaging="False" AllowSorting="true">

 

 

<pagerstyle mode="NextPrevNumericAndAdvanced" />

 

 

<mastertableview autogeneratecolumns="False" editmode="InPlace" commanditemdisplay="Top"

 

 

DataKeyNames="BELawSecCitationDetailID,RowVersion" AllowSorting="true" AllowMultiColumnSorting="true">

 

 

<SortExpressions>

 

 

<telerik:GridSortExpression FieldName="IsAssociated" SortOrder="Descending" />

 

 

<telerik:GridSortExpression FieldName="Citation" SortOrder="Ascending" />

 

 

</SortExpressions>

 

 

<EditFormSettings>

 

 

<EditColumn UniqueName="EditCommandColumn1">

 

 

</EditColumn>

 

 

</EditFormSettings>

 

 

<CommandItemTemplate>

 

 

<div style="float: right;">

 

 

<asp:LinkButton ID="RefreshRadGridLookupButton" runat="server" CommandName="RebindGrid"

 

 

SkinID="swGridRefreshLinkButton"></asp:LinkButton>

 

 

</div>

 

 

</CommandItemTemplate>

 

 

<Columns>

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton">

 

 

<HeaderStyle Width="40px" />

 

 

</telerik:GridEditCommandColumn>

 

 

<telerik:GridCheckBoxColumn DataField="IsAssociated" UniqueName="IsAssociated" DataType="System.Boolean"

 

 

HeaderText="Active?" Visible="false">

 

 

<HeaderStyle Width="40px" />

 

 

</telerik:GridCheckBoxColumn>

 

 

<telerik:GridBoundColumn DataField="Citation" UniqueName="Citation"

 

 

HeaderText="Law Citation Text" DataType="System.String">

 

 

</telerik:GridBoundColumn>

 

Mode

<telerik:GridBoundColumn DataField="BELawSecCitationDetailID" UniqueName="BELawSecCitationDetailID" Visible="false"

 

 

DataType="System.Int32" />

 

 

<telerik:GridBoundColumn DataField="RowVersion" UniqueName="RowVersion"

 

 

DataType="System.Int32" Visible="false">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</mastertableview>

 

 

</telerik:RadGrid>

 

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 10 Jun 2009, 10:40 AM
Hello Eve,

I have just copy-paste your code and seems everything is working correctly.
Please take a look at the attached application.

Regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Eve
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or