﻿<?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 can I add many  rows at one time?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/how-can-I-add-many-rows-one-time/</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 can I add many  rows at one time?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/how-can-I-add-many-rows-one-time/</link><pubDate>Mon, 21 Jun 2010 22:31:37 GMT</pubDate><dc:creator>gao3251999@sina.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ok,thank you !&lt;/p&gt;</description></item><item><title>how can I add many  rows at one time?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/how-can-I-add-many-rows-one-time/</link><pubDate>Sun, 20 Jun 2010 23:24:04 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Heny,&lt;/p&gt;&lt;p&gt;I am sorry, but I also could not figure out what is the correct validation for this scenario. As I said before, even though we succeed but the efforts are too big because at default this scenario is not supported right now.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>how can I add many  rows at one time?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/how-can-I-add-many-rows-one-time/</link><pubDate>Sun, 20 Jun 2010 12:35:56 GMT</pubDate><dc:creator>gao3251999@sina.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you for repling,can you give me sample code?&lt;/p&gt;</description></item><item><title>how can I add many  rows at one time?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/how-can-I-add-many-rows-one-time/</link><pubDate>Thu, 17 Jun 2010 10:03:33 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Unfortunately, this scenario could not be done. &lt;br /&gt;Even if It can, the efforts are too big. &lt;br /&gt;If you ask for my opinion, maybe you can try to check in OnAfterReponse clientside event. &lt;br /&gt;You can get if the status is 'add', try to call back your add function again. &lt;br /&gt;However, you will need to find the correct validation. Otherwise, it will always recursive. Maybe you can add some flags or something.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>how can I add many  rows at one time?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/how-can-I-add-many-rows-one-time/</link><pubDate>Thu, 17 Jun 2010 04:40:11 GMT</pubDate><dc:creator>gao3251999@sina.com</dc:creator><description>&lt;p&gt;Hi,Handy&lt;/p&gt;
&lt;p&gt;Thank you for replying,I want to add next new row when  &lt;span class="trans"&gt;previous new row is complete add in a grid,how can i do ? This question is very important,thank you again!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>how can I add many  rows at one time?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/how-can-I-add-many-rows-one-time/</link><pubDate>Fri, 11 Jun 2010 11:23:38 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Yixin,&lt;/p&gt;&lt;p&gt;I am sorry. Based on your code, the timeout also is not working well. The reccurence of "i", got faster than newRow.Update. So, I would like to correct what I said before. You will still need to use TimeOut to delay for each process. But you must not to use recurrence when add "ID". Because, the time is not correct.&lt;br /&gt;&lt;br /&gt;E.g&lt;br /&gt;ID=AAAAA1,AAAAA2,AAAAA3. which (1,2,3) used "i" as repetition.&lt;br /&gt;It is very hard to get the correct time out and mostly goes wrong. &lt;br /&gt;&lt;br /&gt;Therefore, when add multiple rows, you must not to use that repetition.&lt;br /&gt;You will need to assign manually via button click.&lt;br /&gt;e.g&lt;br /&gt;ID=aaaaaa,bbbbbb,cccccc&lt;/p&gt;
&lt;p&gt;However, adding multiple row at a once is not suggested because to get the exact delay time is very hard.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>how can I add many  rows at one time?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/how-can-I-add-many-rows-one-time/</link><pubDate>Thu, 10 Jun 2010 21:31:34 GMT</pubDate><dc:creator>gao3251999@sina.com</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;thank you for repling,but you methord is not  right,the message is also display!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;yixin&lt;/p&gt;</description></item><item><title>how can I add many  rows at one time?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/how-can-I-add-many-rows-one-time/</link><pubDate>Wed, 09 Jun 2010 10:33:56 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Yixin,&lt;/p&gt;&lt;p&gt;E.g in your added row method, you need to specify setTimeOut() with specific time.&lt;/p&gt;
&lt;p&gt;setTimeout(function(){AddSomeRows()},600);&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>how can I add many  rows at one time?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/how-can-I-add-many-rows-one-time/</link><pubDate>Wed, 09 Jun 2010 10:06:24 GMT</pubDate><dc:creator>gao3251999@sina.com</dc:creator><description>&lt;p&gt;Hi handy,&lt;/p&gt;
&lt;p&gt;can you help me to finish code? thank you ! because I used setTimeOut() methord,but also happen this exception!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Yixin&lt;/p&gt;</description></item><item><title>how can I add many  rows at one time?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/how-can-I-add-many-rows-one-time/</link><pubDate>Wed, 09 Jun 2010 08:21:02 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Gao Yixin,&lt;/p&gt;&lt;p&gt;Actually, We could not just add multiple rows in there. But based on your code, that is not exception error. That happens because when one row is added, the process has not finished yet. &lt;/p&gt;
&lt;p&gt;e.g if WebGrid is still doing one process and has not finished, try to call another FlyPostback request such as refresh, sorting or filtering. It will show that pop up message.&lt;/p&gt;
&lt;p&gt;I suggest you to use setTimeOut() method in newRow.Update(). With delaying or specifying a specific time, you can use your code well.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>how can I add many  rows at one time?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/how-can-I-add-many-rows-one-time/</link><pubDate>Wed, 09 Jun 2010 02:04:22 GMT</pubDate><dc:creator>gao3251999@sina.com</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;I can add a new row in my grid,but I find an question like picture in attachment when I use cycle to add 5 Rows in grid!  &lt;/p&gt;
&lt;p&gt;my code:&lt;/p&gt;
&lt;p&gt;function WebButton1_Click() {&lt;/p&gt;
&lt;p&gt;    var grid = ISGetObject("WebGrid1");&lt;br /&gt;   for (var i=0;i&amp;lt;5;i&amp;#43;&amp;#43;)&lt;br /&gt;   {&lt;br /&gt;    var totalRows = grid.TotalRows;&lt;br /&gt;    var newRow = grid.RootTable.NewRow();&lt;br /&gt;    var newCells = newRow.GetCells();&lt;/p&gt;
&lt;p&gt;    newCells.GetNamedItem("vouid").SetText(totalRows &amp;#43; 1, true);&lt;br /&gt;    newCells.GetNamedItem("商品编号").SetText("", true);&lt;br /&gt;    newCells.GetNamedItem("商品名称").SetText("", true);&lt;br /&gt;    newCells.GetNamedItem("商品规格").SetText("", true);&lt;br /&gt;    newCells.GetNamedItem("包装单位").SetText("", true);&lt;br /&gt;    newCells.GetNamedItem("数量").SetText("", true);&lt;br /&gt;    newCells.GetNamedItem("价格范围").SetText("", true);&lt;br /&gt;    newCells.GetNamedItem("备注").SetText("", true);&lt;br /&gt;    newRow.Update();&lt;br /&gt;     }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;How can i solve it?&lt;/p&gt;</description></item></channel></rss>