GridPanel Row double click event

  1. #1

    GridPanel Row double click event

    Hi,

    I am new to Ext.Net. I am using GridPanel, in which i want to show popup on double click of row in Gridpanel.
    I want a server side event to be fired on double click of row in gridpanel.
    I have downloaded the latest version of ext.net dll from the http://www.ext.net.com website.

    Thanks in advance
  2. #2
    Hi @rashidsiddique,

    Welcome to the Ext.NET forums!

    Please use a GridPanel's ItemDblClick DirectEvent.

    If you need an example of DirectEvent, please follow:
    http://examples2.ext.net/#/search/directevent
  3. #3
    Thanks Daniil for such a quick reply.
    I am getting the double click event.
    One more thing i want to ask is, i am passing parameters to the direct event like this
    <ItemDblClick OnEvent="GridPanel1_RowSelect">
                <ExtraParams>
                         <ext:Parameter Name="ContinentName" Value="record.data" Mode="Raw" Encode="true" />
                          <ext:Parameter Name="Description" Value="record.data" Mode="Raw" Encode="true" />
                  </ExtraParams>
    </ItemDblClick>
    but i am getting data like this
    {"ContinentName":"Asia","Description":"Asia"}
    Is there anyway to get individual data for continent name and description.
    I have written this line to fetch data
    string a = e.ExtraParams["Description"];
    Thanks in advance
    Last edited by Daniil; Jun 02, 2014 at 1:13 PM. Reason: Please use [CODE] tags
  4. #4
    Here you are:
    <ext:Parameter Name="ContinentName" Value="record.data.ModelFieldNameOfContinentName" Mode="Raw" />
  5. #5
    Hi Daniil,

    Thanks once again for the answer.
    One issue is there, at the server side level, my any code is not working.
    For e.g. [B]Response.Redirect("~/Default.aspx?Value=" + a);

    Even, when i tried to show a message box using this line of code
    X.Msg.Alert("message", b);, it is not working.

    Thanks in advance.
  6. #6
    You should use
    X.Msg.Alert("message", b).Show(();
    As for a Redirect call, please provide a test case to reproduce.

Similar Threads

  1. Replies: 5
    Last Post: Jul 18, 2013, 3:08 PM
  2. [CLOSED] chart series double click event
    By SymSure in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 04, 2012, 2:03 PM
  3. Replies: 2
    Last Post: Aug 04, 2011, 2:14 PM
  4. [CLOSED] Row double click event on gridpanel
    By yobnet in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 29, 2010, 2:54 AM
  5. Hover and double-click event on Panel?
    By dbassett74 in forum 1.x Help
    Replies: 2
    Last Post: May 07, 2009, 1:58 AM

Tags for this Thread

Posting Permissions