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.
Unfortunately, activation email could not send to your email. Please try again.

Splitter height change not reflected on server

Thread ID:

Created:

Updated:

Platform:

Replies:

79213 Jan 23,2009 10:31 AM Jan 29,2009 04:24 AM ASP.NET Web Forms (Classic) 2
loading
Tags: Tools
Stephen Girolami
Asked On January 23, 2009 10:31 AM

Hi

I'm changing the height of a splitter control using client side code (that I took from a forum thread). This code works fine.

However, on a subsequent postback to the server the splitter height is the old height and not the new height.

Is there anyway I can make the new height get transfered to the server?

Thanks
Steve



Melba Winshia [Syncfusion]
Replied On January 29, 2009 03:49 AM

Hi Steve,

Thank you for your interest in Syncfusion Products.

You can make the new height get transferred to the server by using the asp HiddenField control. Please refer below code to achieve this:

[Javascript]

function ChangeSplitterHeight( nDelta )
{
_sfSplitter1.SetHeight( nDelta );
document.getElementById('HiddenField1').value=_sfSplitter1.GetHeight();
}

[C#]

protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
{
this.Splitter1.Height= Unit.Pixel((Int16.Parse(this.HiddenField1.Value)));
}
}

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

http://websamples.syncfusion.com/samples/Tools.Web/7.1.0.21/F79213_SplitterHeight/main.htm

Please try this and let me know if this helps.

Regards,
Melba



Stephen Girolami
Replied On January 29, 2009 04:24 AM

Thanks Melba i'll give it a try


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.

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.

;