We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Get cell data from a double click

Thread ID:





119422 Jun 18,2015 10:44 AM UTC Jun 19,2015 09:39 AM UTC ASP.NET MVC 1
Tags: Grid
William Wong
Asked On June 18, 2015 10:44 AM UTC

Hi, I am using a Grid with selection disabled, e.g.

    ....... removed .....
    .PageSettings(page => page.PageSize(15))
    .ClientSideEvents(evt => evt.RecordDoubleClick("recordDoubleClick"))

Is there any way to get the row data from which the user double click at? I would like to get a few column data (including hidden columns) for use inside the javascript function recordDoubleClick. BTW, I see that the columns width are equally divided from the grid width before the data is loaded from the datasource (which is a webapi call to the controller). I wonder if it is possible to use exactly the width I specified in the view?

Prasanna Kumar Viswanathan [Syncfusion]
Replied On June 19, 2015 09:39 AM UTC

Hi William,

Thanks for using Syncfusion products.

Query: “Is there any way to get the row data from which the user double click?”

Yes, the row data from which the user double click can be received by using the event RecordDoubleClick. In this event, we can able to get the selected cell in arguments. So, using jQuery parent method we will be able to get the row data.

Please refer the following code example:


              .Datasource(ds => ds.URL("/api/Orders").Adaptor(AdaptorType.WebApiAdaptor))






              .PageSettings(page => page.PageSize(10))


              .EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing(); })

                      .ToolbarSettings(toolbar =>


                       toolbar.ShowToolbar().ToolbarItems(items =>









              .Columns(cols =>








              .ClientSideEvents(evt => evt.RecordDoubleClick("recordDoubleClick"))


While we set allowSelection as false, it throws script error in recorddoubleclick event. We considered this “Throws script error when we set allowselection as false in recorddoubleclickevent” as an issue and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.


Query : “if it is possible to use exactly the width I specified in the view?”

Yes, it is possible to set the width in the view. We can able to set the width in the columns API. Please refer the above code example:

For your reference, we have created a sample and same can be downloaded from the below link: 
Sample Link : http://www.syncfusion.com/downloads/support/forum/119422/ze/WebApiSample_Modified-607651259

Please let me know if you need any further assistance.

Prasanna Kumar N.S.V


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon