-
Notifications
You must be signed in to change notification settings - Fork 775
Getting row index in dataFormat props function ? #604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@akashshinde, if pagination was enabled, the scope of row index is belong on current page? |
@AllenFang yes, pagination is enabled as I am having less than 10 items rendered in table, So it's in current page. |
@akashshinde, I can support this feature in next version. |
Released on Be carefully, the row index is passed on fourth arguments |
@AllenFang Thanks :) |
This is gold. Thanks @AllenFang |
Hi! Index = Proxy {dispatchConfig : {…} , .. etc.} What´s wrong with my code? Thanks!
|
class ActiveFormatter extends React.Component {
render() {
return (
<IconButton
iconProps={{ iconName: 'Add' }}
onClick={() => this.props.addRowSorted(this.props.index)}
/>
);
}
} |
@AllenFang , if the filter of the column is applied, and any filter is made, the row-id will not start with number "1" because the "ID" here is generated based on the product number. For e.g, if we filter the column "name" with value 4, the row id will will show "4". Since the ID is generated incremental, thus cannot deal with it. Goal: Want to to have row_index for id add incremental, and even after filter the column name, the 1st row index will start/count as no.1. Question: For example code below, try to use this:
|
I can see dataFormat props func expsoses cell and complete row object.
Is there any way to get row index here ?
The text was updated successfully, but these errors were encountered: