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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Navigate to New Controller

Thread ID:

Created:

Updated:

Platform:

Replies:

145042 Jun 4,2019 05:32 AM UTC Jun 6,2019 01:50 PM UTC ASP.NET Core - EJ 2 3
loading
Tags: DataGrid
Mark Tannehill
Asked On June 4, 2019 05:32 AM UTC

How might I navigate to a new controller action/page?

...

 <ejs-grid id="GridOverview" dataSource="@ViewBag.Data" allowFiltering="true" allowSorting="true" rowSelected="rowSelected">

...

function rowSelected(){
  //what goes here to allow for navigation to item when selected?
}     


Thanks

Thavasianand Sankaranarayanan [Syncfusion]
Replied On June 4, 2019 11:52 AM UTC

Hi Mark, 

Greetings from Syncfusion support. 

Based on your query we suspect that you want to move another page when we select the rows in Grid.  

Refer the below code example. 


function rowSelected() { 
        debugger 
        window.location.rel='nofollow' href = '@Url.Action("ActionName", "ControllerName")'; 
         
    }    


Please let us know if you need further assistance. 

Regards, 
Thavasianand S. 


Mark Tannehill
Replied On June 5, 2019 04:39 AM UTC

How do I pass in the detailId from the grid into that?

Thavasianand Sankaranarayanan [Syncfusion]
Replied On June 6, 2019 01:50 PM UTC

Hi Mark, 

Based on your query we suspect that you want to pass some additional parameter in the URL action. 

Please follow the below general solution link to achieve your requirement. 


Regards, 
Thavasianand S. 


CONFIRMATION

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

Live Chat Icon For mobile
Live Chat Icon