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

How to set the Title property of the Window control

I have a form (Form1) that loads a Window control with its Source property set to a specific Web page (Form2). In code behind on Form2, I need to change the title of the Window control at run time, but I can't find a way from Form2 to get a reference to the Window control because that Window control is in fact sitting on Form1.

Is there a way to do this?


1 Reply

MW Melba Winshia Syncfusion Team July 15, 2008 08:58 AM UTC

Hi Andy

Thank you for your interest in Syncfusion Products.

It is not possible to change the title of Window control in Code behind on Form2. But you can change the title in client side using clientobjectid. Please use below code snippet to achieve this:

function test()
{
window.parent.sfwindow1.SetTitleText("Modified Title");
}

Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Tools.Web/6.3.0.30/Tools_ASP_Window_75072/main.htm

Please try this and let me know if this helps.

Thanks,
Melba



Loader.
Live Chat Icon For mobile
Up arrow icon