﻿<?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 7 : Persisting changes by javascript</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-7--Persisting-changes-by-javascript/</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 7 : Persisting changes by javascript</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-7--Persisting-changes-by-javascript/</link><pubDate>Thu, 18 Feb 2010 05:58:01 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I was able to repro the issue on my end and currently still investigating this issue. &lt;br /&gt;I’ll get back to you as soon as I get any findings.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid 7 : Persisting changes by javascript</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-7--Persisting-changes-by-javascript/</link><pubDate>Wed, 17 Feb 2010 09:20:17 GMT</pubDate><dc:creator>michaelc</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I attached the file I am working on.&lt;/p&gt;
&lt;p&gt; To replicate problem 1, click on a checkbox at invoice level, the child rows will be populated, then click on the button (button1), changes are not reflected&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;To replicate problem 2, expand invoice 2 on page 1, navigate to page 2, navigate back to page 1, try to expand invoice 1, it will not expand&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;To replicate problem 3, click on rowchecker on an invoice in page 1, go to page 2 and back to page 1. Row is not checked anymore&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Let me know of your findings&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;</description></item><item><title>WebGrid 7 : Persisting changes by javascript</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-7--Persisting-changes-by-javascript/</link><pubDate>Wed, 17 Feb 2010 04:47:53 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Do you have a running simple sample that replicates the issue?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I need to check the code in order to determine what may cause the issue. You may use the [Orders] and [OrderDetails] table of Northwind database or Northwind dataset that available in WebGridSamples project as the data source.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid 7 : Persisting changes by javascript</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-7--Persisting-changes-by-javascript/</link><pubDate>Tue, 16 Feb 2010 17:26:03 GMT</pubDate><dc:creator>michaelc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm having problem persisting grid changes by javascript.&lt;/p&gt;
&lt;p&gt;The
grid settings are Paged Hierarchical grid having Invoice and
InvoiceDetails as parent and child relationship and using batchupdate
feature. The grid is populated during WebGrid1_InitializeDataSource by
a dataset which contains 2 tables: Invoice and Invoicedetails with a
datarelation.&lt;/p&gt;
&lt;p&gt;When an invoice is selected (by rowchecker
checkbox) , I have some javascript code that iterates through its
invoicedetails and select all of them and apply payment against the
outstanding amount. When the rowchecker in the invoice header is
checked, it applies payment against all invoices and their
invoicedetails i.e to every invoices.&lt;/p&gt;
&lt;p&gt;The goal is to give the client the possibility to choose which
combination of invoice he wants to pay, they can essentially try
different combinations.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;All the changes are reflected in the grid. Only when the update button is clicked, the process will gather all the selected invoice details and actually pays them.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Problems:&lt;/p&gt;
&lt;p&gt;1.
When I click on the update button which trigger a postback, all the
changes made on the grid are not reflected on the server side. Is there
a way to persist changes made by javascript to the cached datasource
without triggering postback or flypostback? I tried
wgGetCellByName(childRows[i].GetElement(), "Payments").cellModified =
true; with ISGetObject("WebGrid1").MarkEdit(); to no avail.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;2.
When navigating to the next paged items (Page 2) then back to (page 1),
you can no longer expand or collapse the parent item. Child rows are
not shown. When RestoreExpandedChildRows="True" is used, the parent item that was expanded remain expanded, but other rows cannot be expanded.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;3. Rowchecker does not seem to work on other pages (Page 2, 3, 4 ...) other than the current page.&lt;br /&gt;
 &lt;/p&gt;
&lt;p&gt;We are trying to gather all the changes made on the screen before
making a server call. Is this even possible using Webgrid, if so
please, any advice will be appreciated.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Michael&lt;br /&gt;
&lt;/p&gt;</description></item></channel></rss>