﻿<?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 - Can you determine double click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Can-you-determine-double-click/</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>Can you determine double click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Can-you-determine-double-click/</link><pubDate>Tue, 05 Jun 2012 03:51:13 GMT</pubDate><dc:creator>Hans</dc:creator><description>
&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I’m sorry, but unfortunately I can’t find way to determine if this was a double or single click, in one event function.&lt;br /&gt;However, I have solution for your problem that maybe you could use.&lt;br /&gt;I made a sample project by using WebGrid (Nortwind.mdb database &amp; Shippers table).&lt;br /&gt;I use WebGrid’s OnCellClick and OnCellDblClick client side event.&lt;br /&gt;In OnCellClick event, I use setTimeout function to determine if this was a double or single click.&lt;br /&gt;Here’s the snippet code:&lt;/p&gt;&lt;pre&gt;&amp;lt;script language="javascript" type="text/javascript"&amp;gt;
    var double = false;

    function WebGrid1_OnCellClick(controlId, tblName, rowIndex, cellIndex, cellEl) {
        var WebGrid1 = ISGetObject(controlId);
        window.setTimeout(function () {
            if (double == false) {
                alert("Single Click");
            }
            else {
                double = false;
            }
        }, 500)
        return true;
    }

    function WebGrid1_OnCellDblClick(controlId, tblName, rowIndex, cellIndex, cellEl) {
        var WebGrid1 = ISGetObject(controlId);
        alert("Double Click");
        double = true;
        return true;
    }
&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;p&gt;I attached my sample project, in order to make you easily understand about my sample.&lt;/p&gt;
&lt;p&gt;And please let me know if this solution can resolve your problem or not. Perhaps, I can find another way to resolve your problem.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;/p&gt;</description></item><item><title>Can you determine double click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Can-you-determine-double-click/</link><pubDate>Mon, 04 Jun 2012 04:05:26 GMT</pubDate><dc:creator>ehanig@extendemail.com</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;All we want is this.  In the HandleRowSelect function, we want a call or way to determine if this was a double or single click.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;</description></item><item><title>Can you determine double click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Can-you-determine-double-click/</link><pubDate>Sun, 03 Jun 2012 23:08:07 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am sorry but I think our current client side event should be able to determine which is single or double click.&lt;br /&gt;Based on what I know, there might be some differences when loaded in browser, even for the normal single or double click handler.&lt;br /&gt;Therefore, would you mind to let me know your current scenario?&lt;br /&gt;Perhaps, we can figure out another way to implement your scenario.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;/p&gt;</description></item><item><title>Can you determine double click</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Can-you-determine-double-click/</link><pubDate>Sat, 02 Jun 2012 17:28:22 GMT</pubDate><dc:creator>ehanig@extendemail.com</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;is it possible duing the HandleRowSelect on the Grid, on client side to determine if this is a double click?  i know there is a function to for a double click, but i need to determine in that function if it happened.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;</description></item></channel></rss>