[CLOSED] ItemDblClick and ItemClick, both at the same grid

  1. #1

    [CLOSED] ItemDblClick and ItemClick, both at the same grid

    Hello,

    When I use ItemDblClick and ItemClick, both at the same grid, both have mask, there is a problem when I double-clicks, it calls both events simultaneuosly. So it first calls the single-click handler and then it calls the double-click handler, also their masks are overlapping, which cause a 'request time out' exception. But there isn't actually any error. Please advice on how to separate the double click and single click, is it maybe possible to lengthen the click interval?

    Thanks.

    <DirectEvents>
                         <ItemClick OnEvent="CellClickHandler" >
                            <ExtraParams>
                                <ext:Parameter Name="filename" value="record.data.FileName" Mode="Raw" />
                                <ext:Parameter Name="revidx" value="record.data.RevIdx" Mode="Raw" />
                            </ExtraParams>
                         </ItemClick>
                         <ItemDblClick OnEvent="CellDblClickHandler" >
                            <EventMask ShowMask="true" Msg="Please wait..." MinDelay="50"/>
                            <ExtraParams>
                                <ext:Parameter Name="filename" value="record.data.FileName" Mode="Raw" />
                                <ext:Parameter Name="revidx" value="record.data.RevIdx" Mode="Raw" />
                            </ExtraParams>
                         </ItemDblClick>
                    </DirectEvents>
    Last edited by Daniil; Jun 13, 2014 at 10:08 AM. Reason: [CLOSED]
  2. #2
    Hi @redi,

    Here is a related with a possible solution suggested.
    http://www.sencha.com/forum/showthread.php?250809

Similar Threads

  1. Refresh TreePanel on ItemClick
    By R4auka in forum 2.x Help
    Replies: 1
    Last Post: Dec 05, 2013, 10:01 PM
  2. Replies: 2
    Last Post: Aug 01, 2013, 2:06 AM
  3. [CLOSED] MVC How to handle GridPanel ItemDblClick DirectEvent
    By ViDom in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: May 23, 2013, 5:29 PM
  4. Replies: 2
    Last Post: Nov 26, 2012, 7:14 AM
  5. [CLOSED] TreePanel itemClick DirectEvent
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 26, 2012, 4:53 AM

Tags for this Thread

Posting Permissions