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

Problems with Tab stop

3 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ralph
Top achievements
Rank 1
Ralph asked on 25 Apr 2014, 06:13 PM
Edit and Insert mode loses focus after tab from checkbox column and dropdown.  It works fine after I I click on next textbox field, but it has problems with this transition.

Is there a way to 

Here are my columns that give me problems:

...
<rad:GridCheckBoxColumn DataField="ContentFull" DataType="System.Boolean" UniqueName="ContentFull">
...
<rad:GridTemplateColumn UniqueName="Reason">
   <ItemTemplate>
   </ItemTemplate>
  <EditItemTemplate>
     <asp:DropDownList ID="ddlAdjustmentReason" runat="server" DataSourceID="EntityDataSource2"
                       AppendDataBoundItems="True" DataValueField="AdjustmentCodeID"                 DataTextField="AdjustmentDescription">
   <asp:ListItem Value="" Text="" />
   </asp:DropDownList>
  </EditItemTemplate>
 </rad:GridTemplateColumn>
....



3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 Apr 2014, 06:23 AM
Hi Ralph,

I was not able to replicate such an issue at my end. Can you make sure you have added the AllowKeyboardNavigation="true" for your grid. Could provide you code declaration and the related code behind in order to investigate the issue further.

ASPX:
<ClientSettings AllowKeyboardNavigation="true" >
 <KeyboardNavigationSettings AllowSubmitOnEnter="true" />
</ClientSettings>

Thanks,
Princy
0
Ralph
Top achievements
Rank 1
answered on 28 Apr 2014, 12:27 PM
Hi,

This happens only in batch edit mode.

<rad:RadGrid ID="RadGrid1" runat="server" SkinID="ListGrid"
DataSourceID="EntityDataSource1"<BR>AllowFilteringByColumn="False"
AllowSorting="True" Width="100%"
onkeydown="gridKeyDown(event);"<BR>CellSpacing="0" AutoGenerateColumns="False"
GridLines="None"><BR><MasterTableView DataKeyNames="ContentId"
CommandItemDisplay="Top"
EditMode="Batch"<BR>InsertItemPageIndexAction="ShowItemOnFirstPage"><BR><BatchEditingSettings
EditType="Row" /><BR>...<BR><BR></MasterTableView><BR>
<ClientSettings AllowKeyboardNavigation="true"><BR> <Selecting
AllowRowSelect="true"></Selecting><BR> <KeyboardNavigationSettings
EnableKeyboardShortcuts="true"
AllowSubmitOnEnter="true"<BR>AllowActiveRowCycle="true"
CollapseDetailTableKey="LeftArrow" ExpandDetailTableKey="RightArrow"><BR>
</KeyboardNavigationSettings><BR> </ClientSettings>

0
Princy
Top achievements
Rank 2
answered on 30 Apr 2014, 04:38 AM
Hi Ralph,

Unfortunately, I was not able to replicate such an issue at my end. Below is a sample code snippet I tried which works fine at my end.

ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AllowFilteringByColumn="False" AllowPaging="true" AutoGenerateColumns="false" AllowSorting="True" Width="100%">
    <MasterTableView CommandItemDisplay="Top" EditMode="Batch" InsertItemPageIndexAction="ShowItemOnFirstPage">
        <BatchEditingSettings EditType="Row" />
        <Columns>
            <telerik:GridCheckBoxColumn DataField="IsTrue" DataType="System.Boolean" UniqueName="IsTrue" HeaderText="IsTrue">
            </telerik:GridCheckBoxColumn>
            <telerik:GridTemplateColumn UniqueName="ShipName" HeaderText="ShipName">
                <ItemTemplate>
                    <%#Eval("ShipName") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:DropDownList ID="ddlShipName" runat="server" DataSourceID="SqlDataSource1" DataValueField="OrderID" DataTextField="ShipName">                     
                    </asp:DropDownList>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn UniqueName="OrderID" DataField="OrderID" HeaderText="OrderID">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ShipCity" HeaderText="ShipCity" UniqueName="ShipCity">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
    <ClientSettings AllowKeyboardNavigation="true">
        <Selecting AllowRowSelect="true"></Selecting>
        <KeyboardNavigationSettings EnableKeyboardShortcuts="true" AllowSubmitOnEnter="true">
        </KeyboardNavigationSettings>
    </ClientSettings>
</telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT  * FROM [Orders]"></asp:SqlDataSource>

Thanks,
Princy
Tags
Grid
Asked by
Ralph
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ralph
Top achievements
Rank 1
Share this question
or