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

Not able to get Row Value when row is selected

I have a set of data show in the Grid and I would like to get the row value when I click on the row (in my attachment, row value is the PO number value) .

My idea is to get the row value and pass back to sub function to do some checking and updating in sql server.

I have followed exactly the thread 124596 but still now able to get the row value prompted.

I'm using VS2010, vb.net, Syncfusion version: 14.3400.0.49. I have attach my sample project in the thread.

Any help is very much appreciated.

Attachment: TEST_APP_dd2bc104.zip

2 Replies

CH ChongEC November 30, 2016 03:15 AM UTC

Hi, I'm able to get the row value now. I put the wrong object name in js.

I tried to have ContentPlaceHolderID + Grid name as below and it works.

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script type="text/javascript">
        function rowSelect() {
            var obj = $("#MainContent_Grid1").ejGrid("instance");
            //getSelectedRecords method will display the selected row in a grid    


    <div><h2>PO Approval</h2></div>


        <ej:Grid ID="Grid1" runat="server" CssClass="Grid1" 
            AllowFiltering="True" AllowSorting="True" AllowResizeToFit="True" AllowReordering="True" 
            AllowSelection="True" EnableLoadOnDemand="False">

            <ClientSideEvents RowSelected ="rowSelect" />
                <ej:Column DataType="string" Field="Comp" Width="60px" />
                <ej:Column DataType="date" Field="PODate" Format="{0:dd/MM/yyyy}" />
                <ej:Column DataType="string" Field="PONbr" />
                <ej:Column DataType="string" Field="Currency" HeaderText="Cury" Width="60px" />
                <ej:Column DataType="string" Field="SuppName" Width="200px" />
                <ej:Column DataType="number" Field="Amt" TextAlign="Right" Format="{0:C2}" />
                <ej:Column DataType="number" Field="GST" TextAlign="Right" Format="{0:C2}" />
                <ej:Column DataType="number" Field="TotAmt" TextAlign="Right" Format="{0:C2}" />
                <ej:Column DataType="string" Field="Status" Width="60px" />
           <FilterSettings FilterType="Excel" />


MS Mani Sankar Durai Syncfusion Team November 30, 2016 12:32 PM UTC

Hi ChongEC, 

Thanks for contacting Syncfusion support. 

Yes we can get the selected value by using RowSelected event and we are happy that your problem has been solved. 

Please let us know if you need further assistance. 

Manisankar Durai. 

Live Chat Icon For mobile
Up arrow icon