Hi,
I'd like to make a modification to igWebHierarchicalDataGrid.js.
Is it possible to override the embedded script and use my own version?
Thanks.
Hi naspence,
You can set EnableEmbeddedJavaScript to false on the control. Then the WHDG will not automatically send down its scripts. So you'd need to have the scripts for the grid and the framework. Alternatively, you could try to override the function on the prototype while allowing the grid to load its scripts.
Lastly, I'm just wondering exactly what you're trying to override? Perhaps it could be a feature request? I'd love to hear about it.
regards,
David Young
I'm trying to resolve an issue that's occuring in the IGContainerGrid.createSizingRow method.
In that method, on the following line:
if (tdElem.style.width.length > 0)
The style property off of tdElem is undefined.
I need more information how to use my own version of igWebHierarchicalDataGrid.js.
How, exactly, do I "override the function on the prototype while allowing the grid to load its scripts".
Please provide detailed instructions.
If you're getting an exception here, it means your data and grid set up is bad. You have no columns defined or autogenerated most likely. If you define a column (or even row selectors behavior), this should go away.
David
Hello naspence,
Thank you for the update. As Dave has mentioned you could set EnableEmbeddedJavaScript to false then have your own scripts for the grid and framework. Or alternatively override the function prototype and allowing the grid to load its scripts. Do you have specific questions about this?
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
I'm afraid providing a sample would be extremely difficult due to the complex nature of the application.
However, I have found that in OnRowIslandDataBinding, instead of adding the columns to the grid, adding them to the RowIsland provided by the event arguments removes the issue.
I'd still be interested in instructions to override the AJAX scripts though.
I am following up to see if I may be of further assistance with this matter. Do you have a sample that reproduces this issue?
Please let me know if I may be of further assistance with this matter.
Do you have a sample that reproduces this?
regards,David Young
The grid definitely has columns defined, they're not autogenerated.
The issue only occurs on initial page load, If I do anything on the page that causes a postback then the problem doesn't occur and the grid renders correctly.