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.
Unfortunately, activation email could not send to your email. Please try again.

Row Click Event

Thread ID:

Created:

Updated:

Platform:

Replies:

131050 Jun 17,2017 09:41 AM Jun 19,2017 04:43 AM ASP.NET Core 1
loading
Tags: Grid
Zhen Liu
Asked On June 17, 2017 09:41 AM

I want to open a new edit page when user clicks on a row in the grid. 

Venkatesh Ayothi Raman [Syncfusion]
Replied On June 19, 2017 04:43 AM

Hi Zhen, 

Thanks for contacting Syncfusion support. 

We have achieved your requirement using recordClick event in Grid. This event gets triggered when we click the record in Grid. In this event, we can redirect to another page while we click the record. Please refer to the following code example and Help documentation for more information, 

Code example
<ej-grid id="FlatGrid" datasource="@ViewBag.child" allow-paging="true" record-click="recordClick" allow-filtering="true" allow-searching="true" > 
     
    <e-columns> 
        . . . 
    </e-columns> 
</ej-grid> 
     <script type="text/javascript"> 
 
         function recordClick() { 
 
             //Reidrect to another view 
             window.location.rel='nofollow' href = '/Home/Contact/'; 
         } 
     </script>                         




We have also prepared a sample for your convenience which can be download from following link, 


If we misunderstood your requirement, then could you please provide more details about your requirement? It would be helpful for us to find the query and provide the better solution as earliest. 

Regards, 
Venkatesh Ayothiraman. 


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.

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.

;