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
385
Multiple primary keys?
posted

Hi,

is it possible to have multiple primary keys in the grid? I'm getting a list of objects from a remote server, these objects are identified by two numbers. The user should be able to select one or more rows and when a button is pressed, a list of selected objects (or only their identifying properties) should be sent back to the server. 

The problem i'm having is that by calling "selectedRows" i'm not getting the whole data of the row, but only the primary key. It would also be useful to get the whole record-data by calling "selectedRows" instead of just the index.

 

Any ideas?

edit: Ok, i added an invisble column to the dataset containing the combined key. But no i found a bug i think. I'm using selection with row selectors. When clicking the checkbox top left to select all, i get only IDs for the visible rows after calling "selectedRows" (i'm using row virtualization, it may be related). Every row is checked, but for the invisible rows the value of "id" is "undefined". 

Parents
No Data
Reply Children
No Data