How to set HiddenDataMember value from client side and later access modified value at server side ?

3 replies. Last post: April 13, 2010 3:09 AM by Andi Santoso
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Gaurav DesaiMember

We are using WebGrid 7.0 in SharePoint web part and rendering the grid programatically.

We have one hidden column having some text value which we have associated with some visible column by specifying HiddenDataMember field.

in client side i am modifying the hidden data member value as mentined below.


var NormalField = cells.GetNamedItem("NormalField");   

var HiddenField = NormalField.GetElement().attributes["MyHiddentDataMemberFieldName"].value;  

//Now i am setting its value.

NormalField .GetElement().attributes["AssignmentComments"].value = "some sample text which should be accesseibel at server side also"


But, when i try to access the hidden field value on server side  the way mentinoed below i still get the old value instead of the modified value. Any idea why is it so ? 

//Following line gives me old value and not the client side modified new value.

webGridRow.Cells.GetNamedItem( "MyHiddentDataMemberFieldName" ).Value


Any idea ?


Thanks.



All times are GMT -5. The time now is 12:41 AM.
Previous Next