Hi XiMnet,
In this case the correct solution would be to use RadAjaxManager control and add independent settings of each control. This will allow avoiding of the TextBox update which is causing its reset after ajaxRequest. See the approach below and verify of it works for you:
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
<
Scripts
>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.Core.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQuery.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQueryInclude.js"
/>
</
Scripts
>
</
telerik:RadScriptManager
>
<
telerik:RadCodeBlock
ID
=
"RCB1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function requestStart(sender, eventArgs) {
console.log("ss");
}
function onkeyupEvent() {
var text = $find("<%= txt_art_search_box.ClientID %>").get_textBoxValue(); console.log(text);
$find('<%=rap.ClientID %>').ajaxRequest($('#txt_art_search_box').val());
}
</
script
>
</
telerik:RadCodeBlock
>
<
div
>
<
telerik:RadAjaxManager
ID
=
"rap"
runat
=
"server"
OnAjaxRequest
=
"rap_AjaxRequest1"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"rap"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"ltl_show_text"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"txt_art_search_box"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"ddl_status"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"ltl_show_text"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
asp:DropDownList
runat
=
"server"
ID
=
"ddl_status"
>
<
asp:ListItem
Text
=
"Active"
Value
=
"1"
/>
<
asp:ListItem
Text
=
"Pending"
Value
=
"0"
/>
</
asp:DropDownList
>
<
telerik:RadTextBox
AutoPostBack
=
"false"
AutoCompleteType
=
"Disabled"
onkeyup
=
"onkeyupEvent();"
ID
=
"txt_art_search_box"
runat
=
"server"
EmptyMessage
=
"Type here to search"
Width
=
"80%"
>
</
telerik:RadTextBox
>
<
br
/>
You type:
<
asp:Literal
ID
=
"ltl_show_text"
runat
=
"server"
/>
</
form
>
I hope this helps
Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the
blog feed now.