igCombo loader vs no loader

Not Answered This post has 0 verified answers | 4 Replies | 2 Followers Thread's RSS feed.

Tammy Wohlrabe
Points 2,385
Replied On: Thu, Oct 12 2017 3:33 PM Reply

I have two combos on a page one uses the loader: $.ig.loader('igCombo', function() {$('#MainMenuSearchCombo').igCombo the other does not $(function () {$('#BasicCriteriaReceiptIdType').igCombo(

Do you know what triggers using the loader vs not? Only 1 combo uses the loader and the rest don't and I can't figure out why that one is. I need it not to so any direction to point me in would be helpful.

  • Post Points: 5

All Replies

Tammy Wohlrabe
Points 2,385
Replied On: Fri, Oct 13 2017 1:34 PM Reply

I figured out why this is happening. Is there a way to tell it to ignore the loader?

  • Post Points: 5
Tammy Wohlrabe
Points 2,385
Replied On: Fri, Oct 13 2017 1:39 PM Reply

Let me rephrase the question. When its using the igLoader its not seeing our custom template engine that we configured like this:

$.ig.tmpl = function (tmpl, data) {

var template = Handlebars.compile(tmpl);

return template(data);

};

Do you have to do something different with the template engine when the loader is used?

  • Post Points: 20
[Infragistics]Hristo
Points 15,440
Infragistics Employee
Replied On: Tue, Oct 17 2017 10:20 AM Reply

Hi,

Here is how you can tell the igLoader to load the Infragistics Templating engine resources:

<script type="text/javascript">
    $.ig.loader({
        scriptPath: "Scripts/ig/",
        resources: "igTemplating"
    });
<script>

You can find more information about how to use the templating engine in the Infragistics Templating engine topic.

Best Regards,
Hristo Anastasov
Associate Software Developer
Infragistics, Inc.

  • Post Points: 20
Tammy Wohlrabe
Points 2,385
Replied On: Tue, Oct 17 2017 10:22 AM Reply

Yeah I tried that. We're overriding the template engine to use Handlebars and I need it to recognize that. For our other MVC combos that do not use the loader it works fine but for this one with the loader it's not seeing handlebars. Any ideas? I'm stumped.

  • Post Points: 5
Page 1 of 1 (5 items) | RSS