Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

getRowIndexByPrimaryKey() is a Syncfusion Grid API that returns the row’s zero‑based index by using the value of the grid’s primary‑key column; it works only when a column is marked with isPrimaryKey and resolves the index from the grid’s current visual data (after sorting, filtering, searching, grouping, paging, or virtualization). Internally, the grid keeps a key‑to‑row mapping so this method can quickly locate the correct row within the currently rendered set, and if the key is not present in the active view—for example, when it’s on another page or not loaded yet—the method safely returns -1, allowing the app to navigate or fetch the record before querying again. This API helps ensure consistent and accurate row targeting for operations like programmatic selection, editing, scrolling, focusing, or opening detail/child rows based solely on the primary key.