I'm having trouble with using column templates. If I use this :
{ headerText: "Project Name", key: "name", width:"400px", dataType: "string", template: "${name}" },
it works fines, the ${name} is replaced with the value of 'name.' However if I do this :
{ headerText: "Project Name", key: "name", width:"400px", dataType: "string", template: "ProjectName ${name}" },
the column is displayed as 'ProjectName' and that's it... the ${name} is completely ignored.
How can I fix this?
Hello C J,
I'm not able to reproduce such behavior with the latest 15.1 build 2112. Can you check what version of the Ignite UI product you're using by executing the following statement in your browser JavaScript console:
$.ui.igGrid.version
Thanks in advance,Martin PavlovInfragistics, Inc.
This is what I get :
$.ui.igGrid.version"14.2.20142.2140"
We want to but can't move to 2015 yet due to some features being missing and a lot of rework for our app would be required.
Can you try this in 2014 version that we're using?
Thanks
Even with the "14.2.20142.2140" version it's still working for me, so there should be some other option which breaks the functionality.
Here is my grid configuration which works with your version:
$("#grid").igGrid({ autoGenerateColumns: false, columns: [ { headerText: "Product Name", key: "Name", dataType: "string", width: "400px", template: "ProjectName ${Name}" } ], dataSource: [{Name: "Name1"}]});
Can you provide me with your grid configuration, so that I can make my sample replicating your scenario as close as possible.
Thanks in advance, Martin PavlovInfragistics, Inc.
Hello Martin,
I am sorry that I did not get back to you sooner. I was migrating our app to the new 2015.1 with 'fix pack' from Sept 26. A quick test shows its still not working, but I will need some more time to get more details to you.
Thank you.