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
290
igGrid - Cellvalue with an object like Id/Value pair
posted

Hi,

I have read the post http://es.infragistics.com/community/forums/t/84274.aspx in which you answer about a List as a value for a cell, rendered using a template.

I have a quite similar issue but I would like to have your advice.

My goal :

  • The grid has to be created programatically.

  • The filtering mode should be "advanced".

  • I am able to retrieve my columns dynamically for the header, but then, each cell shall embeed a complex value type composed of an Id/value (string/string) pair.

  • On a row click (or selectionchange) I have to ba able to retrieve for each cell in the row, the related Id/Value pair.

 

Best regards ;-)

Parents
  • 49378
    Verified Answer
    posted

    Hello PEO-Stokomani,

    In this scenario handling therowSelectionChangedevent of the Selection feature would allow you to achieve your requirement.

    From the parameters passed to the handler, the row ID may be extracted which can then be used to access the value of any cell in the row using thecellValueAtmethod:

    $("#table1").igGrid("getCellValue", ui.row.id, "ProductDescription");

     

    Hope this helps. Please do not hesitate to contact me if you have any questions.

Reply Children
No Data