﻿<?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 - edit</title><link>http://www.intersoftsolutions.com/Community/Tags/edit/</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>Example for editable simple grid wanted</title><link>http://www.intersoftsolutions.com/Community/Tags/edit/</link><pubDate>Tue, 20 Sep 2011 06:17:40 GMT</pubDate><dc:creator>Eric</dc:creator><category>WebGrid</category><category>edit</category><category>caching</category><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;We have a simple WebGrid (currently using version 6) that displays some rows from the database (unbound) where the user can edit one column and add/remove additional rows with a button. The changed data does not go into the database until the user confirms he wants to save everything together or maybe cancels out.&lt;/p&gt;
&lt;p&gt;The WebGrid is defined with AllowAutoDataCaching="false", because caching does not work with our web farm setup.&lt;/p&gt;
&lt;p&gt;The WebGrid has a DataKeyField defined and some columns, all read-only, except one for the Weight with AggregateFunction="Sum", DataFormatString="#0.00", DataType="System.Double", EditType="TextBox".&lt;/p&gt;
&lt;p&gt;The grid_InitializeDataSource function dynamically creates the rows based on a class variable and assigns the created DataTable to e.DataSource. The content of the class variable is filled in Page_Load.&lt;/p&gt;
&lt;p&gt;Because WebGrid fails to update the Sum on hitting Enter, we have a ClientSideEvent OnExitEditMode defined. There we calculate the current total and update it with grid.RootTable.GetElement(WG40.COLFOOTER,WG40.HTMLTABLE).rows[1].cells[...].innerText=...&lt;/p&gt;
&lt;p&gt;(Adding/Deleting rows works by the user clicking a button and in the event adding a row to grid.DataSource and calling grid.RebindDataSource. Not relevant to the problem.)&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Now the problem is that after every value edit and selection change afterwards, the InitializeDataSource event gets called again, overwriting the edited user values and the total calculation also gets wrong (the screen still shows the user values though). I think this happened after our move to the web farm and disabling the caching mentioned earlier.&lt;/p&gt;
&lt;p&gt;What is the proposed way to do this without caching data within the grid?&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;</description></item><item><title>wgGetNextEditableCell() issue </title><link>http://www.intersoftsolutions.com/Community/Tags/edit/</link><pubDate>Mon, 11 Oct 2010 23:20:03 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>edit</category><category>cell</category><description>&lt;p&gt;&lt;strong&gt;I want to&amp;nbsp;get next cell from one&amp;nbsp;edit cell&lt;/strong&gt; by the way "wgGetNextEditableCell() ",but it does not work!&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;var grid = ISGetObject("WebGrid1");&lt;br /&gt;var curCell = grid.GetActiveEditCell().cellIndex;&lt;br /&gt;var Tcell = grid.GetSelectedObject().ToRowObject().GetCell(curCell - 1).GetElement(WG40.BODY, WG40.HTMLCELL);
 var NextcellElement = wgGetNextEditableCell(Tcell);
 var cellObj = wgGetCellByElement(NextcellElement);
alert(NextcellElement)&lt;br /&gt;alert(Tcell.innerText)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &lt;/pre&gt;
&lt;p&gt;&lt;span style="background-color: #fffce1; font-family: courier new"&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>unbound Webgrid problem </title><link>http://www.intersoftsolutions.com/Community/Tags/edit/</link><pubDate>Thu, 20 May 2010 03:44:10 GMT</pubDate><dc:creator>20100520</dc:creator><category>WebGrid</category><category>Unbound</category><category>edit</category><description>&lt;p&gt;hello,&lt;/p&gt;
&lt;p&gt;         I use webgrid in usercontrol. I set a datatable as webgrid's datasource.&lt;/p&gt;
&lt;p&gt; then load it in a page dynamicly. This page contains a WebPaneManager.Then I run it.  when I sort a column,it occur a error.some times  it doesn't occur,but it will refresh page twice.&lt;/p&gt;
&lt;p&gt;        I really need your help.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>