﻿<?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 To Add A Template Control To Add New Row Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-To-Add-A-Template-Control-To-Add-New-Row-Cell/</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 To Add A Template Control To Add New Row Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-To-Add-A-Template-Control-To-Add-New-Row-Cell/</link><pubDate>Fri, 03 Jun 2011 06:45:33 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Yousif,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Deeply apologized. This feature has not been enhanced yet. I will ask our developer if it is possible to implemented in our SP1 or not.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>How To Add A Template Control To Add New Row Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-To-Add-A-Template-Control-To-Add-New-Row-Cell/</link><pubDate>Thu, 02 Jun 2011 09:14:37 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Hello Handy,&lt;/p&gt;
&lt;p&gt;Has this been added to 2011 R1?&lt;/p&gt;</description></item><item><title>How To Add A Template Control To Add New Row Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-To-Add-A-Template-Control-To-Add-New-Row-Cell/</link><pubDate>Tue, 05 Oct 2010 08:30:37 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Thanks very much Handy.  I hope it can be added soon.&lt;/p&gt;</description></item><item><title>How To Add A Template Control To Add New Row Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-To-Add-A-Template-Control-To-Add-New-Row-Cell/</link><pubDate>Tue, 05 Oct 2010 05:39:16 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Yousif,&lt;/p&gt;&lt;p&gt;I am sorry for the inconvinience and the trouble regarding your scenario. I already made a simple scenario regarding your request. After discussed with our developer, the scenario still could not be done for template. In this way, I already created a feature request to our developer teams. They would see the possibilities to implement this feature.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>How To Add A Template Control To Add New Row Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-To-Add-A-Template-Control-To-Add-New-Row-Cell/</link><pubDate>Mon, 04 Oct 2010 08:38:43 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;I can't provide you with a sample as I can't provide our custom check box control.  You should be able to duplicate it by using a third-party check box control in a template column and then enable the AddNewRow feature.  That should be simple enough to duplicate.&lt;/p&gt;
&lt;p&gt;We can't do this via client-side javascript so we need the new row input to be available to the developer the same way the normal grid data rows are so we can modify them to match the data rows.  Please add this as a feature.  We really need this soon so whatever you can do to escalate this would be very much appreciated.&lt;/p&gt;
&lt;p&gt;And yes, I already know where the row/cell gets initialized.  You keep answering my question as if I'm asking about the normal data row which I'm not.  The context of this entire thread is regarding the input row at the top that seems inaccessible according to what you've said.  So bottom line, we need this feature please.  Thanks Handy.&lt;/p&gt;</description></item><item><title>How To Add A Template Control To Add New Row Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-To-Add-A-Template-Control-To-Add-New-Row-Cell/</link><pubDate>Fri, 01 Oct 2010 17:16:59 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Yousif,&lt;/p&gt;&lt;p&gt;It's weird. The properties should work as explained. We have a custom editor sample. &lt;br /&gt;In New row, If NewRowEditType is same as EditType, it would automatically use the same edit type.&lt;br /&gt;&lt;br /&gt;So, would you mind to provide a simple sample that replicates this issue?&lt;br /&gt;&lt;br /&gt;Also, I already aswered your question. Row/Cell would be initialized at event IntializeRow/Cell.&lt;br /&gt;But it seems that changing the control in new row, could not be done in server side.&lt;br /&gt;It only can be done in javascript.&lt;br /&gt;At first, I assumed you were using custom checkbox as your custom editor.&lt;br /&gt;With javascript/clientside, I think It is still possible to change it via element.&lt;br /&gt;But since you were using template control, I am afraid this could not be done.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>How To Add A Template Control To Add New Row Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-To-Add-A-Template-Control-To-Add-New-Row-Cell/</link><pubDate>Fri, 01 Oct 2010 08:34:12 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;You still haven't answer my questions:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;1) how do I replace the "add new row" row's check box cell with a custom template?&lt;/li&gt;&lt;li&gt;2) Where does the input row and/or cell&amp;nbsp;get initialized?&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;How does NewRowEditType help me modify the check box column in the "Add new row" row's check box cell?  We already set it up as this:&lt;/p&gt;&lt;pre&gt;this.RootTable.Columns[iColIdx].NewRowEditType = NewRowEditType.SameAsEditType;&lt;/pre&gt;
&lt;p&gt;Client side doesn't help as we need to modify the cell template like we do for the data row.  Similar to what we do now for the normal data row, i.e.,&lt;/p&gt;&lt;pre&gt;this.RootTable.Columns[iColIdx].ColumnType = ISNet.WebUI.WebGrid.ColumnType.Template;&lt;br /&gt;BooleanTemplate bt = new BooleanTemplate();&lt;br /&gt;bt.ColumnName = ColumnName;&lt;br /&gt;this.RootTable.Columns[iColIdx].CellTemplate = bt;&lt;/pre&gt;
&lt;p&gt;If this is not doable because you guys don't provide a way to modify the "add new row" cells then we need this added to the WebGrid.  This is very important to us so please send it to development as a high priority item.  We can't have our UI looking like this with elements that do not blend in with the rest of our controls because we can't change it.&lt;/p&gt;
&lt;p&gt;I would suggest two features of this really:&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;If a cell template already exists, then use it for the "add new row" based on the ColumnType property setting by default&lt;/li&gt;&lt;li&gt;Allow the "add new row" to be retrieved and modified separately from the normal data rows configuration&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>How To Add A Template Control To Add New Row Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-To-Add-A-Template-Control-To-Add-New-Row-Cell/</link><pubDate>Thu, 30 Sep 2010 18:30:10 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Yousif,&lt;/p&gt;&lt;p&gt;If your Row already has edit type Custom Checkbox, the new row would be the same as default. You can see that in each &lt;b&gt;&lt;i&gt;WebGridColumn&lt;/i&gt;&lt;/b&gt;, we have &lt;b&gt;&lt;i&gt;NewRowEditType&lt;/i&gt;&lt;/b&gt;.&lt;br /&gt;However, the code I suggested was for clientside (javascript). It seems not possible to do it via server side.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>How To Add A Template Control To Add New Row Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-To-Add-A-Template-Control-To-Add-New-Row-Cell/</link><pubDate>Thu, 30 Sep 2010 10:04:12 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;When you allow add new row in WebGrid, it will show a new row at the top that says "click here to add a new row".&lt;br /&gt;As I can see in your images, there is a checkbox. So you would like to remove that checkbox and add your own custom checkbox?&lt;br /&gt;&lt;br /&gt;If yes, as I suggest before, you would need to get the new row object. &lt;br /&gt;Once you obtained the cell element of checkbox, you can hide or remove the checkbox itself. Then add your own custom checkbox.&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The answer to your first question is yes.  We want the top input row's check box to match our embedded check box that's shown in the actual data rows.  So this GetNewRow() will give me the "Add new row" row then.  I'll give it a try.&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;However, I don't understand why do you need this way. If you already embedded your custom checkbox into WebGrid, when you allow add a new row, the checkbox also automatically inserted in your new row.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I don't understand what you're saying here.  Are you saying the WebGrid should automatically be using our custom check box?  That would be nice, but as you can see it's not.  So we'd like to replace that default one with ours to match our UI elements for consistency.&lt;/p&gt;
&lt;p&gt;[EDIT] I tried to use this method you mention but it doesn't even exist under the RootTable object, i.e., I get the following standard error&lt;/p&gt;&lt;pre&gt;'ISNet.WebUI.WebGrid.WebGridTable' does not contain a definition for 'GetNewRow' and no extension method 'GetNewRow' accepting a first argument of type 'ISNet.WebUI.WebGrid.WebGridTable' could be found (are you missing a using directive or an assembly reference?)&lt;/pre&gt;
&lt;p&gt;Where does the input row get initialized?  I put a breakpoint at OnInitializeRow but it never hit.  This event is for content rows only it seems.  I also tried OnInitializeCell but also does not break there.&lt;/p&gt;</description></item><item><title>How To Add A Template Control To Add New Row Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-To-Add-A-Template-Control-To-Add-New-Row-Cell/</link><pubDate>Thu, 30 Sep 2010 09:34:57 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;When you allow add new row in WebGrid, it will show a new row at the top that says "click here to add a new row".&lt;br /&gt;As I can see in your images, there is a checkbox. So you would like to remove that checkbox and add your own custom checkbox?&lt;br /&gt;&lt;br /&gt;If yes, as I suggest before, you would need to get the new row object. &lt;br /&gt;Once you obtained the cell element of checkbox, you can hide or remove the checkbox itself. Then add your own custom checkbox.&lt;br /&gt;However, I don't understand why do you need this way. If you already embedded your custom checkbox into WebGrid, when you allow add a new row, the checkbox also automatically inserted in your new row.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>How To Add A Template Control To Add New Row Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-To-Add-A-Template-Control-To-Add-New-Row-Cell/</link><pubDate>Thu, 23 Sep 2010 12:36:06 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;We're now using editable grids in a few places.  We have a check box column that's part of the data we add, however, the default check box does not blend well with our custom check box in the actual data rows.&lt;/p&gt;
&lt;p&gt;We need to replace the default check box in the "Add New Row" row's cell but I can't find how to get that row and set its cell type to a template type and then put in our check box like I do now with our standard data rows.&lt;/p&gt;
&lt;p&gt;I've attached a snapshot of what it looks like now.&lt;/p&gt;</description></item></channel></rss>