Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
Web data grid selected row in client side (Grid has webdropdown as a column)
posted

Hi Team,

I have a column(Template data field - item template -  web drop down) in web data grid.

I want to get selected row when we select an item in web dropdown from client side.

Added below code to web drop down in template data field.

ClientEvents SelectionChanged="ddl_SelectionChanged

function ddl_SelectionChanged(sender, eventArgs) {
        var grid = $find("<%= gvParams.ClientID %>");
        var rows = grid.get_rows();
        alert("rows" + rows.get_length());
        var rowSelected = grid.get_behaviors().get_selection().get_selectedRows();
        alert("selected" + rowSelected);
        
    //grid.Rows.refresh();
    }

in the above method i am getting null value in rowSelected variable.

I want to get the selected value in drop down and selected row index.

Please do the needful

Regards,

Sravani