Hi ,
I set the default button for my search button to trigger when user do the search and hit enter like this
but hitting enter trigger the delete button on my radGrid.here is how delete button binded on my grid.
Any ideas why this is happening? or any other way how I can handle to set default button for hhe user to hit enter to trigger the search button?
Thanks,
Yoni
I set the default button for my search button to trigger when user do the search and hit enter like this
<asp:Panel id="pnlbtnSearch" runat="server" defaultButton="btnSearch"> |
<table id="FilterControls" border="0" cellspacing="2" style="margin-top: 20px"> |
<tr style="margin-left: 25px;padding-bottom:15px"> |
<td class="labels" align="left" valign="top" style="padding-right:15px"> |
<asp:label id="lblService" enableviewstate="False" runat="server" |
text="Service:"></asp:label> |
</td> |
<td align="left" valign="top" colspan="2" > |
<asp:textbox id="uxService" runat="server" width="195px"></asp:textbox> |
</td> |
</tr> |
<tr> |
<td style="height:30px" > |
</td> |
<td style="text-align:left" ><a><asp:LinkButton ID="btnSearch" runat="server" Text="Search" CssClass="searchBtn" ToolTip="Search" |
OnClick="uxSubmit_Click" Style="float: right;"></asp:LinkButton></a> </td> |
<td style="text-align:right" > |
<a> |
<asp:LinkButton ID="uxReset" runat="server" Text="Reset" ToolTip="Reset" CssClass="cancelBtn" |
OnClick="uxReset_Click" Style="float: right;"></asp:LinkButton></a> |
</td> |
</tr> |
</table></asp:Panel> |
<telerik:GridButtonColumn ConfirmText="Warning! This will remove this service and any services underneath." |
ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" |
CommandName="Delete" Text="Delete" ImageUrl="~/Admin/ServiceFinder/images/Delete.gif" |
UniqueName="DeleteColumn"> |
<HeaderStyle Width="40px" /> |
<ItemStyle Width="40px" /> |
</telerik:GridButtonColumn> |
Thanks,
Yoni