﻿<?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 - Add new record to GRID, can we customize it</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-new-record-to-GRID-can-we-customize-it/</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>Add new record to GRID, can we customize it</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-new-record-to-GRID-can-we-customize-it/</link><pubDate>Fri, 05 Mar 2010 12:42:05 GMT</pubDate><dc:creator>mmikaeel</dc:creator><category>WebGrid</category><category>insert new row</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;   Thanks for your help, I got it working fine now.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Maged&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Add new record to GRID, can we customize it</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-new-record-to-GRID-can-we-customize-it/</link><pubDate>Mon, 01 Mar 2010 03:25:24 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><category>insert new row</category><description>&lt;p&gt;Hi Maged,&lt;/p&gt;&lt;p&gt;As Herman said, we have a client side event called OnBeforeAdd. If you want to put some special data that needed to be passed before add  a new row, OnBeforeAdd should be able to this requirement.&lt;/p&gt;
&lt;p&gt;(Thank you Herman)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Add new record to GRID, can we customize it</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-new-record-to-GRID-can-we-customize-it/</link><pubDate>Fri, 26 Feb 2010 02:53:56 GMT</pubDate><dc:creator>hermancordes@gmail.com</dc:creator><category>WebGrid</category><category>insert new row</category><description>&lt;p&gt;Hi Maged,&lt;/p&gt;
&lt;p&gt;Maybe this is what you need: &lt;a href="http://support.intersoftpt.com/docs/webgrid/5.0.7200/isnet.webui.webgrid~isnet.webui.webgrid.clientevents~onbeforeadd.html"&gt;http://support.intersoftpt.com/docs/webgrid/5.0.7200/isnet.webui.webgrid~isnet.webui.webgrid.clientevents~onbeforeadd.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And the complete list of clientside events: &lt;a href="http://support.intersoftpt.com/docs/webgrid/6.0.7200/isnet.webui.webgrid~isnet.webui.webgrid.clientevents_properties.html"&gt;http://support.intersoftpt.com/docs/webgrid/6.0.7200/isnet.webui.webgrid~isnet.webui.webgrid.clientevents_properties.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Good luck.&lt;/p&gt;</description></item><item><title>Add new record to GRID, can we customize it</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-new-record-to-GRID-can-we-customize-it/</link><pubDate>Thu, 25 Feb 2010 13:11:31 GMT</pubDate><dc:creator>mmikaeel</dc:creator><category>WebGrid</category><category>insert new row</category><description>&lt;p&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type" /&gt;&lt;meta content="Word.Document" name="ProgId" /&gt;&lt;meta content="Microsoft Word 11" name="Originator" /&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CMaged%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List" /&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
 &lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt;
&amp;lt;!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
--&amp;gt;
&lt;/style&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type" /&gt;&lt;meta content="Word.Document" name="ProgId" /&gt;&lt;meta content="Microsoft Word 11" name="Originator" /&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CMaged%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List" /&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
 &lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt;
&amp;lt;!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
--&amp;gt;
&lt;/style&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Hi,&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;   &lt;/span&gt;I’m using webgrid in a large ASP.NET
project.&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;   &lt;/span&gt;I want to use the nice feature to insert a
new row using the “add new row bar” from the webgrid to save time developing a
form to do so, and users like that too.&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;   &lt;/span&gt;I’ve one big issue regarding the database.&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;   &lt;/span&gt;So it currently linked to a datasource. This
datasource has definition to the insert function that is pointing to a special
code that is written to handle the inset in the database functionality. This
insert function has a parameter for the object that handle the database insert
functionality.&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;   &lt;/span&gt;The issue is, I need to put some special
data in the insert object, like the user ID, current date and time….etc&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;   &lt;/span&gt;These special data can not be get from the
add “new row bar” items because they all read only data in the grid and that
can not be changed, and actually other items are not in the grid at all.&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;   &lt;/span&gt;How can ask the GRID to trigger an event before&lt;span style=""&gt;  &lt;/span&gt;it insert the new row passing the add new
record data object, so I can put these data programmatically before it call the
add new record API?&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;  &lt;/span&gt;This is quit complicated and can not be fixed
in any other way except WEBGRID to trigger event before adding the new record.&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Please
advise how to do so with sample code if this is applicable.&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;If not, can’t
you add such feature in the WEBGRID? And when can we have that?&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Thanks,&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Maged
Mikaeel&lt;/span&gt;&lt;/p&gt;

</description></item></channel></rss>