﻿<?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 - WebDesktop - Reset vs. ColumnChange</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Reset-vs-ColumnChange/</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>Reset vs. ColumnChange</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Reset-vs-ColumnChange/</link><pubDate>Fri, 23 Jul 2010 11:54:33 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Unfortunately, It could not be done for now. All the behaviour add column and reset, are the same response. There is no way to change it. &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Reset vs. ColumnChange</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Reset-vs-ColumnChange/</link><pubDate>Thu, 22 Jul 2010 16:19:28 GMT</pubDate><dc:creator>bloveall</dc:creator><description>&lt;p&gt;Hi Handy,&lt;/p&gt;
&lt;p&gt;I understand why the issue is happening. My questions remains: Is there a way to determine whether or not the InitializePostBack which originates from the user hitting "Reset" is different from a manual column change? I would like to eliminate the user's preferences when the user clicks the Reset and go back to the specs in the .aspx file but since the Reset results in a PostBackAction of "ColumnChange" rather than, say, "Reset," I don't have a way to know when they're resetting.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Brad&lt;/p&gt;</description></item><item><title>Reset vs. ColumnChange</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Reset-vs-ColumnChange/</link><pubDate>Thu, 22 Jul 2010 15:52:28 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Brad,&lt;/p&gt;&lt;p&gt;Yes, that is what I tried to explain before. Unfortunately, it seems no other way. That's happened because the current structure is overriden by the structure in your xml. That's why after you removed/added the columns and hit reset, it would revert back into the columns in xml.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Reset vs. ColumnChange</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Reset-vs-ColumnChange/</link><pubDate>Thu, 22 Jul 2010 09:35:06 GMT</pubDate><dc:creator>bloveall</dc:creator><description>&lt;p&gt;Hi Handy,&lt;/p&gt;
&lt;p&gt;We're saving the column preferences in our own xml file that is pretty straightforward, we have the report in question, a list of columns, and whether the user has indicated that they ought to be visible or hidden.&lt;/p&gt;
&lt;p&gt;When we load a report, we inspect that file and it overrides whatever might be in the WebGrid column definition on the aspx page. So, we might have eight columns, all of which are designated as visible in our aspx file. But, when the user removes columns and moves them around, their column preferences are changed in the xml file and that is what is used to determine the columns which are loaded. &lt;/p&gt;
&lt;p&gt;So, say we have eight columns defined, the user removes two, completes her task and closes her browser. She comes back the next day and when the report is loaded, only six columns are loaded. At this point, if she hits "Reset," she might think that she will get the other two columns back, but she won't. If she removes two more and, in the same session, hits "Reset," then she'll be back to six but she can't get back to eight without manually adding them back. So, what I'm saying is that we'd like to handle the "Reset" postback so that we can eliminate their column preferences altogether but I cannot figure out the difference between a reset call and a normal, manual, column change. Is there some way to determine whether the postback is a reset or if it is just a normal, user, column change?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Brad&lt;/p&gt;</description></item><item><title>Reset vs. ColumnChange</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Reset-vs-ColumnChange/</link><pubDate>Thu, 22 Jul 2010 09:17:41 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Brad,&lt;/p&gt;&lt;p&gt;May I know how do you save your preferences in xml file? &lt;/p&gt;
&lt;p&gt;In my simple case, I am using SaveTablesStructure. User can save their column change. But no matter, click on Reset, the columns would not be changed after first load. WebGrid would assume the first load columns structures as default.&lt;/p&gt;
&lt;p&gt;e.g&lt;/p&gt;
&lt;p&gt;first load show 4 columns instead 8 columns at total. When click on reset, nothing changed.&lt;br /&gt;try to select more columns via header context menu. e.g 6.&lt;br /&gt;&lt;br /&gt;When Columns changed to 6. the structure is saved. But if we click reset, WebGrid would go back into 4 columns and at this rate, the structure is also saved.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Reset vs. ColumnChange</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Reset-vs-ColumnChange/</link><pubDate>Wed, 21 Jul 2010 11:00:52 GMT</pubDate><dc:creator>bloveall</dc:creator><description>&lt;p&gt;When we click the "Reset" link on the context menu from a WebGridColumn, the InitializePostBack event is handled but there is seemingly no way to tell the difference between a "Reset" and a scenario where the user manually adds or removes individual columns and hits "Apply Changes." I would like to override the "Reset" so that, instead of resetting based on the changes that the user has made during their visit to the page, we reset their column preferences, which we track in an xml file. So, when the grid is loaded, we configure the column order and visibility based on preferences that they have saved in an xml file. When they hit "Reset," we'd like to eliminate those preferences and load the grid based on the columns that we define in the .aspx file. How could we do this when the Reset link is clicked?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Brad&lt;/p&gt;</description></item></channel></rss>