Hi, when i press enter in the Textbox (input), I wan't the default button (in the Panel) to hit, so I jump in to the "SearchOnClick" method on enter press, but i can't get it to work. When i press enter nothing happens. How can i solve this?
<
asp:Panel
runat
=
"server"
ID
=
"SearchPanel"
DefaultButton
=
"BtnSearch"
CssClass
=
"search-box"
>
<
telerik:RadAutoCompleteBox
runat
=
"server"
ID
=
"RadAutoCompleteBox2"
AllowCustomEntry
=
"true"
TextSettings-SelectionMode
=
"Single"
OnClientDropDownOpened
=
"GUI.AutoCompletedOpened"
OnClientRequestFailed
=
"GUI.SearchRequestFailed"
OnClientTextChanged
=
"GUI.SearchInputChanged"
InputType
=
"Text"
Filter
=
"StartsWith"
Width
=
"180px"
DropDownWidth
=
"300px"
CssClass
=
"telerik-search"
EnableEmbeddedSkins
=
"False"
EnableEmbeddedBaseStylesheet
=
"False"
OnEntryAdded
=
"Search_Entry"
>
<
WebServiceSettings
Path
=
"~/Views/Search/SearchResult.aspx"
Method
=
"GetSearchResult"
></
WebServiceSettings
>
<
ClientDropDownItemTemplate
>
<
div
style
=
"display: #= Attributes.DisplayMode #"
>
<
a
href
=
"#= Attributes.ProductUrl #"
>
<
span
class
=
"image-holder"
>
<
img
src
=
"#= Attributes.ImageUrl # "
alt
=
" #= Text # "
width
=
"50"
height
=
"50"
/>
</
span
>
#= Text # <
br
/>
<
span
>#= Attributes.Identifier #</
span
>
</
a
>
#= Attributes.SearchUrl #
</
div
>
</
ClientDropDownItemTemplate
>
</
telerik:RadAutoCompleteBox
>
<
asp:HiddenField
runat
=
"server"
ID
=
"hSearchValue"
ClientIDMode
=
"Static"
/>
<
asp:Button
id
=
"BtnSearch"
runat
=
"server"
OnClick
=
"SearchOnClick"
CssClass
=
"search"
/>
</
asp:Panel
>