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.
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.
Do you have a sample that reproduces this?
regards,David Young
Hello naspence,
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.
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.
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?