delegateas / XrmDefinitelyTyped

Tool to generate TypeScript declaration files for Dynamics 365/CDS client-side coding.
http://delegateas.github.io/Delegate.XrmDefinitelyTyped/
MIT License
133 stars 53 forks source link

Editable Grid set as BaseControl #274

Closed tpb1109 closed 9 months ago

tpb1109 commented 2 years ago

When using getControl() on an editable grid it is being given the BaseControl type rather than SubGrid. This only happens when I add the Editable Grid control to the grid, if I remove it and leave the read-only one then it works fine.

My code still works fine when using an editable grid, and I am currently handling this by editing the interfaces in the context.d.ts file so that is using Xrm.SubGridControl rather than Xrm.BaseControl, but I was just making sure there isn't something I'm missing to handle this better.

OliverFlint commented 1 year ago

FYI, same issue with the new Power Apps Grids