primefaces / primefaces/primereact

DataTable: Row Editor dynamic value update

Open
#4,672 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: New Feature
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the feature you would like to see added

Dynamically set a value of an input field

Is your feature request related to a problem?

My exact problem is when the maximum and minimum values are filled out, I would like to calculate the variance field value.

Describe the solution you'd like

I would like to calculate a field's value and update it, based on data from other fields in the row.

Describe alternatives you have considered

I have tried using my form controller, but then it updates the values even if the row isn't completed.

Additional context

Reproducer: https://stackblitz.com/edit/stackblitz-starters-xv6nmu?file=src%2FApp.tsx

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the linked StackBlitz reproducer and start with src/App.tsx to understand the DataTable Row Editor setup and the maximum, minimum, and variance fields. Trace how edits are committed for a row, then verify that the calculated variance updates from the other field values only when the row is completed.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.