Skip to content

Infragistics Community Forum / Cross Platform / Ultimate UI for Xamarin / How to get a column value from selected row in web data grid?

How to get a column value from selected row in web data grid?

New Discussion
Lavanya
Lavanya asked on Sep 15, 2009 12:40 AM

I am new to this community and using infragistics asp.net controls for the first time. I have a web data grid & button on my asp.net page with 6 columns. I am calling a java script function on button click. User will select one row in grid and click on button to open popup.

My question is how to get a id column value from the selected row in javascript function?  Please help. I have looked at this forum, but did’t find an answer.

Thanks in advance.

Lavanya

 

Sign In to post a reply

Replies

  • 0
    Thilagam
    Thilagam answered on Sep 14, 2009 10:07 AM

    You are trying to get column object? then, try this  igtbl_getColumnById(id). If u try to get a cel value from the selected row, then row.getCellFromKey('ID').getVaue() will help you.

    • 0
      Lavanya
      Lavanya answered on Sep 15, 2009 12:40 AM

      Thanks for the response. I am using below code and this works.

      var activeRow = grid.get_behaviors().get_activation().get_activeCell().get_row();
      
      cell = activeRow.get_cellByColumnKey("ID");
      
      ID= String(cell.get_value());

       

       

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Lavanya
Favorites
0
Replies
2
Created On
Sep 15, 2009
Last Post
17 years ago

Suggested Discussions

Created by

Created on

Sep 15, 2009 12:40 AM

Last activity on

Feb 25, 2026 9:55 AM