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
2225
Get a cell value from a selected row
posted

I have the following code:

$("#igGrid1").live("iggridselectionrowselectionchanged", function (event, args) {

 // Using args.row, how do I get
 // the value of a cell by column key?
           
});

 

I know that args.row gets me the currently selected row. But I haven't been able to figure out how to get a cell value for this selected row. For example, the value of the column with column key "ItemID".

I've been using the information from here:

http://help.infragistics.com/NetAdvantage/jQuery/Current/CLR4.0

Thanks,
Tony

 

Parents
  • 24671
    posted

    Hi Tony,

    var rowObject = args.owner.grid.dataSource.dataView()[args.row.index];

    var cellValue = rowObject["someColumnKey"];

    Hope it helps,

    Angel

Reply Children
No Data