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.
Syncfusion Feedback

Grid Clienn side row selection

Thread ID:

Created:

Updated:

Platform:

Replies:

106286 Dec 22,2012 07:09 AM UTC Dec 27,2012 07:25 AM UTC ASP.NET MVC (Classic) 1
loading
Tags: Grid
Balakrishnan Duraisamy
Asked On December 22, 2012 07:09 AM UTC

When select the data grid row, Row values displayed in partial view text page. How I will do .Please send some sample.


Gowri S [Syncfusion]
Replied On December 27, 2012 07:25 AM UTC

Hi Balakrishnan,

 

We can access the selected row values using OnRecordSelection event of Grid. In our sample we have displayed the selected row values in the div tag.

 

The code snippet is :

 

@(Html.Syncfusion().Grid<MvcApplication1.Models.Student>("Simple_Grid")

……………………………….

……………………………….

.ClientSideEvents(eve =>

            {

                eve.OnRecordSelectionEvent("recordSel");

            })

)

 

 

<div id="part">

 

</div>

 

<script language="javascript" type="text/javascript">

 

    function recordSel(sender, args) {

        $('#part').html("University Code : " + args.record.UniversityCode + "</br>" + "Title : " + args.record.Title + "</br>" + "Course Fees : " + args.record.CourseFees + "</br>" + "Duration : " + args.record.Duration + "</br>" + "CGPA : " + args.record.CGPA);

    }

 

</script>

 

We have created a sample for your convenience. The same can be downloaded from the following link :

 

MvcApplication1.zip

 

We could not understand what you have mentioned as "Row values displayed in partial view text page". We request you to provide more information about that requirement.

 

Please let us know if you have any other queries.

 

Regards,

 

Gowri 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.

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

;