﻿<?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 Embedded Template Controls Not Processed On Fly Postbacks</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Embedded-Template-Controls-Not-Processed-On-Fly-Postbacks/</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 Embedded Template Controls Not Processed On Fly Postbacks</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Embedded-Template-Controls-Not-Processed-On-Fly-Postbacks/</link><pubDate>Fri, 03 Jun 2011 06:48:30 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Yousif,&lt;/p&gt;&lt;p&gt;It seems the issue has not been fixed in 2011R1. I will ask Glenn about the progress about this issue. I will help to follow up this to our developer teams.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebGrid Embedded Template Controls Not Processed On Fly Postbacks</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Embedded-Template-Controls-Not-Processed-On-Fly-Postbacks/</link><pubDate>Thu, 02 Jun 2011 09:12:44 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Hi Glenn,&lt;/p&gt;
&lt;p&gt;What the latest update on this?  Has it been fixed in 2011 R1?&lt;/p&gt;</description></item><item><title>WebGrid Embedded Template Controls Not Processed On Fly Postbacks</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Embedded-Template-Controls-Not-Processed-On-Fly-Postbacks/</link><pubDate>Thu, 28 Oct 2010 12:43:13 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Glenn,&lt;/p&gt;
&lt;p&gt;One other thing that I forgot to mention is that the UpdateRow and AddRow fly post backs do not trigger any UpdatePanels that may need updating.  Even if we add the triggers, in the markup like the example below, the panel does not get updated.&lt;/p&gt;&lt;pre&gt;&amp;lt;asp:AsyncPostBackTrigger ControlID="WebGrid3" EventName="AddRow" /&amp;gt;
&amp;lt;asp:AsyncPostBackTrigger ControlID="WebGrid3" EventName="UpdateRow" /&amp;gt;
&lt;/pre&gt;
&lt;p&gt;We also have to add, for each check box template, the triggers dynamically as I do in the sample's MyCustomGrid's OnInitializeRow override.&lt;/p&gt;
&lt;p&gt;I'm sure you noticed this already, but I do have the post back settings all set to true, i.e.,&lt;/p&gt;&lt;pre&gt;this.FlyPostBackSettings.PostControlState = true;
this.FlyPostBackSettings.PostHiddenFields = true;
this.FlyPostBackSettings.PostInputControls = true;
this.FlyPostBackSettings.PostViewState = true;
&lt;/pre&gt;</description></item><item><title>WebGrid Embedded Template Controls Not Processed On Fly Postbacks</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Embedded-Template-Controls-Not-Processed-On-Fly-Postbacks/</link><pubDate>Wed, 27 Oct 2010 06:45:38 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Thank you for the new sample. Currently I am still in discussion with the developer regarding this issue and we are still analysing the sample for the cause of the issue. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid Embedded Template Controls Not Processed On Fly Postbacks</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Embedded-Template-Controls-Not-Processed-On-Fly-Postbacks/</link><pubDate>Mon, 25 Oct 2010 10:00:04 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Glenn,&lt;/p&gt;
&lt;p&gt;Here's another sample of another problem I discovered that I hope you can help.  Let me know if you have any questions on the code.  I removed the ajax control tool kit since you have this already so you just need to update the reference to it.&lt;/p&gt;
&lt;p&gt;I have another check box that is an editable field.  This is used to check the default row, for example.  So do the following to see the issue(s):&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Add a row where the check box is checked&lt;/li&gt;&lt;li&gt;Now add a row with the check box not checked.&amp;nbsp; When added, the row with the checked box gets reset&lt;/li&gt;&lt;li&gt;You can only have one row as the default, so only one of those check boxes can be checked at one time.&amp;nbsp; so when you check one of these, it'll post back and update the data set.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;When the "is default" check box is checked and it posts back, it does NOT trigger an update row as if editing a text box for example.  In my custom grid, I had to override&lt;span style="font-size: 10pt"&gt; OnBubbleEvent so I can set the Cells value and call OnUpdateRow.&amp;nbsp; Is this correct?&amp;nbsp; Shouldn't the grid be doing this?&amp;nbsp; Also, note that the cell's Value object is null and DataChanged is false at this point.&amp;nbsp; Setting them does not seem to persist since they're "reset" again when you get to the code at the page level (see the update row in the page's code behind).&amp;nbsp; Am I doing this correctly in my approach?&amp;nbsp; How would you do it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>WebGrid Embedded Template Controls Not Processed On Fly Postbacks</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Embedded-Template-Controls-Not-Processed-On-Fly-Postbacks/</link><pubDate>Wed, 13 Oct 2010 05:15:57 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Thank you for the sample. I have successfully replicate the issue on my environment. Currently I am still discussing this issue with our developer. I will update this thread when I have more information about this issue.   &lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid Embedded Template Controls Not Processed On Fly Postbacks</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Embedded-Template-Controls-Not-Processed-On-Fly-Postbacks/</link><pubDate>Tue, 12 Oct 2010 16:03:31 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;I've attached the sample.  After extracting it, you'll need to load the solution from the DynamicControlsNotRecognized folder.  It should already be set up to load DynamicControlsNotRecognized.aspx as the start up page, so you should be able to debug right away.&lt;/p&gt;
&lt;p&gt;Note that I've tried to replicate what we do in it's most simplified version here, so the page uses custom controls like we do, i.e.,&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Grid is a custom MyCustomGrid control and uses a template custom check box using the MccTemplate&lt;/li&gt;&lt;li&gt;Check box is a custom composite control via MyCustomCheckBox&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Steps to see the problem:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;On the editable grid, add 3 or 4 lines of data.&lt;/li&gt;&lt;li&gt;Now select&amp;nbsp;a row or two&amp;nbsp;via the check box&lt;/li&gt;&lt;li&gt;Now click the WebMenuBar object's &lt;strong&gt;List Selected Items&lt;/strong&gt;.&amp;nbsp; You'll note that the checked items do not show after the fly post back and the label is not updated with any selected items.&lt;/li&gt;&lt;li&gt;Now check a couple of the already added rows and click &lt;strong&gt;List Selected Items&lt;/strong&gt; again.&amp;nbsp; You should now see that the items are recognized and processed correctly and listed in the label.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;If you put a break point in the check box control's LoadPostData, you'll note that it never gets hit on the initial fly post back that loads the initial row.  That never happens for any row that's initially added.&lt;/p&gt;
&lt;p&gt;Let me know if you have any questions on the code.  Thanks.&lt;/p&gt;
&lt;p&gt;[EDIT] Reattached file without ISNet assemblies as it was too large to attach initially.  You have these so you shouldn't have any issues.&lt;/p&gt;</description></item><item><title>WebGrid Embedded Template Controls Not Processed On Fly Postbacks</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Embedded-Template-Controls-Not-Processed-On-Fly-Postbacks/</link><pubDate>Tue, 12 Oct 2010 11:02:18 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;I'm working on a sample for you.  Will post when ready.&lt;/p&gt;</description></item><item><title>WebGrid Embedded Template Controls Not Processed On Fly Postbacks</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Embedded-Template-Controls-Not-Processed-On-Fly-Postbacks/</link><pubDate>Mon, 11 Oct 2010 23:38:25 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Do you mind providing a runnable project that would demonstrate the issue? The project would also enable us to understand the issue you are facing with WebGrid quicker and more easily. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid Embedded Template Controls Not Processed On Fly Postbacks</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Embedded-Template-Controls-Not-Processed-On-Fly-Postbacks/</link><pubDate>Mon, 11 Oct 2010 09:35:00 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;We have an editable grid that adds rows with two columns containing our custom check box.  These rows are created successfully with the check boxes.  However, we run into several issues:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;When the control is created dynamically, the client-side javascript init code is not executed even though it's rendered successfully.&amp;nbsp; Verified with IE's F12 to show the code.&lt;/li&gt;&lt;li&gt;After the controls are created and the page is posted back, the controls are not recognized as part of the page, e.g., the control's LoadPostData is never hit and the control never gets processed and therefore any checked box is not recognized.&amp;nbsp; Once the normal page or partial-page (but not fly post) occurs, then the control is recognized&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Can you please address this and help us with a workaround please?&lt;/p&gt;</description></item></channel></rss>