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

Redirect to other view when user does double click on row

Thread ID:





119910 Aug 12,2015 05:00 PM UTC Aug 14,2015 05:33 AM UTC ASP.NET MVC 3
Tags: Grid
Asked On August 12, 2015 05:00 PM UTC


I want that, when a user does double click on a grid's row, a new page is loaded  with details of the row.

Index View

<div class="row panel">
    <div id="categories" class="col-xs-3">
            .Columns(col =>
            .ClientSideEvents(eve =>


 <script type="text/javascript">

    onDoubleClick = function(args)
        var source = Object.keys(args.data);      

            url: "/Informes/InformeSemanal/Detalles",           
            type: "GET",
            data: { 'id': args.data["ID"] },
            dataType: "json",           
            contentType: "application/json; charset=utf-8",
            success: function (data) {
                if (data.RedirectUrl) {
                    window.location = data.RedirectUrl;
                } else {
                    // replace the context of the section with the returned partial view


 public ActionResult Detalles(int? id)
            ViewBag.DSDetalles = db.GetDetallesInformeSemanal((int)id);
            return View("Detalles");

The action "detalles" is working, but does not redirect me to the page.


Ragavee U S [Syncfusion]
Replied On August 13, 2015 09:57 AM UTC

Hi Manolo,

We have analyzed the reported query. In the code that you have shared, we found that you have checked a condition inside the success event of the ajax call. The data returned from the view page in ajax success event is the corresponding partialview page “Detalles”. The argument data of the success function will have the partial view page html content and so the data.RedirectURL will be false always.

We suggest you to use the below code in order to direct to another page on recordDoubleClick event of the grid. Please refer the below code snippet.


    . . . .    



<script type="text/javascript">   

    function recordDblClick(args) {

        window.location = "/Home/RowDetails/?ord="+args.data["OrderID"];


public ActionResult RowDetails(int ord)


            var data = new NorthwindDataContext().OrdersViews.Where(e => e.OrderID == ord).FirstOrDefault();

            return View("_details", data);

For your convenience, we have created a sample with the above solution and the sample can be downloaded from the below location.

Sample Link: http://www.syncfusion.com/downloads/support/forum/119910/ze/Sample-1237813112

Please try the sample and get back to us if you need any further assistance.

Ragavee U S

Replied On August 13, 2015 12:18 PM UTC

Thanks a lot

Alan Sangeeth S [Syncfusion]
Replied On August 14, 2015 05:33 AM UTC

Hi Manolo,
Thanks for the update.
Please let us know if you need any further assistance. We will be happy to help you out.
Alan Sangeeth S


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