XrmDefinitelyTyped icon indicating copy to clipboard operation
XrmDefinitelyTyped copied to clipboard

Editable Grid set as BaseControl

Open tpb1109 opened this issue 2 years ago • 0 comments

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.

tpb1109 avatar May 24 '22 19:05 tpb1109