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

Grid EditMode and Inputs SelectionFocus

3 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
romulo~
Top achievements
Rank 1
romulo~ asked on 05 Jun 2015, 02:36 PM

Hello,

 I'm experiencing a strange behavior. I'm using in the same page a RadGrid with EditMode="Batch" and other RadInputs with SelectionOnFocus="SelectAll".

The problems is:

The focus on the inputs don't always select the content as they should. It only happens when the EditMode of the grid is "Batch". When I remove the property the focus works fine.

 

Is there any workaround? Am I missing some property that handles that?

 

This is an example of one of the textboxes:

<telerik:RadTextBox
    ID="txtInputText" runat="server" Width="100%" ShowButton="False" TextMode="SingleLine"
    Rows="1" ReadOnly="False" Enabled="True" onkeydown="ignorarEnter(this,event)"
    OnTextChanged="txtInputText_OnTextChanged" SelectionOnFocus="SelectAll" />

And here is my RagGrid:

<telerik:RadGrid
    Width="100%" Height="100%" Style="border: 0; outline: none" CssClass="gridClass"
    runat="server" ID="grdControl" ClientIDMode="Predictable" BorderWidth="0px"
    OnItemCommand="grdControl_ItemCommand" OnNeedDataSource="grdControl_NeedDataSource"
    OnBatchEditCommand="grdControl_BatchEditCommand" PageSize="50"
    AllowSorting="true" Culture="pt-BR" AutoGenerateColumns="false"
    AllowAutomaticInserts="true" AllowAutomaticUpdates="true"
    AllowAutomaticDeletes="true" FilterType="Classic"
    AllowPaging="false" AllowFilteringByColumn="false">
    <MasterTableView
        TableLayout="Fixed" AllowPaging="false" AllowFilteringByColumn="false"
        Width="100%" CommandItemDisplay="None" >
        <BatchEditingSettings SaveAllHierarchyLevels="true" EditType="Row" OpenEditingEvent="DblClick" />
        <RowIndicatorColumn Visible="False" />
        <ExpandCollapseColumn Created="True" />
        <Columns>
            <telerik:GridBoundColumn UniqueName="text1" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number1" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date1" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool1" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text2" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number2" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date2" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool2" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text3" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number3" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date3" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool3" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text4" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number4" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date4" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool4" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text5" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number5" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date5" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool5" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text6" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number6" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date6" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool6" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text7" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number7" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date7" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool7" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text8" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number8" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date8" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool8" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text9" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number9" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date9" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool9" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text10" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number10" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date10" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool10" Visible="false" />
        </Columns>
    </MasterTableView>
    <PagerStyle
        AlwaysVisible="false" PageSizeControlType="None" CssClass="grdpager" Position="Bottom" />
    <HeaderContextMenu RenderMode="Lightweight" />
 
    <ClientSettings EnableRowHoverStyle="true" AllowKeyboardNavigation="true">
 
        <ClientEvents OnKeyPress="desbilitarEnterGrid" />
 
        <Selecting AllowRowSelect="true" />
        <Resizing
            AllowRowResize="false" AllowColumnResize="true" AllowResizeToFit="true"
            ClipCellContentOnResize="true" EnableRealTimeResize="false"
            ResizeGridOnColumnResize="false" />
        <Scrolling AllowScroll="true" UseStaticHeaders="True" />
    </ClientSettings>
 
</telerik:RadGrid>

 

3 Answers, 1 is accepted

Sort by
0
romulo~
Top achievements
Rank 1
answered on 09 Jun 2015, 08:08 PM
Anyone had the same behavior?
0
romulo~
Top achievements
Rank 1
answered on 09 Jun 2015, 08:34 PM

I just found out this behavior is happening on IE.

In chrome and firefox the behavior grids and inputs are working fine, the way they were supposed to be

0
Accepted
Konstantin Dikov
Telerik team
answered on 10 Jun 2015, 08:45 AM
Hi RĂ´mulo,

The behavior that you are describing could be observed with some older versions of our controls. Can you please test with the latest version of the suite and see if the issue will persist?

If you continue to experience the same problem after the upgrade, please open regular support ticket with sample, runnable project, so we can test it locally and isolate the root of the problem.


Best Regards,
Konstantin Dikov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
romulo~
Top achievements
Rank 1
Answers by
romulo~
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or