﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - WebGrid accessing HiddenDataMember in BatchUpdate method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-accessing-HiddenDataMember-in-BatchUpdate-method/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebGrid accessing HiddenDataMember in BatchUpdate method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-accessing-HiddenDataMember-in-BatchUpdate-method/</link><pubDate>Thu, 03 Jun 2010 04:09:14 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I haven't recieved any news from them. I emailed them today to remind about this issue. I will let you know after I got the news. Thank you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebGrid accessing HiddenDataMember in BatchUpdate method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-accessing-HiddenDataMember-in-BatchUpdate-method/</link><pubDate>Wed, 02 Jun 2010 10:19:14 GMT</pubDate><dc:creator>jcrendulic</dc:creator><description>&lt;p&gt;Handy,&lt;/p&gt;
&lt;p&gt;Is there an enhancement going in for this issue?  This is a very important issue for us.  Please let me know.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>WebGrid accessing HiddenDataMember in BatchUpdate method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-accessing-HiddenDataMember-in-BatchUpdate-method/</link><pubDate>Wed, 17 Mar 2010 06:16:51 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Ok. I understand the situation. I need a little time to discuss with our developer regarding this issue. Currently, the collection of pending changes, doesn't have the information of ParentKey. Maybe I can talk to them for enhancement or something. I will let you know asap.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebGrid accessing HiddenDataMember in BatchUpdate method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-accessing-HiddenDataMember-in-BatchUpdate-method/</link><pubDate>Mon, 15 Mar 2010 10:06:58 GMT</pubDate><dc:creator>jschuebel</dc:creator><description>&lt;p&gt;Handy,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;We had found several ways to acquire the ParentKey on the client. The problem still exists that we cannot gain access to it on the server when doing a BatchUpdate. &lt;/p&gt;
&lt;p&gt;We had tried the same solution with passing the parentkey in the "AddInput". This works fine if you only update 1 row, but defeats what a "BatchUpdate" stands for. We would need 1 Request.Form input for each Parent row who's child row was changed. Then there is no way to correlate the Request.Form["parentValue" &amp;#43; ???] to the childrow that was changed.&lt;/p&gt;
&lt;p&gt;Is there no way to allow us access to the data in the hidden variables from the snapshot I sent previously which contained the ParentKey information on the server at BatchUpdate time? &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;As for the GetChanges question, I'll start another thread as it seems to confuse the parentkey issue.&lt;/p&gt;</description></item><item><title>WebGrid accessing HiddenDataMember in BatchUpdate method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-accessing-HiddenDataMember-in-BatchUpdate-method/</link><pubDate>Mon, 15 Mar 2010 02:52:40 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Jim,&lt;/p&gt;&lt;p&gt;GetChanges() only returns collection of the changed data when using BatchUpdate. Currentlu, it could not retrieve information of parent KeyValue. &lt;/p&gt;
&lt;p&gt;After investigated and discussed with our developer teams, it seems the possible workaround to get parentKey value during OnAddPendingChanges client side event. Please see the code below.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;function WebGrid1_OnAddPendingChanges(controlId, table, rowChange)
{
			var WebGrid1 = ISGetObject(controlId);
			var value = rowChange.Row.GetParentRow().KeyValue;
			WebGrid1.AddInput("parentValue", value);
			return true;
}&lt;/pre&gt;
&lt;p&gt; e.g I insert a row in child table. I can parent Keyvalue by using &lt;b&gt;rowChange.Row.GetParentRow().KeyValue.&lt;/b&gt; Then, I pass this value by using &lt;i&gt;&lt;b&gt;AddInput&lt;/b&gt;&lt;/i&gt; method.&lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;when I accept all changes, &lt;b&gt;&lt;i&gt;OnBatchUpdate &lt;/i&gt;&lt;/b&gt;server side event would be raised. To get the value which have been passed from client, we need to make request of "&lt;b&gt;&lt;i&gt;parentValue&lt;/i&gt;&lt;/b&gt;".&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;protected void WebGrid1_BatchUpdate(object sender, ISNet.WebUI.WebGrid.BatchUpdateEventArgs e)
{
        string val;
        val = Request.Form["parentValue"];
}&lt;/pre&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>WebGrid accessing HiddenDataMember in BatchUpdate method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-accessing-HiddenDataMember-in-BatchUpdate-method/</link><pubDate>Fri, 12 Mar 2010 16:21:31 GMT</pubDate><dc:creator>jschuebel</dc:creator><description>&lt;p&gt;Thanks Handy,&lt;/p&gt;
&lt;p&gt;Our team looks forward to hearing your solution.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;On a similar note, although we have access to the GetChanges() method of the grid on there server, it seems to only contain information during the BatchUpdate. Is there a way to get this collection on a &lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;SendCustomRequest&lt;span style="color: #000000"&gt;, or the &lt;span style="color: #008000"&gt;Refresh&lt;/span&gt; method? Or is there another method I should be using.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #000000"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #000000"&gt;Reason: I need to postback to the server to see all rows of the&amp;nbsp;datasource and do some calculations, but i donot want to persist the data nor loose my change collection at the time of the calculations.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #000000"&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid accessing HiddenDataMember in BatchUpdate method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-accessing-HiddenDataMember-in-BatchUpdate-method/</link><pubDate>Thu, 11 Mar 2010 05:56:52 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Jim,&lt;/p&gt;&lt;p&gt;Ok. I understand. I did not know before that your scenario is Hierarchical WebGrid. I will discuss with our developer regarding this issue. Maybe we could find something.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebGrid accessing HiddenDataMember in BatchUpdate method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-accessing-HiddenDataMember-in-BatchUpdate-method/</link><pubDate>Wed, 10 Mar 2010 16:08:01 GMT</pubDate><dc:creator>jschuebel</dc:creator><description>&lt;p&gt;Dear &lt;span class="postusername"&gt;&lt;a class="contentlink" href="http://www.intersoftpt.com/Community/Users/handy@intersoftpt.com/"&gt;&lt;span style="color: #165fa7; font-size: 15px"&gt;Handy Surya&lt;/span&gt;&lt;/a&gt;,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="postusername"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span class="postusername"&gt;I am working with Jocelyn on this issue. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="postusername"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span class="postusername"&gt;We are attempting to insert (RowState.Added) a row to a ChildTable in the BatchUpdate method. The WebGridRowChanges contains the "Data" collection with the modified cells for the ChildTable row, but we have found&amp;nbsp;no way to access&amp;nbsp;the KeyValue of the RootTable(Parent) row. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="postusername"&gt;&lt;span style="font-family: 'calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: 'times new roman'; mso-bidi-font-family: 'times new roman'; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;&lt;shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;As you&amp;nbsp;can see from&amp;nbsp;the attached image, the rowChanges has a hidden&amp;nbsp;member that contains the parent keyvalue. Is there some way to access this&amp;nbsp;information on the server in the BatchUpdate?&amp;nbsp;&lt;stroke joinstyle="miter"&gt;&lt;/stroke&gt;&lt;formulas&gt;&lt;f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/f&gt;&lt;f eqn="sum @0 1 0"&gt;&lt;/f&gt;&lt;f eqn="sum 0 0 @1"&gt;&lt;/f&gt;&lt;f eqn="prod @2 1 2"&gt;&lt;/f&gt;&lt;f eqn="prod @3 21600 pixelWidth"&gt;&lt;/f&gt;&lt;f eqn="prod @3 21600 pixelHeight"&gt;&lt;/f&gt;&lt;f eqn="sum @0 0 1"&gt;&lt;/f&gt;&lt;f eqn="prod @6 1 2"&gt;&lt;/f&gt;&lt;f eqn="prod @7 21600 pixelWidth"&gt;&lt;/f&gt;&lt;f eqn="sum @8 21600 0"&gt;&lt;/f&gt;&lt;f eqn="prod @7 21600 pixelHeight"&gt;&lt;/f&gt;&lt;f eqn="sum @10 21600 0"&gt;&lt;/f&gt;&lt;/formulas&gt;&lt;path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"&gt;&lt;/path&gt;&lt;lock aspectratio="t" v:ext="edit"&gt;&lt;/lock&gt;&lt;/shapetype&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="postusername"&gt;Goal : Get the parent row's keyvalue to use during&amp;nbsp;child row insert (foreign key).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="postusername"&gt;Note : We donot&amp;nbsp;want this value&amp;nbsp;display on the ChildTable.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid accessing HiddenDataMember in BatchUpdate method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-accessing-HiddenDataMember-in-BatchUpdate-method/</link><pubDate>Tue, 09 Mar 2010 04:33:20 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p /&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;Hi,&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;You could not get the value of HiddenDataMember in BatchUpdate server side event.&lt;br /&gt;Hidden DataMember is more like attribute. You can set the value of the attribute in the client and if you need to retrieve the value at server, you will need to pass the value from client side into server by using SendCustomRequest(). &lt;br /&gt;This method would do response into server and the proper event should be IntializePostBack which I have showed you before.&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>WebGrid accessing HiddenDataMember in BatchUpdate method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-accessing-HiddenDataMember-in-BatchUpdate-method/</link><pubDate>Mon, 08 Mar 2010 10:07:14 GMT</pubDate><dc:creator>jcrendulic</dc:creator><description>&lt;p&gt;Thanks, can you please show me some example code of accessing the HiddenDataMember value in the BatchUpdate method server side.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;protected&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; WebGrid1_BatchUpdate(&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;object&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; sender, &lt;/span&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;BatchUpdateEventArgs&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; e)&lt;/span&gt;

&lt;p&gt;&lt;span style="font-size: 13px"&gt;{&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;foreach&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; (&lt;/span&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;WebGridRowChanges&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; rowChanges &lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;in&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; e.PendingChanges)&lt;p&gt;{&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;}&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid accessing HiddenDataMember in BatchUpdate method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-accessing-HiddenDataMember-in-BatchUpdate-method/</link><pubDate>Thu, 04 Mar 2010 16:20:10 GMT</pubDate><dc:creator>jcrendulic</dc:creator><description>&lt;p&gt;I have a column defined as...&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;ISWebGrid&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;WebGridColumn&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;Caption&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;="Priority"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;FilterEditType&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;="DropdownList"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;EditType&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;="DropdownList" 
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;Name&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;="Priority"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;DataMember&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;="Priority"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;HiddenDataMember&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;="Number"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt; 

&lt;p&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;In my BatchUpdate method in the code behind page, I want to access the hiddendatamember field value.  How do I access what the value is set to in the HiddenDataMember for that column in the BatchUpdate method in the code behind page?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>