Hi,
I have one grid with dynamic text boxes are coming from DB. The issue is that If user go to Edit mode in the Grid and then user puts some values in text boxes at the time user clicks the Enter button in Chrome browser, the application will take the another button control and make the changes as per the button event, So i need to disable the Enter Key in chrome browser, But its working fine in firefox browser.
The issues in in chrome browser only, I have attached my grid and script code snippet below.
Can anyone help me regarding this issue..
This is my script..
This is my Grid..
-Thanks
Rk.MooRthy
I have one grid with dynamic text boxes are coming from DB. The issue is that If user go to Edit mode in the Grid and then user puts some values in text boxes at the time user clicks the Enter button in Chrome browser, the application will take the another button control and make the changes as per the button event, So i need to disable the Enter Key in chrome browser, But its working fine in firefox browser.
The issues in in chrome browser only, I have attached my grid and script code snippet below.
Can anyone help me regarding this issue..
This is my script..
function OnEnterKeyPress(sender, args) {
var keypressed = args._keyCode;
if (keypressed == "13") {
document.getElementById('<%=lblMsg.ClientID %>').innerHTML = "Please use the Update Button";
args.set_cancel(true);
}
This is my Grid..
// This is my grid //
<
telerik:RadGrid
ID
=
"RGRateCorrection"
runat
=
"server"
AutoGenerateColumns
=
"false"
Skin
=
"Vista"
OnNeedDataSource
=
"RGRateCorrection_NeedDataSource"
OnUpdateCommand
=
"RGRateCorrection_UpdateCommand"
Width
=
"1000px"
Height
=
"300px"
HeaderStyle-Width
=
"500px"
ItemStyle-Width
=
"500px"
OnItemDataBound
=
"RGRateCorrection_ItemDataBound"
>
<
MasterTableView
EditMode
=
"InPlace"
EnableColumnsViewState
=
"false"
Width
=
"1000px"
>
<
Columns
>
<
telerik:GridEditCommandColumn
ButtonType
=
"LinkButton"
UniqueName
=
"EditCommandColumn"
>
</
telerik:GridEditCommandColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
ClientEvents-OnKeyPress
=
"OnEnterKeyPress"
>
<%-- AllowKeyboardNavigation="true"--%>
<
Scrolling
AllowScroll
=
"true"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
-Thanks
Rk.MooRthy