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
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?
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?