Hello All,
I have a default button which clicks on enter key press. But if the cursor is on the RadCombo box then the enter key is not working. Please help me. I am writing the code for this.
<asp:Panel ID="Panel1" runat="server" DefaultButton="btnUpdate">
<div style="position: relative; height: 135px; width: 100%; padding-top: 5px; background-color: #ffe5ad;">
<asp:ValidationSummary ID="VSReqTrak" ShowSummary="false" HeaderText="Please complete the required fields."
ShowMessageBox="true" runat="server" />
<span style="position: absolute; top: 20px; left: 0px; width: 120px; text-align: right;">
Category: </span>
<asp:RequiredFieldValidator ErrorMessage="" Text="*" ControlToValidate="rcbCategory"
Style="position: absolute; top: 21px; left: 123px; height: 20px;" ID="RFVCategory"
runat="server" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
<telerik:RadComboBox ID="rcbCategory" runat="server" Width="210px" Style="position: absolute;
top: 20px; left: 140px;" MarkFirstMatch="true" DataSourceID="ObjCategories" DataTextField="CategoryName"
AllowCustomText="true" SelectedValue='<%# DataBinder.Eval( Container, "DataItem.CategoryID" ) %>'
DataValueField="CategoryID">
</telerik:RadComboBox>
<asp:ImageButton ID="btnUpdate" ToolTip="Update" ImageUrl="~/Images/Update.gif" Text="Update"
Style="position: absolute; top: 90px; left: 650px;" runat="server" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>'
CommandName="Update" />
<asp:ImageButton ID="btnCancel" ToolTip="Cancel" ImageUrl="~/Images/Cancel.gif" Text="Cancel"
Style="position: absolute; top: 90px; left: 680px;" runat="server" CausesValidation="False"
CommandName="Cancel" />
</div>
</asp:Panel>
I have a default button which clicks on enter key press. But if the cursor is on the RadCombo box then the enter key is not working. Please help me. I am writing the code for this.
<asp:Panel ID="Panel1" runat="server" DefaultButton="btnUpdate">
<div style="position: relative; height: 135px; width: 100%; padding-top: 5px; background-color: #ffe5ad;">
<asp:ValidationSummary ID="VSReqTrak" ShowSummary="false" HeaderText="Please complete the required fields."
ShowMessageBox="true" runat="server" />
<span style="position: absolute; top: 20px; left: 0px; width: 120px; text-align: right;">
Category: </span>
<asp:RequiredFieldValidator ErrorMessage="" Text="*" ControlToValidate="rcbCategory"
Style="position: absolute; top: 21px; left: 123px; height: 20px;" ID="RFVCategory"
runat="server" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
<telerik:RadComboBox ID="rcbCategory" runat="server" Width="210px" Style="position: absolute;
top: 20px; left: 140px;" MarkFirstMatch="true" DataSourceID="ObjCategories" DataTextField="CategoryName"
AllowCustomText="true" SelectedValue='<%# DataBinder.Eval( Container, "DataItem.CategoryID" ) %>'
DataValueField="CategoryID">
</telerik:RadComboBox>
<asp:ImageButton ID="btnUpdate" ToolTip="Update" ImageUrl="~/Images/Update.gif" Text="Update"
Style="position: absolute; top: 90px; left: 650px;" runat="server" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>'
CommandName="Update" />
<asp:ImageButton ID="btnCancel" ToolTip="Cancel" ImageUrl="~/Images/Cancel.gif" Text="Cancel"
Style="position: absolute; top: 90px; left: 680px;" runat="server" CausesValidation="False"
CommandName="Cancel" />
</div>
</asp:Panel>