ag-grid-valuesetter

Select with values and IDs inside an ag-grid cell?

旧时模样 提交于 2021-02-16 19:03:26
问题 I am very new to ag-grid and am evaluating it. My project's data has multiple lookup tables (i.e. A Foo has a category of Bar, a Brand of Baz and a Class of Boo) that I would like to be able to edit in the ag-grid. Unfortunately, those lookup tables are not in my control and I do not always have sequential IDs. Example: Foo has a Class Class can be one of the following: ID - Value 2 - Test 3 - UAT 6 - Unknown 9 - Production 15 - Development I can't control the IDs or the Values. So if I put

AG Grid: Better way for validation row - valueSetter?

偶尔善良 提交于 2019-12-18 07:24:29
问题 Is there a better way to validate a row in ag-grid than with valueSetter ? I can achieve the validation with that but I am not sure, if there is a better way. https://www.ag-grid.com/javascript-grid-value-setters/#properties-for-setters-and-parsers I want to validate two fields in the row. DateFrom and DateUntil (they are not allow to be null and DateFrom must be lower than DateUntil). 回答1: There are two ways of possible validation handling: First: via ValueSetter function and Second: via

AG Grid: Better way for validation row - valueSetter?

瘦欲@ 提交于 2019-11-29 12:55:11
Is there a better way to validate a row in ag-grid than with valueSetter ? I can achieve the validation with that but I am not sure, if there is a better way. https://www.ag-grid.com/javascript-grid-value-setters/#properties-for-setters-and-parsers I want to validate two fields in the row. DateFrom and DateUntil (they are not allow to be null and DateFrom must be lower than DateUntil). There are two ways of possible validation handling: First: via ValueSetter function and Second: via custom cellEditor component I suggest that it would be better to split the logic between custom components ,