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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Toolbar with TextBox in template

Thread ID:

Created:

Updated:

Platform:

Replies:

94729 May 30,2010 01:15 PM UTC Jun 1,2010 01:31 PM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: Tools
jeren norman
Asked On May 30, 2010 01:15 PM UTC

Hello Syncfusion,

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

Thank for your TIPs.

Lakxman Kumar C [Syncfusion]
Replied On 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

jeren norman
Replied On 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.

Lakxman Kumar C [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;