I have found while working with the RadGrid that when AllowKeyBoardNavigation is set to true all keyboard navigation events are being captured whether focus is in the grid or not. Not sure if I am going crazy or not, or if there is some other solution.
Here is a simple example that I have duplicated in IE and chrome.
Place a RadTextBox and RadGrid on a form setting the client setting AllowKeyBoardNavigation="True". Also in my testing I am using a masterpage.
When you open the page and the grid is filled put focus and type something in the textbox and attempt to use the back and forward buttons on your keyboard. In my testing focus leaves the textbox and is placed immediately on the grid when one of these keys is pressed. Is this by design or a bug?
Here is a simple example that I have duplicated in IE and chrome.
Place a RadTextBox and RadGrid on a form setting the client setting AllowKeyBoardNavigation="True". Also in my testing I am using a masterpage.
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"cphBody"
runat
=
"Server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
</
telerik:RadScriptManager
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
</
telerik:RadAjaxManager
>
<
telerik:RadTextBox
ID
=
"RadTextBox1"
runat
=
"server"
>
</
telerik:RadTextBox
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
GridLines
=
"None"
onneeddatasource
=
"RadGrid1_NeedDataSource"
>
<
ClientSettings
AllowKeyboardNavigation
=
"True"
>
</
ClientSettings
>
<
MasterTableView
>
<
CommandItemSettings
ExportToPdfText
=
"Export to Pdf"
></
CommandItemSettings
>
<
RowIndicatorColumn
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
<
HeaderContextMenu
CssClass
=
"GridContextMenu GridContextMenu_Default"
>
</
HeaderContextMenu
>
</
telerik:RadGrid
>
</
asp:Content
>
When you open the page and the grid is filled put focus and type something in the textbox and attempt to use the back and forward buttons on your keyboard. In my testing focus leaves the textbox and is placed immediately on the grid when one of these keys is pressed. Is this by design or a bug?