We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Toolbar with TextBox in template

Hello Syncfusion,

As the subject, how I get the TextBox that embedded in a template of Syncfusion ToolBar control.

Thank for your TIPs.

3 Replies

LK Lakxman Kumar C Syncfusion Team May 31, 2010 08:44 AM UTC

Hi Jeren,

Thank you for your patience.

A TextBox inside the Toolbar template can be accessed by using the Sender object of the Template Textbox's onLoad event and casting it as a TextBox. Then the TextBox's instace can be accessed to manipulate the templated textbox. Kindly find the code snippet below to achieve this.

[ASPX]
















[C#]

TextBox myTextBox = new TextBox();
public void txtBox_Load(object sender, EventArgs e)
{
myTextBox = sender as TextBox;
}

protected void Button1_Click(object sender, EventArgs e)
{
myTextBox.Text = "Template TextBox Found!";
}


Kindly try the above and please let us know if this works for you.

Regards,
Lakxman Kumar C


JN jeren norman May 31, 2010 09:59 AM UTC

Thank you! That's fabulous, but is it possible to get the embedded controls by ToolBar's members in future?

Let all of Syncfusion components get embedded ones by the same way.


LK Lakxman Kumar C Syncfusion Team June 1, 2010 01:31 PM UTC

Hi Jeren,

Thank you for your suggestion.

This is suspected to be a feature and we have forwarded this to our Development Team for more analysis.

In addition to our Community Forums, we have other customized support avenues like our Direct Trac Developer Support System https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents and we hope you will take advantage of this system as well.

Regards,
Lakxman Kumar C

Loader.
Live Chat Icon For mobile
Up arrow icon