﻿<?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's NewRow not displaying CellTemplate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-NewRow-not-displaying-CellTemplate/</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's NewRow not displaying CellTemplate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-NewRow-not-displaying-CellTemplate/</link><pubDate>Wed, 22 Sep 2010 05:58:24 GMT</pubDate><dc:creator>niven</dc:creator><description>&lt;p&gt; Hi Shawn,&lt;/p&gt;
&lt;p&gt;I apologize for the video. I have re-upload the video and have tested it.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Edit:&lt;/p&gt;
&lt;p&gt;I have attach a workaround for your issue.&lt;/p&gt;
&lt;p&gt;I put my code inside the &lt;strong&gt;AddNewRow&lt;/strong&gt; function.&lt;/p&gt;&lt;pre&gt;//Images
var link = document.createElement('img');
link.setAttribute('src', 'images/1.gif');
newRow.GetElement().getElementsByTagName("TD")[2].appendChild(link); &lt;/pre&gt;
&lt;p&gt;You have to put the code after the &lt;strong&gt;newRow.AddPendingChanges()&lt;/strong&gt;. If you put the code before &lt;strong&gt;newRow.AddPendingChanges()&lt;/strong&gt;. The element of the cell is not created yet. This is why the image won't rendered before &lt;strong&gt;AcceptAllChanges&lt;/strong&gt;. Hopefully this workaround can be fit in on your scenario.&lt;/p&gt;
&lt;p&gt;Thank you and have a nice day.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Niven Prasetya&lt;/p&gt;</description></item><item><title>WebGrid's NewRow not displaying CellTemplate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-NewRow-not-displaying-CellTemplate/</link><pubDate>Tue, 21 Sep 2010 10:27:47 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;Hi Shawn,&lt;/p&gt;&lt;p&gt;I have attach a video and a sample of mine using a few method of your code.&lt;/p&gt;&lt;p&gt;As you see in the video, I have define a templated cell with an image inside. By the time I click on the Add new 10 rows button, the new rows will be automatically add without an image on templated cell yet. But the image on templated cell will be show by the time you accept all changes.&lt;/p&gt;&lt;p&gt;It is already templated cell behaviour that it will not show what inside the templated cell when the changes haven't apply yet.&lt;/p&gt;&lt;p&gt;Please kindly inform&amp;nbsp; me if this is the right scenario as you wanted? If not, please kindly change what inside my code since&amp;nbsp;we are&amp;nbsp;using a different database&amp;nbsp;when run it.&lt;/p&gt;&lt;p&gt;Hope this can solve your issue.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Best regards,&lt;/p&gt;&lt;p&gt;Niven Prasetya&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The AVI won't play for me. Is it corrupted? I tried various players.&lt;/p&gt;
&lt;p&gt;I don't see any changes in the code but it sounds like the template controls won't be available until the data is accepted.  This is a bug to me.  Other controls are rendered properly when a NewRow is created but not the CellTemplate? I don't understand why.&lt;/p&gt;</description></item><item><title>WebGrid's NewRow not displaying CellTemplate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-NewRow-not-displaying-CellTemplate/</link><pubDate>Tue, 21 Sep 2010 00:44:30 GMT</pubDate><dc:creator>niven</dc:creator><description>&lt;p&gt;Hi Shawn,&lt;/p&gt;
&lt;p&gt;I have attach a video and a sample of mine using a few method of your code.&lt;/p&gt;
&lt;p&gt;As you see in the video, I have define a templated cell with an image inside. By the time I click on the Add new 10 rows button, the new rows will be automatically add without an image on templated cell yet. But the image on templated cell will be show by the time you accept all changes.&lt;/p&gt;
&lt;p&gt;It is already templated cell behaviour that it will not show what inside the templated cell when the changes haven't apply yet.&lt;/p&gt;
&lt;p&gt;Please kindly inform  me if this is the right scenario as you wanted? If not, please kindly change what inside my code since we are using a different database when run it.&lt;/p&gt;
&lt;p&gt;Hope this can solve your issue.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Niven Prasetya&lt;/p&gt;</description></item><item><title>WebGrid's NewRow not displaying CellTemplate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-NewRow-not-displaying-CellTemplate/</link><pubDate>Mon, 20 Sep 2010 14:13:20 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;Hi Shawn,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I can't replicate your issue, My CellTemplate WebGrid can show an image just fine.&lt;/p&gt;&lt;p&gt;Would you mind to send me your sample and let me try yours on my side?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thank you.&lt;/p&gt;&lt;p&gt;Have a nice day.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Best regards,&lt;/p&gt;&lt;p&gt;Niven Prasetya&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br /&gt;Please click the "Add 10 new rows" and notice the button is not displayed for any of the 10 rows.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;pre&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="BatchUpdateDeleteRow.aspx.cs" Inherits="BatchUpdateDeleteRow" %&amp;gt;
&amp;lt;%@ Register TagPrefix="iswebgrid" Namespace="ISNet.WebUI.WebGrid" Assembly="ISNet.WebUI.WebGrid" %&amp;gt;

&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &amp;gt;
&amp;lt;HTML&amp;gt;
	&amp;lt;HEAD runat=server&amp;gt;
		&amp;lt;title&amp;gt;BatchUpdateDeleteRow&amp;lt;/title&amp;gt;
		&amp;lt;meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"&amp;gt;
		&amp;lt;meta name="CODE_LANGUAGE" Content="C#"&amp;gt;
		&amp;lt;meta name="vs_defaultClientScript" content="JavaScript"&amp;gt;
		&amp;lt;meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"&amp;gt;
		&amp;lt;script language="javascript"&amp;gt;
		    function WebGrid_SetFieldText(field, text, updateValueField) {
		        try {
		            // Set field's text
		            // NOTE: Default the value to the text if flag is not specified
		            if (field == null) { return; }
		            if (typeof (updateValueField) == "undefined") { updateValueField = true; }
		            field.SetText(text, updateValueField, true);
		        }
		        catch (ex) { ShowJSException(ex); }
		    }

		    function AddNewRowForceNewData() 
		    {
		        var grdInurings = ISGetObject("WebGrid1");
			
		        // Create new row
		        var newRow = grdInurings.RootTable.NewRow();
		        if (newRow == null) { return false; }

		        // Default new row's data
		        // NOTE: Scroll to row before new row to avoid lag from WebGrid loading more data (if exist)
		        grdInurings.ClearSelection();

		        // Address
		        var cells = newRow.GetCells();
		        var address = cells.GetNamedItem("Address");
		        if (address != null) { WebGrid_SetFieldText(address, ""); }

		        // Customer ID
		        var customerID = cells.GetNamedItem("CustomerID");
		        if (customerID != null) 
		        {
		            window.alert("Why does this field need to be set for a new row when the ID is not set until the data is committed?");
		            var now = new Date();
		            WebGrid_SetFieldText(customerID, String((now.getSeconds() &amp;#43; now.getMilliseconds())));
		        }
		        newRow.AddPendingChanges();

		        // Focus
		        newRow.Select();
		        
		        return true;
		    }

		    function AddNewRows(numOfNewRows, numOfDeleteRows) 
		    {
		        var grdInurings = ISGetObject("WebGrid1");
		        if (typeof (numOfDeleteRows) == "undefined") { numOfDeleteRows = 0; }		        
		        for (var index = 0; index &amp;lt; numOfNewRows; index&amp;#43;&amp;#43;)
		        {
		            var newRow = AddNewRow();
		            if (index &amp;lt; numOfDeleteRows) 
		            {
		                WebGrid_DeleteRow(newRow);
		            }
		        }
		        
		        return true;
		    }

		    function AddNewRow() 
		    {
		        // Create new row
		        var grdInurings = ISGetObject("WebGrid1");
		        var newRow = grdInurings.RootTable.NewRow();
		        if (newRow == null) { return false; }

		        // Default new row's data
		        // NOTE: Scroll to row before new row to avoid lag from WebGrid loading more data (if exist)
		        grdInurings.ClearSelection();

		        // Address
		        var cells = newRow.GetCells();
		        var address = cells.GetNamedItem("Address");
		        if (address != null) { WebGrid_SetFieldText(address, ""); }

		        // Customer ID
		        var customerID = cells.GetNamedItem("CustomerID");
		        if (customerID != null) 
		        {
		            var now = new Date();
		            WebGrid_SetFieldText(customerID, String((now.getSeconds() &amp;#43; now.getMilliseconds())));
		        }
		        newRow.AddPendingChanges();
		        return newRow;
		    }

		    function WebGrid_GetSelectedRow() 
		    {
		        try {
		            // Get selected row
		            var grid = ISGetObject("WebGrid1");
		            if (grid == null) { return; }
		            var selObj = grid.GetSelectedObject();
		            if (selObj == null) { return; }
		            return selObj.ToRowObject();
		        }
		        catch (ex) { ShowJSException(ex); }
		    }

		    function WebGrid_DeleteSelectedRow() 
		    {
		        try {
		            WebGrid_DeleteRow(WebGrid_GetSelectedRow());
		            
		        }
		        catch (ex) { ShowJSException(ex); }
		    }
		    
		    function WebGrid_DeleteRow(row)	
		    {
		        try 
		        {

		            if (row == null) { return; }
		            row.Delete();
		            row.AddPendingChanges();

		            var rowElement = row.GetElement();
		            //if (rowElement != null) { rowElement.style.display = "none"; }
		        }
		        catch (ex) { ShowJSException(ex); }
		    }

		    function WebGrid_UpdateSelectedRow()
		    {
		        try 
		        {
		            var grdInurings = ISGetObject("WebGrid1");
		             var updateRow = WebGrid_GetSelectedRow();
		            var cells = updateRow.GetCells();
		            var now = new Date()
		            // Get grid
		            

		            // Indicate edit is occurring
		            grdInurings.ClearSelection();
		            updateRow.Select();
		            updateRow.BeginEdit();
		            
		            WebGrid_SetFieldText(cells.GetNamedItem("PortfolioNameList"), String("Hello World" &amp;#43; (now.getSeconds() &amp;#43; now.getMilliseconds())));

		            // Indicate row's data has been changed and set row stats to edit
		            updateRow.Update();
		            updateRow.SetDataChanged();
		            updateRow.AddPendingChanges();
		            grdInurings.MarkEdit();
		 
            
		        }
		        catch (ex) { ShowJSException(ex); }
		    }

		    //=================================================================
		    // Function     : grdInurings_OnRowContextMenu
		    // Description  : This method will create Context menu based on the
		    //              : row.
		    //=================================================================
		    function grdInurings_OnRowContextMenu(controlId, rowType, rowElement, menuObject) {
		        try {
		             
		            // Manage Portfolios
		            var managePortfolios = new WebMenuItem();
		              managePortfolios.Text = "Manage Portfolios";
		            managePortfolios.Name = "itmManagePortfolios";
		            managePortfolios.OnClick = "WebGrid_UpdateSelectedRow";
		            menuObject.Items.Add(managePortfolios);

		            
		        }
		        catch (ex) { ShowJSException(ex); }
		    }
		&amp;lt;/script&amp;gt;
	&amp;lt;/HEAD&amp;gt;
	&amp;lt;body MS_POSITIONING="GridLayout"&amp;gt;
		&amp;lt;form id="Form1" method="post" runat="server"&amp;gt;
		&amp;lt;input type="button" value="Update Selected Row" onclick="javascript:WebGrid_UpdateSelectedRow();" /&amp;gt;
		&amp;lt;input type="button" value="New Row Causing More Data To Load" onclick="javascript:AddNewRowForceNewData();" /&amp;gt;
		&amp;lt;input type="button" value="Add 5 new rows and delete 2" onclick="javascript:AddNewRows(5, 2);" /&amp;gt;
		&amp;lt;input type="button" value="Delete Selected Row" onclick="javascript:WebGrid_DeleteSelectedRow();" /&amp;gt;
		&amp;lt;input type="button" value="Add 10 new rows" onclick="javascript:AddNewRows(10);" /&amp;gt;
		&amp;lt;asp:button runat="server" Text="Check WebRowChanges" OnClick="PerformInuringsGridBatchUpdate" /&amp;gt;
			&amp;lt;iswebgrid:webgrid id=WebGrid1 runat="server" Height="279px" Width="896px" 
			DefaultStyleMode="Elegant"
                                    UseDefaultStyle="True"
			OnInitializeDataSource="WebGrid1_InitializeDataSource"&amp;gt;
                    &amp;lt;LayoutSettings AutoHeight="false" AutoWidth="false" AllowBatchUpdate="true" BatchUpdateSettings-PromptUnsavedChanges="false"
        BatchUpdateSettings-AutomaticObjectUpdate="false" AllowEdit="Yes" EditOnClick="True"
        AllowAddNew="Yes" AllowDelete="Yes" PromptBeforeDelete="true" NewRowLostFocusAction="AlwaysPrompt"
        ResetNewRowValuesOnError="True" RowHeightDefault="22px" AllowFilter="Yes" AllowSelectColumns="Yes"
        AllowSorting="Yes" HideColumnsWhenGrouped="Default" AllowExport="Yes" InProgressUIBehavior="ChangeCursorToHourGlass"
        ApplyFiltersKey="Enter" AllowColumnFreezing="Yes" ShowFilterStatus="True" PagingMode="VirtualLoad"
        VerboseEditingInformation="False" FilterBarVisible="True" PagingExportMode="ExportAllData"
        CellPaddingDefault="0" AlwaysShowHelpButton="False" VirtualPageSize="25"          
        &amp;gt;
        &amp;lt;ClientSideEvents OnRowContextMenu="grdInurings_OnRowContextMenu" /&amp;gt;
					&amp;lt;HeaderStyle BorderStyle="Solid" BorderWidth="1px" BackColor="#ECE9D8" ForeColor="Black" Height="20px"
						Font-Size="8pt" Font-Names="Verdana" BorderColor="#ACA899"&amp;gt;
						&amp;lt;BorderSettings&amp;gt;
							&amp;lt;Left Color="White"&amp;gt;&amp;lt;/Left&amp;gt;
							&amp;lt;Top Color="White"&amp;gt;&amp;lt;/Top&amp;gt;
						&amp;lt;/BorderSettings&amp;gt;
					&amp;lt;/HeaderStyle&amp;gt;
					&amp;lt;FrameStyle BackColor="#F1EFE2"&amp;gt;&amp;lt;/FrameStyle&amp;gt;
					&amp;lt;GroupByBox&amp;gt;
						&amp;lt;LabelStyle BorderStyle="Solid" BorderWidth="1px" BackColor="White" Font-Size="8pt" Font-Names="Verdana"
							BorderColor="Navy"&amp;gt;&amp;lt;/LabelStyle&amp;gt;
						&amp;lt;Style BackColor="Gray"&amp;gt;
						&amp;lt;/Style&amp;gt;
					&amp;lt;/GroupByBox&amp;gt;
					&amp;lt;EditTextboxStyle BorderStyle="None" BorderWidth="0px" Font-Size="8pt" Font-Names="Verdana"&amp;gt;&amp;lt;/EditTextboxStyle&amp;gt;
					&amp;lt;NewRowStyle BackColor="White" ForeColor="DarkGray" Font-Size="8pt" Font-Names="Verdana"&amp;gt;&amp;lt;/NewRowStyle&amp;gt;
					&amp;lt;FocusCellStyle BorderStyle="Solid" BorderWidth="1px" BorderColor="Navy"&amp;gt;&amp;lt;/FocusCellStyle&amp;gt;
					&amp;lt;RowStyle CustomRules="text-overflow: ellipsis; overflow-x: hidden" BackColor="White" Font-Size="8pt"
						Font-Names="Verdana"&amp;gt;&amp;lt;/RowStyle&amp;gt;
					&amp;lt;GroupRowInfoStyle BorderStyle="Solid" BorderWidth="1px" BackColor="#F1EFE2" Font-Size="8pt" Font-Names="Verdana"
						BorderColor="White"&amp;gt;
						&amp;lt;BorderSettings&amp;gt;
							&amp;lt;Bottom Color="Silver"&amp;gt;&amp;lt;/Bottom&amp;gt;
							&amp;lt;Right Color="Silver"&amp;gt;&amp;lt;/Right&amp;gt;
						&amp;lt;/BorderSettings&amp;gt;
					&amp;lt;/GroupRowInfoStyle&amp;gt;
					&amp;lt;SelectedRowStyle BackColor="LightSteelBlue"&amp;gt;&amp;lt;/SelectedRowStyle&amp;gt;
					&amp;lt;AlternatingRowStyle CustomRules="text-overflow: ellipsis; overflow-x: hidden" BackColor="AntiqueWhite"
						Font-Size="8pt" Font-Names="Verdana"&amp;gt;&amp;lt;/AlternatingRowStyle&amp;gt;
					&amp;lt;StatusBarStyle BorderStyle="Solid" BorderWidth="1px" BackColor="#ECE9D8" Font-Size="8pt" Font-Names="Verdana"
						BorderColor="#ACA899"&amp;gt;
						&amp;lt;Padding Bottom="2px" Left="2px" Top="2px" Right="2px"&amp;gt;&amp;lt;/Padding&amp;gt;
					&amp;lt;/StatusBarStyle&amp;gt;
					&amp;lt;StatusBarCommandStyle&amp;gt;
						&amp;lt;Over BorderWidth="1px" BorderColor="Navy" BorderStyle="Solid" BackColor="CornflowerBlue"&amp;gt;&amp;lt;/Over&amp;gt;
						&amp;lt;Normal&amp;gt;
							&amp;lt;Padding Bottom="1px" Left="1px" Top="1px" Right="1px"&amp;gt;&amp;lt;/Padding&amp;gt;
						&amp;lt;/Normal&amp;gt;
						&amp;lt;Active BackColor="RoyalBlue" BaseStyle="Over"&amp;gt;&amp;lt;/Active&amp;gt;
					&amp;lt;/StatusBarCommandStyle&amp;gt;
					&amp;lt;PreviewRowStyle ForeColor="#0000C0"&amp;gt;&amp;lt;/PreviewRowStyle&amp;gt;
				&amp;lt;/LayoutSettings&amp;gt;
				&amp;lt;RootTable DataKeyField="CustomerID" Caption="Customers" GridLineStyle="NotSet"&amp;gt;
					&amp;lt;Columns&amp;gt;
					        &amp;lt;ISWebGrid:WebGridColumn Caption="Portfolio Name" Name="PortfolioNameList"  
                                                DataType="System.String" ColumnType="Text" EditType="NoEdit" NewRowEditType="NoEdit"
                                                FilterEditType="TextBox" Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Address" DataMember="Address" Name="Address" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						 
					 &amp;lt;ISWebGrid:WebGridColumn Caption=" " Name="AddPortfolio" DataMember=""
                        ButtonText="Add Portfolio" DataType="System.String" ColumnType="Template" EditType="NoEdit"
                        NewRowEditType="SameAsEditType" FilterEditType="NoEdit" Width="65px"&amp;gt;
                        &amp;lt;ButtonStyle BackColor="AliceBlue"&amp;gt;
                            &amp;lt;Padding Top="2px" Left="1px" Right="1px" Bottom="1px" /&amp;gt;
                        &amp;lt;/ButtonStyle&amp;gt;
                        &amp;lt;CellTemplate&amp;gt;
                            &amp;lt;img runat="server" id="imgPortfolio"  alt="Manage this treaty's portfolios"
                                border="0" style="padding-top: 1px;"  
                             /&amp;gt;
                        &amp;lt;/CellTemplate&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    
                &amp;lt;iswebgrid:WebGridColumn Caption="City" DataMember="City" Name="City" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="CompanyName" DataMember="CompanyName" Name="CompanyName" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="ContactName" DataMember="ContactName" Name="ContactName" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="ContactTitle" DataMember="ContactTitle" Name="ContactTitle" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Country" DataMember="Country" Name="Country" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="CustomerID" DataMember="CustomerID" Name="CustomerID" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Fax" DataMember="Fax" Name="Fax" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Phone" DataMember="Phone" Name="Phone" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="PostalCode" DataMember="PostalCode" Name="PostalCode" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Region" DataMember="Region" Name="Region" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
					&amp;lt;/Columns&amp;gt;
				&amp;lt;/RootTable&amp;gt;
			&amp;lt;/iswebgrid:webgrid&amp;gt;
			 
		&amp;lt;/form&amp;gt;
	&amp;lt;/body&amp;gt;
&amp;lt;/HTML&amp;gt;
&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>WebGrid's NewRow not displaying CellTemplate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-NewRow-not-displaying-CellTemplate/</link><pubDate>Thu, 16 Sep 2010 22:45:04 GMT</pubDate><dc:creator>niven</dc:creator><description>&lt;p&gt;Hi Shawn,&lt;/p&gt;&lt;p&gt;I think there's a misscommunication between us.&lt;/p&gt;
&lt;p&gt;Could you please kindly send me a simple sample of your scenario to let me know what kind of issue occured?&lt;/p&gt;
&lt;p&gt;If not, please kindly change my given sample into the issue you have experienced.&lt;/p&gt;
&lt;p&gt;Thank you and have a nice day.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Niven Prasetya &lt;/p&gt;</description></item><item><title>WebGrid's NewRow not displaying CellTemplate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-NewRow-not-displaying-CellTemplate/</link><pubDate>Thu, 16 Sep 2010 09:14:07 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;Hi Shawn,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;As I mention in the previous post. If the image on TemplatedCell was already pre-defined by the time the Grid was made, it will automatically show the image when you creating rows on the client side.&lt;/p&gt;&lt;p&gt;But TemplatedCell can't handle a post-defined image (The Grid already made, then creating rows with inputing an image inside the TemplatedCell). The TemplatedCell ability is to add ASP.NET server controls to the WebGridCell using the new Template Column Type. When using the Template column Type, you can put any server side controls inside the CellTemplate property of the WebGridColumn.&lt;/p&gt;&lt;p&gt;If you really want this features. You can go to our TDN &lt;a href="http://dev2.intersoftpt.com/"&gt;http://dev2.intersoftpt.com/&lt;/a&gt;. Under Create New Item dockitems, choose Feature Request. You can input any features you need on the next development.&lt;/p&gt;&lt;p&gt;Thank you and have a nice day.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Best regards,&lt;/p&gt;&lt;p&gt;Niven Prasetya.&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The CellTemplate is defined within the markup and still does not show up. Was this fixed after WebGrid (7.0.7200.403)? Can you give me a very basic example that you verifies works for you and I will test locally?&lt;/p&gt;</description></item><item><title>WebGrid's NewRow not displaying CellTemplate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-NewRow-not-displaying-CellTemplate/</link><pubDate>Wed, 15 Sep 2010 21:34:30 GMT</pubDate><dc:creator>niven</dc:creator><description>&lt;p&gt;Hi Shawn,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;As I mention in the previous post. If the image on TemplatedCell was already pre-defined by the time the Grid was made, it will automatically show the image when you creating rows on the client side.&lt;/p&gt;
&lt;p&gt;But TemplatedCell can't handle a post-defined image (The Grid already made, then creating rows with inputing an image inside the TemplatedCell). The TemplatedCell ability is to add ASP.NET server controls to the WebGridCell using the new Template Column Type. When using the Template column Type, you can put any server side controls inside the CellTemplate property of the WebGridColumn.&lt;/p&gt;
&lt;p&gt;If you really want this features. You can go to our TDN &lt;a href="http://dev2.intersoftpt.com/"&gt;http://dev2.intersoftpt.com/&lt;/a&gt;. Under Create New Item dockitems, choose Feature Request. You can input any features you need on the next development.&lt;/p&gt;
&lt;p&gt;Thank you and have a nice day.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Niven Prasetya.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid's NewRow not displaying CellTemplate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-NewRow-not-displaying-CellTemplate/</link><pubDate>Tue, 14 Sep 2010 10:36:41 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;p&gt;Also, is there a timeline for this bug to be fixed? The CellTemplate elements should be displayed when creating rows on the client-side.&lt;/p&gt;</description></item><item><title>WebGrid's NewRow not displaying CellTemplate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-NewRow-not-displaying-CellTemplate/</link><pubDate>Tue, 14 Sep 2010 10:35:15 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;Hi Shawn,&lt;/p&gt;&lt;p&gt;Did you use BatchUpdate? As far as I know, AddPendingChanges is used for BatchUpdate scenario as a trigger when you done with any updates (Add, Update,Delete, etc).&lt;/p&gt;&lt;p&gt;If you want to add new row, you can use the code&amp;nbsp;I have given to you.&lt;/p&gt;&lt;p&gt;On my sample, I'm not using auto increment for PK. If you want to use an auto increment you can refer to our sample, &lt;strong&gt;BatchUpdate_Enterprise&lt;/strong&gt;. On&amp;nbsp;&lt;strong&gt;BatchUpdate_Enterprise&lt;/strong&gt; sample, there is a SelectIdentityQuery handler (&lt;strong&gt;App_Code/dsNorthwind_Extended.cs&lt;/strong&gt;) which will check what is the latest number and after will be automatically increment.&lt;/p&gt;&lt;p&gt;Have a nice day.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Best regards,&lt;/p&gt;&lt;p&gt;Niven Prasetya.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I need to call the row's AddPendingChanges() method to add/update rows using JavaScript in a WebGrid with BatchUpdate turned on. Oddly, I don't need to do call this method when deleting rows as it still ends up in the WebGridRowChanges collection? Also, in my other thread (&lt;a href="http://www.intersoftpt.com/Community/WebGrid/How-to-delete-rows-using-BatchUpdate-scenario/"&gt;http://www.intersoftpt.com/Community/WebGrid/How-to-delete-rows-using-BatchUpdate-scenario/&lt;/a&gt;), I don't get the new Delete icon after the row's Delete() method is called so I am not sure why the icon doesn't change and why I don't need to call the AddPendingChanges() like adding/updating rows.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;When creating a new row, is it necessary to call the row's Update() method after the field's are defaulted? I don't seem to need to do that for creating new rows but for updating rows. &lt;/p&gt;</description></item><item><title>WebGrid's NewRow not displaying CellTemplate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-NewRow-not-displaying-CellTemplate/</link><pubDate>Mon, 13 Sep 2010 22:53:54 GMT</pubDate><dc:creator>niven</dc:creator><description>&lt;p&gt;Hi Shawn,&lt;/p&gt;
&lt;p&gt;Did you use BatchUpdate? As far as I know, AddPendingChanges is used for BatchUpdate scenario as a trigger when you done with any updates (Add, Update,Delete, etc).&lt;/p&gt;
&lt;p&gt;If you want to add new row, you can use the code I have given to you.&lt;/p&gt;
&lt;p&gt;On my sample, I'm not using auto increment for PK. If you want to use an auto increment you can refer to our sample, &lt;strong&gt;BatchUpdate_Enterprise&lt;/strong&gt;. On &lt;strong&gt;BatchUpdate_Enterprise&lt;/strong&gt; sample, there is a SelectIdentityQuery handler (&lt;strong&gt;App_Code/dsNorthwind_Extended.cs&lt;/strong&gt;) which will check what is the latest number and after will be automatically increment.&lt;/p&gt;
&lt;p&gt;Have a nice day.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Niven Prasetya.&lt;/p&gt;</description></item><item><title>WebGrid's NewRow not displaying CellTemplate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-NewRow-not-displaying-CellTemplate/</link><pubDate>Wed, 18 Aug 2010 13:05:32 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;p&gt;I have a button that simply adds a new row to a WebGrid and defaults some data. However, I noticed that a CellTemplate column that has an Image isn't being displayed. This renders as expected for every row that is bound to the grid just not any new row added via Client Side.  I tried with a Button too and that also didn't render.&lt;/p&gt;
&lt;p&gt; I also tried using the Grid's InitializeLayout to set this column programatically using a custom class and the ITemplate interface (InstantiateIn method) but it had the same problem.&lt;/p&gt;&lt;pre&gt;        &amp;lt;ISWebGrid:WebGridColumn Caption=" "                        Name="AddPortfolio"         DataMember=""                                            HiddenDataMember="ScenarioPortfolioID" 
                                 DataType="System.String"           ColumnType="Template"       EditType="NoEdit"        NewRowEditType="SameAsEditType" FilterEditType="NoEdit"        Width="65px" 
                                 ButtonText="Add Portfolio"&amp;gt;
            &amp;lt;ButtonStyle BackColor="AliceBlue"&amp;gt;
                &amp;lt;Padding Top="2px" Left="1px" Right="1px" Bottom="1px" /&amp;gt;
            &amp;lt;/ButtonStyle&amp;gt;
            &amp;lt;CellTemplate&amp;gt;
                &amp;lt;img runat="server" id="imgPortfolio" src="~/Images/Buttons/process_off.gif" alt="Manage this treaty's portfolios"
                     border="0" style="padding-top: 1px;" 
                     onclick="javascript:UpdatePortfolioList();" onmouseout="javascript:MM_swapImgRestore()" onmouseover="javascript:MM_swapImage(this.id, '', '../Images/Buttons/process_on.gif',1)" /&amp;gt;
            &amp;lt;/CellTemplate&amp;gt;
        &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;</description></item></channel></rss>