Skip to content

Commit

Permalink
grid.View: remove the useRowRecordIds config #6236
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiu committed Jan 14, 2025
1 parent 889d725 commit a2ae975
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/grid/View.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ class GridView extends Component {
* @member {Neo.data.Store|null} store_=null
*/
store_: null,
/**
* @member {Boolean} useRowRecordIds=true
*/
useRowRecordIds: true,
/**
* Stores the indexes of the first & last painted columns
* @member {Number[]} visibleColumns_=[0,0]
Expand Down Expand Up @@ -667,15 +663,7 @@ class GridView extends Component {
* @returns {String}
*/
getRowId(record, index) {
let me = this,
{store} = me;

if (me.useRowRecordIds) {
return `${me.id}__tr__${record[store.keyProperty]}`
} else {
index = Neo.isNumber(index) ? index : store.indexOf(record);
return me.vdom.cn[index]?.id || Neo.getId('tr')
}
return `${this.id}__tr__${record[this.store.keyProperty]}`
}

/**
Expand Down

0 comments on commit a2ae975

Please sign in to comment.