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. Image for the cookie policy date

Navigate to New Controller

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

3 Replies

TS Thavasianand Sankaranarayanan Syncfusion Team 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. 



UN Unknown Syncfusion Team June 5, 2019 04:39 AM UTC

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


TS Thavasianand Sankaranarayanan Syncfusion Team 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. 


Loader.
Live Chat Icon For mobile
Up arrow icon