You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on building a custom rule editor for the Microsoft Rules Engine using igniteui grids. I stumbled upon an unwanted behavior as I started building the grid to edit rules. Whenever there is an igx-column defined in an igx-grid with field="expression", it causes tabbing while in cell edit mode to not behave correctly.
Here is the data model I'm using:
exporttypeRule={id: string;/** The name of the rule. */ruleName: string;operator: RuleOperator|null;errorMessage?: string;enabled: boolean;ruleExpressionType?: RuleExpressionType;workflowsToInject?: string[];rules: Rule[];localParams?: ScopedParam[];expression?: string;actions?: RuleActions;successEvent?: string;/** The custom properties or tags of the rule. */properties?: Record<string,any>;};
Here is the igx-grid I'm defining in my html template"
Create an igx-grid, like in the code above, bound to the provided seed data
Run the application and start editing r1c1
Hit tab to start editing the next cell
Result
Observe that r1c2 does not gain the focus. Instead it's the last row, column 1
Expected result
r1c2 should be in edit mode
Why it's happening
I was digging into the code for IgxGridBaseDirective.getNextCell and I can see that rows that have an expression property on the object are filtered out.
Recommendation
Introduce a JavaScript Symbol for the key properties on objects that IgniteUi uses, so that users can still have properties on their objects like expression, summaries, etc that won't conflict with the key values you're looking for.
Description
I am working on building a custom rule editor for the Microsoft Rules Engine using igniteui grids. I stumbled upon an unwanted behavior as I started building the grid to edit rules. Whenever there is an
igx-column
defined in anigx-grid
withfield="expression"
, it causes tabbing while in cell edit mode to not behave correctly.Here is the data model I'm using:
Here is the
igx-grid
I'm defining in my html template"here's some seed data that I'm using in my component:
Steps to reproduce
igx-grid
, like in the code above, bound to the provided seed dataResult
Observe that r1c2 does not gain the focus. Instead it's the last row, column 1
Expected result
r1c2 should be in edit mode
Why it's happening
I was digging into the code for
IgxGridBaseDirective.getNextCell
and I can see that rows that have anexpression
property on the object are filtered out.Recommendation
Introduce a JavaScript Symbol for the key properties on objects that IgniteUi uses, so that users can still have properties on their objects like
expression
,summaries
, etc that won't conflict with the key values you're looking for.Example:
Attachments
IgniteUi.Tabbing.mp4
The text was updated successfully, but these errors were encountered: