﻿<?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 - Programmatic Grid Reload</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ColumnsetRefresh/</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>Programmatic Grid Reload</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ColumnsetRefresh/</link><pubDate>Thu, 04 Nov 2010 22:10:49 GMT</pubDate><dc:creator>yudi</dc:creator><category>ColumnSet</category><category>refresh</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I apologize for any inconvenience this problem may have caused you. I have fixed and re-attached the video link in my previous post.&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’m afraid that WebGrid 5 has now been discontinued for several years and there are not going to be any further updates for it. Intersoft has enhanced and improved the column set refresh in WebGrid 7 as shown in the video of my previous post.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Programmatic Grid Reload</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ColumnsetRefresh/</link><pubDate>Thu, 04 Nov 2010 05:20:47 GMT</pubDate><dc:creator>daniel.barrett@ucs-software.co.za</dc:creator><category>ColumnSet</category><category>refresh</category><description>&lt;p&gt;Hi Yudi&lt;/p&gt;&lt;p&gt;We are currently using webgrid 5.0.7200.18, WebDesktop 2.0.2007.15, WebUI.NET 3.0.5000.1&lt;/p&gt;
&lt;p&gt;I cannot seem to find your video. I am getting a 404 not found at its current location.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Daniel&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Programmatic Grid Reload</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ColumnsetRefresh/</link><pubDate>Thu, 04 Nov 2010 02:23:40 GMT</pubDate><dc:creator>yudi</dc:creator><category>ColumnSet</category><category>refresh</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I followed carefully the step-by-step in your previous post and was unable to reproduce the issue on my local test as shown in the attached video file.&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 uses WebGrid 7.0 build 405 (7.0.7200.405), WebDesktop 3.0 build 312 (3.0.7200.312), and WebUI.NET Framework 3.0 build 756 (3.0.5000.756). These builds are available in Intersoft WebUI Studio 2010 R1 installer file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Could you please let us know the build version of your WebGrid, WebDesktop and WebUI.NET Framework?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Thank you.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Programmatic Grid Reload</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ColumnsetRefresh/</link><pubDate>Wed, 03 Nov 2010 07:42:05 GMT</pubDate><dc:creator>daniel.barrett@ucs-software.co.za</dc:creator><category>ColumnSet</category><category>refresh</category><description>&lt;p&gt;Hi Yudi&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have imported your sample file into our system and it does replicate the issue. At load all is good, then select level product, and hit reload, and then the issue. have attached a screen shot. The only changes i made was to add a designer class as we use a web application and not a website. &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Daniel&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="file:///C:/DOCUME$ispct;7E1/danibarr/LOCALS$ispct;7E1/Temp/moz-screenshot-1.png" /&gt;&lt;/p&gt;</description></item><item><title>Programmatic Grid Reload</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ColumnsetRefresh/</link><pubDate>Tue, 02 Nov 2010 03:33:54 GMT</pubDate><dc:creator>yudi</dc:creator><category>ColumnSet</category><category>refresh</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I need to have a running simple sample that reproduces the issue in order to observe the problematic behavior.&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 made a simple sample based on the sample code you sent on your previous post. Could you please check my sample and let us know whether the sample able to reproduce the issue or not?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;You may make any changes to the sample and send the sample back to us includes the step-by-step that we can use to investigate the issue better.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Programmatic Grid Reload</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ColumnsetRefresh/</link><pubDate>Mon, 01 Nov 2010 09:39:38 GMT</pubDate><dc:creator>daniel.barrett@ucs-software.co.za</dc:creator><category>ColumnSet</category><category>refresh</category><description>&lt;p&gt;Hi Yudi&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The Reload Button does fire off a Custom paost back that is used in the InitialzePostback method, but before this the following happens: &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Page Load is fired and in this the grid is checked to see if it is Flypostback and clears the datasource and rebinds the grid. it then calls the initdatasource method and then the prepare databinding. After all this is calls the init postback.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have attempted your suggestion, but it is just forcing it to go down the same code path again.  all the data is correct and working, what im looking for is for the grid to be rerendered with the new column structure.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Daniel&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Programmatic Grid Reload</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ColumnsetRefresh/</link><pubDate>Sun, 31 Oct 2010 22:43:59 GMT</pubDate><dc:creator>yudi</dc:creator><category>ColumnSet</category><category>refresh</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Sorry for the late response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Below is my opinion after check the code in your sent page.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;When “Reload” button is clicked, it will invokes SendCustomRequest() method of WebGrid. The SendCustomRequest basically sends a custom request to the server.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;On the server side, check if the Postback action (in InitializePostBack server-side event) is invoked by the custom request. If yes (in this case is invoked by clicking the “Reload” button), refresh WebGrid data and recreate the structure of WebGrid.&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’d like suggest you to add following three lines of code into the Select Case “Reload”.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;grdStockOnHand.ClearCachedDataSource()
grdStockOnHand.RebindDataSource()
grdStockOnHand.ClientAction.Refresh()&lt;/pre&gt;

&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The code above will clears the cached data source, RebindDataSource will automatically reinvoke InitiliazeDataSource event and PrepareDataBinding event (where you put the method to create the structure and the column set of your WebGrid). Next, refresh the grid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please try to test this modification on your local end and let us know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Programmatic Grid Reload</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ColumnsetRefresh/</link><pubDate>Wed, 27 Oct 2010 07:52:00 GMT</pubDate><dc:creator>daniel.barrett@ucs-software.co.za</dc:creator><category>ColumnSet</category><category>refresh</category><description>&lt;p&gt;Due to this being part of a much larger system. I cannot find a good way of decoupling this page from the system without problems. I have included screen shots and a file with our code structure.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;Daniel
&lt;p&gt;&lt;img alt="" src="file:///C:/DOCUME~1/danibarr/LOCALS~1/Temp/moz-screenshot.png" /&gt;&lt;/p&gt;</description></item><item><title>Programmatic Grid Reload</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ColumnsetRefresh/</link><pubDate>Tue, 26 Oct 2010 18:05:08 GMT</pubDate><dc:creator>yudi</dc:creator><category>ColumnSet</category><category>refresh</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I need to know the way you specify the unbound data in order to find the possible way to refresh the column set structure. So we would need you to elaborate on your specific scenario and possibly give us a running simple sample that shows the way the data being specified.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Please let us know your response.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Programmatic Grid Reload</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ColumnsetRefresh/</link><pubDate>Tue, 26 Oct 2010 09:49:14 GMT</pubDate><dc:creator>daniel.barrett@ucs-software.co.za</dc:creator><category>ColumnSet</category><category>refresh</category><description>&lt;p&gt;To Whom it may concern&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have a grid that has a set of columnsets. On a webtoolbar click the grid is being reloaded. I have managed to get the datasource to be refreshed but the columnsets are not being refreshed. Does anyone have any examples of this type of functionallity in the grids. As a extra note, the data is unbound and the columns are build programmaticall, same as the columns.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Daniel&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>