﻿<?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 - Problems with WebGrid in another Containing Control like MS GridView</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problems-with-WebGrid-in-another-Containing-Control-like-MS-GridView/</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>Problems with WebGrid in another Containing Control like MS GridView</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problems-with-WebGrid-in-another-Containing-Control-like-MS-GridView/</link><pubDate>Thu, 04 Mar 2010 07:44:45 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The RebindDataSource() worked.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;</description></item><item><title>Problems with WebGrid in another Containing Control like MS GridView</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problems-with-WebGrid-in-another-Containing-Control-like-MS-GridView/</link><pubDate>Thu, 04 Mar 2010 01:27:40 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Doug,&lt;/p&gt;&lt;p&gt;Ok, thank you for guiding me. It seems our line number is a little different. &lt;/p&gt;
&lt;p&gt;Please let me re-ensure again about your scenario. You don't want to pass OrderID_TextBox  until RowDataBound event and even you used DataBind(), It also doesn't help, correct?. &lt;br /&gt;Please let me know if I was mistaken in understanding your requirement. &lt;/p&gt;
&lt;p&gt;If my assumption is correct, please replace it with RebindDataSource() method.&lt;br /&gt;e.g OrderDetails_WebGrid.RebindDataSource();&lt;/p&gt;
&lt;p&gt;This should work on your scenario.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Problems with WebGrid in another Containing Control like MS GridView</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problems-with-WebGrid-in-another-Containing-Control-like-MS-GridView/</link><pubDate>Wed, 03 Mar 2010 08:01:10 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you try running the sample after removing OrderID_TextBox attribute Text="10643"?&lt;/p&gt;
&lt;p&gt;The OrderID_TextBox attributes start on Line 79.  The actual attribute, Text="10643", is Line 82.&lt;/p&gt;
&lt;p&gt;Remove Line 82 and then run the sample and observe the following:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;The WebGrid is not loaded.&lt;br /&gt;&lt;br /&gt;It must be loaded manually by&amp;nbsp;clicking the WebGrid's "Refresh Grid Data",&amp;nbsp;2 Green Curved Arrows pointing in opposite directions Up and Down,&amp;nbsp;in the Lower Right Hand Corner of the WebGrid, to the Left of Blue Question Mark.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;When activating Edit Mode for the WebCombo, in other words clicking the Part Number Column Values,&amp;nbsp;the following Pop-Up occurs:&lt;br /&gt;&lt;br /&gt;Can't find WebCombo.NET instance with ID ''&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Maybe you don't realize it, everything is in the same file, Server-Side Code included.  The Sample is not using a Code Behind File.&lt;/p&gt;
&lt;p&gt;In the sample I provided, Lines 16 - 37 is Server Code.&lt;/p&gt;
&lt;p&gt;Line 30 is 'OrderID_TextBox.Text = "10643", inside the _GridView_RowDataBound Server Event, Lines 26 - 34.&lt;/p&gt;
&lt;p&gt;After removing Line 82, Line 30 will be too late in providing the Value for the WebGrid's SqlDataSouurce SelectParameter to be used in the Initial Page Load.  A Subsequent "Refresh Grid Data" now has the Value however there is a problem with the WebCombo.NET instance.  Hence, a Life Cycle issue, what comes first in what order.&lt;/p&gt;
&lt;p&gt;Since I am not going to know the OrderID value until the _GridView_RowDataBound Server Event, what must I do to have the WebGrid Load on the Initial Page Load and have a valid WebCombo.NET instance?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Problems with WebGrid in another Containing Control like MS GridView</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problems-with-WebGrid-in-another-Containing-Control-like-MS-GridView/</link><pubDate>Tue, 02 Mar 2010 23:11:25 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Doug,&lt;/p&gt;&lt;p&gt;Your sample runs fine in here. Also, I don't understand '&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 12px; color: rgb(63, 63, 63); line-height: 18px; "&gt;OrderID_TextBox.Text = "10643"&lt;span style="color: rgb(0, 0, 0); font-family: 'lucida sans unicode'; line-height: normal; font-size: 13px; "&gt;' part. I could not find something about this part. I think there is something missing in the sample you sent to me. Where is DataBound event in server side? There is nothing server code you sent.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 12px; color: rgb(63, 63, 63); line-height: 18px; "&gt;&lt;span style="color: rgb(0, 0, 0); font-family: 'lucida sans unicode'; line-height: normal; font-size: 13px; "&gt;Regards,&lt;br /&gt;Handy&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Problems with WebGrid in another Containing Control like MS GridView</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problems-with-WebGrid-in-another-Containing-Control-like-MS-GridView/</link><pubDate>Tue, 02 Mar 2010 18:38:08 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It appears to be a Life Cycle issue.&lt;/p&gt;
&lt;p&gt;WebGrid needs something before the _GridView_RowDataBound Server Event which sets OrderID_TextBox.Text = "10643"&lt;/p&gt;
&lt;p&gt;OrderID_TextBox is a SqlDataSource SelectParameter which is used by the WebGrid&lt;/p&gt;
&lt;p&gt;I have provided a simplified example.  You will need to change the ConnectionString.&lt;/p&gt;
&lt;p&gt;Everything works fine until the OrderID_TextBox attribute Text="10643", Line 79 is removed.&lt;/p&gt;
&lt;p&gt;-- The WebGrid must be loaded manually&lt;/p&gt;
&lt;p&gt;-- Activating the WebCombo produces "Can't find WebCombo.NET instance with ID ''&lt;/p&gt;
&lt;p&gt;I tried putting a OrderDetails_WebGrid.DataBind() in the _GridView_RowDataBound Server Event but that did not help.&lt;/p&gt;
&lt;p&gt;Since I am not going to know the OrderID value until _GridView_RowDataBound Server Event, what must I do to provide that value to the WebGrid?&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;</description></item><item><title>Problems with WebGrid in another Containing Control like MS GridView</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problems-with-WebGrid-in-another-Containing-Control-like-MS-GridView/</link><pubDate>Mon, 01 Mar 2010 04:02:38 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Douglas,&lt;/p&gt;&lt;p&gt;It could not find WeBCombo ID because it is inside Grid View template. You will need to use &lt;b&gt;&lt;i&gt;FindControl()&lt;/i&gt;&lt;/b&gt; to get an ID control inside GridView template. Btw, I also have PrepareDataBinding issue. I will submit this to our developer teams.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Problems with WebGrid in another Containing Control like MS GridView</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problems-with-WebGrid-in-another-Containing-Control-like-MS-GridView/</link><pubDate>Sun, 28 Feb 2010 19:14:50 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;I have have WebGrid in a MS Gridview Template.&lt;/p&gt;
&lt;p&gt;The InitializeLayout Event fires but other Events like PrepareDataBinding do not occur.  If I click on the Grid's "Refresh Grid Data" it loads.&lt;br /&gt;&lt;br /&gt;Are there any known issues?  &lt;/p&gt;
&lt;p&gt;I saw someone else asking about the GridView just being on the same page but they got no reply:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.intersoftpt.com/Community/WebGrid/webgrid-Context-menu-not-showing-up/"&gt;http://www.intersoftpt.com/Community/WebGrid/webgrid-Context-menu-not-showing-up/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What do I need to do to make it load automatically?&lt;/p&gt;
&lt;p&gt;I also notice that my WebGridColumn that is a WebCombo can not find the WebComboID.  It popups "Can't find WebCombo.NET instance with ID ''".  If I change the WebComboID to something I know does not exist it actually pops up with that ID and not an empty string ''.&lt;/p&gt;
&lt;p&gt;Can embedding actually be done?&lt;/p&gt;
&lt;p&gt;Would putting it in a User Control (.ascx) help?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;</description></item></channel></rss>