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
1325
Select row by primary key value
posted

Hello,

"selectRow " method right now accepts only row number. How can I find it if I know primary key value for that row? Basically, I want to select row by its primary key value.

Parents
No Data
Reply
  • 23953
    Suggested Answer
    Offline posted

    Hi adogg,

    You should use igGrid method findRecordByKey.

    Here is the example code:

    var record = $(".selector").igGrid("findRecordByKey", 4);

    In order for this method to work primaryKey option of the grid should be set.

     

    Hope this helps,

    Martin Pavlov

    Infragistics, Inc.

Children