This is a migrated thread and some comments may be shown as answers.

Search box inside Add new record template

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RB
Top achievements
Rank 1
RB asked on 14 Oct 2014, 09:45 PM
In my Ragdrid, on click of Add New record, I added a template with a textbox and a button. In the textbox, after typing first 4 letters of a name, it should give matching name suggestions just like google does. For this purpose, in the onPrerender of the user control which contains the text box and button, I have added 
  
 AjaxControlToolkit.ToolkitScriptManager.RegisterClientScriptBlock(this, typeof(string), this._TbName.ClientID, "NameSearch('" + this._TbName.ClientID +"');", true);


But the NameSearch method is never called. Whereas, if the text box is placed outside the radgrid, this method is called!
Is there some other approach which needs to be used when this is being done in the add new record template?

1 Answer, 1 is accepted

Sort by
0
Accepted
Radoslav
Telerik team
answered on 17 Oct 2014, 07:47 AM
Hello,

Could you please try using following code snippet and let me know if the issues still exists:
ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "NameSearch", "NameSearch('" + this._TbName.ClientID +"');", true);

Looking forward for your reply.

Regards,
Radoslav
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
RB
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or