﻿<?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 - How can I maintain User Control Property State between WebGrid CallBacks?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-maintain-User-Control-Property-State-between-WebGrid-CallBacks/</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>How can I maintain User Control Property State between WebGrid CallBacks?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-maintain-User-Control-Property-State-between-WebGrid-CallBacks/</link><pubDate>Thu, 08 Apr 2010 06:15:49 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;According to our developer, the earliest server side event will be control load server side event. For example in ASP TextBox it will be during OnLoad server side event handler.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How can I maintain User Control Property State between WebGrid CallBacks?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-maintain-User-Control-Property-State-between-WebGrid-CallBacks/</link><pubDate>Wed, 07 Apr 2010 07:10:06 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p style="margin: 0in 0in 10pt" class="MsoNormal"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;In ASP.Net there is a Page Life Cycle.&amp;nbsp; On PostBacks, ViewState is loaded in the LoadViewState, after Initialization and before LoadPostbackData.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 10pt" class="MsoNormal"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;My understanding is the FlyPostBack is probably doing something like an XMLHttpRequest.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 10pt" class="MsoNormal"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;When FlyPostBackSettings PostInputControls or PostHiddenFields is set to true, I am guessing you have to Package up these values in your XMLHttpRequest call.&amp;nbsp; That means you have to Unpackage this data on the Server so the Control Values are available.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 10pt" class="MsoNormal"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;Since you have the customize the XMLHttpRequest to pass control Values to the Server, I am guessing you are not using the LoadViewState, but some other Customized Server Event to Unpackage the data.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 10pt" class="MsoNormal"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;What is the Event Sequence (Life Cycle) of an FlyPostBack and where is the Control Values associated with FlyPostBackSettings unpackaged on the Server?&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 10pt" class="MsoNormal"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;What is the earliest that these FlyPostBackSettings Control Values are available Server Side on any FlyPostBack?&amp;nbsp; I am not necessarily talking about when used with a RenderControl ClientAction.&amp;nbsp; If you want to bring the RenderControl into the scenario I don't mean on that FlyPostBack it would&amp;nbsp;on subsequent FlyPostBacks, just like with or without a RenderControl.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>How can I maintain User Control Property State between WebGrid CallBacks?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-maintain-User-Control-Property-State-between-WebGrid-CallBacks/</link><pubDate>Wed, 07 Apr 2010 00:32:46 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Could you elaborate on the scenario you are trying to achieve? As far as I understand, the textbox value will be ready after invoking the RenderControl function. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have prepared a simple sample in which the textbox value will be inserted with the newly added row and retrieve during a button click using flypostback.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How can I maintain User Control Property State between WebGrid CallBacks?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-maintain-User-Control-Property-State-between-WebGrid-CallBacks/</link><pubDate>Tue, 06 Apr 2010 16:33:33 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;What is the earlist Server Side Event that I can get the value from the asp:TextBox that has been loaded by the FlyPostBack.&lt;/p&gt;</description></item><item><title>How can I maintain User Control Property State between WebGrid CallBacks?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-maintain-User-Control-Property-State-between-WebGrid-CallBacks/</link><pubDate>Mon, 05 Apr 2010 22:03:52 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;You could read about FlyPostBack in more detail on the article "&lt;span id="pagetitle"&gt;How-to: Improve FlyPostBack performance&lt;/span&gt;" in the WebUI Framework 3 documentation.&lt;/p&gt;&lt;p&gt;The default setting of FlyPostBack is also discussed in the article.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How can I maintain User Control Property State between WebGrid CallBacks?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-maintain-User-Control-Property-State-between-WebGrid-CallBacks/</link><pubDate>Mon, 05 Apr 2010 17:00:27 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That was half the answer.&lt;/p&gt;
&lt;p&gt;Since I was using an asp:TextBox, I also had to set FlyBackSettings.PostInputControls to true.&lt;/p&gt;
&lt;p&gt;Where can I find the default values for FlyBackSettings?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>How can I maintain User Control Property State between WebGrid CallBacks?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-maintain-User-Control-Property-State-between-WebGrid-CallBacks/</link><pubDate>Mon, 05 Apr 2010 02:10:38 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Our control callback is named FlyPostBack. During FlyPostBack, in order to set value you will need to use RenderControl function. Here is an example to set a value during postback for TextBox. Here is the snippet:&lt;/p&gt;&lt;pre&gt;TextBox1.Text = "New Value;";&lt;br /&gt;wgTest.ClientAction.RenderControl(TextBox1);&lt;/pre&gt;&lt;p&gt;If the suggestion does not solve your issue, do you mind sending us a simple sample of the issue?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How can I maintain User Control Property State between WebGrid CallBacks?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-maintain-User-Control-Property-State-between-WebGrid-CallBacks/</link><pubDate>Thu, 01 Apr 2010 19:56:21 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;I have put ServerBinding WebGrid in a asp.net UserControl (.ascx).&lt;/p&gt;
&lt;p&gt;The UserControl has properties that I normally maintain State with ViewState.&lt;/p&gt;
&lt;p&gt;I also maintain State in an asp:TextBox.&lt;/p&gt;
&lt;p&gt;I have found that between WebGrid CallBacks, such as an Add Row, if I make changes to the UserControl Properties, maintained by ViewState, the values do not stick.&lt;/p&gt;
&lt;p&gt;I have tried the ControlState but it does not make a difference.&lt;/p&gt;
&lt;p&gt;The only solution I have found is to maintain State in a Session Variable which I would prefer not to do since this would be the only Session Variable that I use in the application.&lt;/p&gt;
&lt;p&gt;I found some articles that about "To work around this issue, I simply repeated the call to WebForm_InitCallback before starting the out-of-band call"&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/magazine/cc163863.aspx"&gt;http://msdn.microsoft.com/en-us/magazine/cc163863.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://aspadvice.com/blogs/joteke/archive/2007/06/30/ViewState-_2600_-posting-with-callbacks.aspx"&gt;http://aspadvice.com/blogs/joteke/archive/2007/06/30/ViewState-_2600_-posting-with-callbacks.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Is there something to configure for the WebGrid to make it maintain ViewState or do you have any other ideas as to how to maintain State in this situation?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;</description></item></channel></rss>