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

Getting a value from a hidden row with javascript

Thread ID:

Created:

Updated:

Platform:

Replies:

80387 Apr 1,2009 03:06 PM UTC Apr 2,2009 12:31 PM UTC ASP.NET Web Forms (Classic) 4
loading
Tags: GridGroupingControl
Peter Kovacs
Asked On April 1, 2009 03:06 PM UTC

Hi guys,

I'm trying to read a value on client side, from a row that was also hidden on client side with JavaScript (the elements are still in the HTML, but with style="display: none;" attribute). In this case the

odata.Row.GetValue("HiddenColumn");

function call won't read the value, even though it could read it when the column was visible.
How can I get the value of this hidden column?

Thanks,
Peter


Peter Kovacs
Replied On April 1, 2009 03:09 PM UTC

And I just noticed I wrote 'row' instead of 'column' in the subject. :( Sorry.


Rekha P [Syncfusion]
Replied On April 2, 2009 10:48 AM UTC

Hi Peter,

Thank you for your interest in Syncfusion Products.

We regret to let you know that it is not possible to get the hidden column values through javascript. But this can be achieved using server side where the columns and visible columns are maintained as a collection.

Please refer a workaround sample from below which illustrates retrieving currently selected column and visible column values.
http://files.syncfusion.com/support/GGC.Web/7.1.0.30/F80387/main.htm

Please let me know if you have any concerns.

Thanks,
Rekha


Peter Kovacs
Replied On April 2, 2009 11:56 AM UTC

Hi,

thanks for your post, but you talk about hiding on the column on the server side, and I was about hiding it on client side with JavaScript (with the HideColumn function), the HTML elements will be still there, just hidden (style="display: none;").

Upon further investigation I realized that reading elements from the grid while one of the columns is hidden doesn't work right. I'll report it with Direct-trac.


Rekha P [Syncfusion]
Replied On April 2, 2009 12:31 PM UTC

Hi Peter,

Thank you for the update.

Thanks,
Rekha


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

;