Hello, i have the problem with this control.
When i run my app, i load all recources with loader.js. and i took your example. But it's still not work.
IgniteUI/js/modules/infragistics.templating.js replace error (null)
this my page:
<!DOCTYPE html><html><head> <title></title>
<script src="js/jquery_min.js"></script>
<script src="js/jquery-ui.min.js"></script> <script src="IgniteUI/js/infragistics.loader.js"></script>
</head>
<script> $(function () { var data = [ { name: 'Pie' },
{name: 'Funnel'},
{name: 'Editor'} ]; $.ig.loader({ scriptPath: "IgniteUI/js/", cssPath: "IgniteUI/css/", resources: "igTileManager,igHtmlEditor", autoDetectLocale: true, ready: function () { $("#htmlEditor").igHtmlEditor(); $("#igTileManager").igTileManager({ columnWidth: '30%', columnHeight: '30%', marginLeft: 10, marginTop: 10, height: 800, width: 950, dataSource: data, minimizedState: '<h3>${name}</h3>', maximizedState: '<h3>${name}</h3>'
}); } }); }); </script> <body> <div id="htmlEditor"></div> <div id="igTileManager"></div></body></html>
Hello segornak,
Is there anything else I can assist you with regarding this matter?
I am glad that you were able to get everything working correctly. Please let me know if I can be of further assistance.
I downloaded the latest version of Ignite and now all work correctly. Thanks for helps.
Thank you for posting in the Infragistics community!
I was able to reproduce your issue and believe I have found a solution. Based on the error you were receiving, it looks like you had an issue in referencing your resources. I have attached a sample which is a variation of the code you posted, but gives the result you desired. There are a couple things different about my code that you should note:
1. Rather than using the ready event in the loader as you did, I have initialized the loader separately. This functionally is the same thing, but it is better practice to load your scripts, css, and resources initially, then have a separate loader with a function which will kick off the elements you would like to add in your page.
2. My scriptPath: is 'js/' and my cssPath is 'css/'. This is because I held these two folders directly in the directory my HTML was in. The way that you do it is fine, but just make sure that you are correctly specifying the path to your resources. This may have been the source of your issue.
Lastly, for future reference, it may be better practice to manually reference the individual scripts you need rather than using the loader. In cases like this one, the loader can just make things a bit more complicated than they need to be.
I hope this helps resolve your issue. Please let me know if there is anything else I can help you with.