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
>