﻿<?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 Cancel dblClick  Cell into EditState?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/163com/</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 Cancel dblClick  Cell into EditState?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/163com/</link><pubDate>Thu, 09 Sep 2010 02:14:26 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>dblClick</category><description>&lt;p&gt;Although it is a littie stranger,it solve my problem!&lt;/p&gt;
&lt;p&gt;thank you &lt;span class="postusername"&gt;&lt;a class="contentlink" href="http://www.intersoftpt.com/Community/Users/handy@intersoftpt.com/"&gt;&lt;span style="color: #165fa7; font-size: 15px"&gt;Handy Surya&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to Cancel dblClick  Cell into EditState?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/163com/</link><pubDate>Tue, 07 Sep 2010 15:44:27 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><category>dblClick</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Please see the below code.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;function WebGrid2_OnCellDblClick(controlId, tblName, rowIndex, cellIndex, cellEl)
{
	var WebGrid2 = ISGetObject(controlId);
	var WebGrid1 = ISGetObject("WebGrid1");
	WebGrid1.SetFocus();
	window.setTimeout(function () { var row = WebGrid1.RootTable.GetRow(0); row.Select(); row.GetCells()[0].ActivateEdit(); }, 500);
	return true;
}&lt;/pre&gt;
&lt;p&gt;When double clicked a cell in WebGrid2, it will focus, select and activate edit a cell in WebGrid1. Is this what you are looking for?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>How to Cancel dblClick  Cell into EditState?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/163com/</link><pubDate>Tue, 07 Sep 2010 02:56:52 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>dblClick</category><description>&lt;p&gt;NO，DblClick one cell of WebGrid2 then  did not focus back into WebGrid1, focus into WebGrid2 again.&lt;/p&gt;
&lt;p&gt;(When I  DblClick one cell of WebGrid2 ,one cell of webgrid1 Get Focus  but at  once the cell of webgrid1 lost  Focus  and the cell of WebGrid2 Get Focus&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;again.&lt;strong&gt;I think&amp;nbsp;the reason is:DblClick&amp;nbsp; event&amp;nbsp;cause cell into EditState,can not lostfocus from EditState.what is your suggest??&lt;/strong&gt; )&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="color: #ff0000"&gt;But I want to DblClick one cell of WebGrid2,the cell lost Focus and  one of webgrid1 Get Focus !&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="color: #ff0000"&gt;Hope you can help me!thank you!&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>How to Cancel dblClick  Cell into EditState?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/163com/</link><pubDate>Mon, 06 Sep 2010 12:14:34 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><category>dblClick</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I am sorry but I don't quite understand about your scenario.&lt;br /&gt;Could you please explain more?&lt;/p&gt;
&lt;p&gt;As you said before, when you double click on a cell in WebGrid2, you will automatically focus in a cell of WebGrid1.&lt;br /&gt;I think it is possible. By using your code, select a cell object in WebGrid1 and any changes in WebGrid1.&lt;br /&gt;However, it seems you got an issue that you could not focus back or active edit mode in WebGrid2 cell.&lt;br /&gt;Please correct me if I am mistaken in understanding your scenario.&lt;br /&gt;&lt;br /&gt;But as far I checked your snippet codes, you did not focus back into WebGrid2, but you focus into WebGrid1 again.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>How to Cancel dblClick  Cell into EditState?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/163com/</link><pubDate>Fri, 03 Sep 2010 05:30:53 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>dblClick</category><description>&lt;p&gt;I have rewrite &lt;strong&gt;&lt;em&gt;OnCellDblClick!&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;WebGrid2:&amp;lt;ClientSideEvents OnCellDblClick="WebGrid2_Dbclick"  /&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I want to do:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;when i DblClick one cell of WebGrid2,the cell lost Focus and  one of webgrid1 Get Focus &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;BUT the problem is that&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;when i DblClick one cell of WebGrid2(&lt;strong&gt;How to Cancel dblClick&amp;nbsp; Cell into EditState,because I still want&amp;nbsp;to&amp;nbsp;Use Edit!!!!&lt;/strong&gt;),one cell of webgrid1 Get Focus  but at  once the cell of webgrid1&lt;/p&gt;
&lt;p&gt;lost  Focus  and &lt;strong&gt;the cell of WebGrid2 Get Focus&amp;nbsp; Again&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;WebGrid2_Dbclick &lt;strong&gt;Code:&lt;/strong&gt;&lt;/p&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;function WebGrid2_Dbclick() {
    var grid1 = ISGetObject("WebGrid1");
    var grid2 = ISGetObject("WebGrid2");
    var totalRowCount = grid1.TotalRows;      
    var paRow = grid2.GetSelectedObject().GetRowObject();
      var childRow = grid1.RootTable.NewRow();         
      var pacell = paRow.GetCells();
     var chilcell = childRow.GetCells();        
        var s1 = pacell.GetNamedItem("商品编号").Text;
        var s2 = pacell.GetNamedItem("商品名称").Text;
        var s3 = pacell.GetNamedItem("商品规格").Text;
        var s4 = pacell.GetNamedItem("包装单位").Text;
        var s5 = pacell.GetNamedItem("数量").Text;
        chilcell.GetNamedItem("vouid").SetText(totalRowCount &amp;#43; 1, true);
        chilcell.GetNamedItem("商品编号").SetText(s1, true);
        chilcell.GetNamedItem("商品名称").SetText(s2, true);
        chilcell.GetNamedItem("商品规格").SetText(s3, true);
        chilcell.GetNamedItem("包装单位").SetText(s4, true);
        chilcell.GetNamedItem("数量").SetText(s5, true);
        grid1.XmlHttp.Asynchronous = false;
        childRow.Update();
        grid1.SetFocus();
        grid1.RootTable.GetRow(totalRowCount).Select();
        grid1.RootTable.GetRow(totalRowCount).GetCells()[1].ActivateEdit();
} &lt;/pre&gt;
</description></item><item><title>How to Cancel dblClick  Cell into EditState?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/163com/</link><pubDate>Fri, 03 Sep 2010 05:09:25 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><category>dblClick</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;We have a clientside event, &lt;b&gt;&lt;i&gt;OnCellDblClick.&lt;/i&gt;&lt;span style="font-weight: normal; "&gt; You can set return false, to ignore it. &lt;br /&gt;May I know, why do you need this? If you don't want to edit the cell by double clicking it, you can set &lt;/span&gt;EditOnClick&lt;span style="font-weight: normal; "&gt; as &lt;/span&gt;&lt;i&gt;true&lt;/i&gt;&lt;span style="font-weight: normal; "&gt;.&lt;br /&gt;Hope this helps.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span style="font-weight: normal; "&gt;Regards,&lt;br /&gt;Handy&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;</description></item><item><title>How to Cancel dblClick  Cell into EditState?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/163com/</link><pubDate>Fri, 03 Sep 2010 04:41:31 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>dblClick</category><description>&lt;strong&gt;How to Cancel dblClick  Cell into EditState?&lt;br /&gt;&lt;/strong&gt;</description></item></channel></rss>