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
close icon

Grid Clienn side row selection

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


1 Reply

GS Gowri S Syncfusion Team 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.


Loader.
Live Chat Icon For mobile
Up arrow icon