I have a webtab whose content is bound to a usercontrol. my requirement is to change the tab text when user changes value on a textbox inside the usercontrol
i tried changing the text on the textbox's textchanged event, but the tab header text seems no effect.
protecte void textbox1_TextChanged(object sender, EventArgs e)
{
webtab1.Text = textbox1.Text;
}
can anyboy help me how to achieve this
Hi Pradeepa Madhavan,
You should be able to set the text of a WebTab's tab by using something similar to:
WebTab1.Tabs[0].Text = textbox1.Text;
Please ensure that you have set the AutoPostback flag of your Textbox to true.
Let me know if you need further assistance.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://www.infragistics.com/support
Thanks for the mail. I did the same in the Textbox's change event. I had the autopostback set to true to handle the change event already. Eventhough the code is executing i dont see the tab header being changed.
Thank you for the reply. Can you clarify your setup for me: is the WebTab itself inside the user control, or does a tab contain the user control which contains the TextBox? Also could you please provide your product version so I can replicate your setup as closely as possible.
The webtab is placed in the parent page whose content is bound to a usercontrol , so that textbox is residing in the usercontrol. I have handled the usercontrol's textbox change event in the parent page where webtab is residing and everything works fine. The version Im using 10.3.20103.1013
Hi PradeepaMadhavan,
I have created a sample for you illustrating the configuration you describe. I have tested it using 10.3.20103.1013 and the Tab's text is changed as expected.
Please contact me if you have any questions.
Please let me know if you need further assistance with this matter.