Skip to content
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

Pass a column to the TableFilterRow's editorComponent #2851

Open
1 of 3 tasks
karczk opened this issue Apr 23, 2020 · 1 comment
Open
1 of 3 tasks

Pass a column to the TableFilterRow's editorComponent #2851

karczk opened this issue Apr 23, 2020 · 1 comment
Assignees
Labels
enhancement Grid The DevExtreme Reactive Grid component

Comments

@karczk
Copy link

karczk commented Apr 23, 2020

I'm using ...

  • React Grid
  • React Chart
  • React Scheduler

Description

Pass column to the filter cell editor. Type it also in EditorProps.

Reason:
I would like to render different input component when my column is numeric. I could figure this out based on my column properties, but unfortunatelly right now I cannot do anything because I get only: value, disabled, onChange, getMessage.

Example:

<TableFilterRow
    editorComponent={(props) => { /* props.column is needed in here */

It's a very "cheap" feature, because everything is in the scope (dx-react-grid.umd.js):

image

@ushkal ushkal self-assigned this Apr 23, 2020
@ushkal ushkal added the Grid The DevExtreme Reactive Grid component label Apr 23, 2020
@ushkal ushkal changed the title TableFilterRow -> editorComponent -> add column to the props Pass a column to the TableFilterRow's editorComponent Apr 23, 2020
@ushkal
Copy link
Contributor

ushkal commented Apr 23, 2020

Hi @karczk ,

Thank you for this suggestion. We'll consider implementing it in future releases. in the meantime, you can pass a column property as shown in this example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Grid The DevExtreme Reactive Grid component
Projects
None yet
Development

No branches or pull requests

2 participants