We have a Iqueryable(of object) bound to the grid. In this grid we have a column with imagebuttons. When the button is pressed we want pass along the object of the row to our javascript function that is called popUp. The problem we are having is that right now we are only able to pass one single property to the function.
The code we use for this looks like this in VB.NET Razor syntax:
.Columns(Sub(column)coulmn.[For](Function(x) x.ViewRemarkDetailsPlaceHolder).FormatterFunction("function(val) {return '<input type=""image"" src=""../Resources/MagnifyingGlass.png"" align=""left"" onclick=""popUp()"">'; }").Width("25px").HeaderText(" ") End Sub)
Hi there,
It seems to me that the igGrid script file is 11.2 version. Is that so? The JQueryTemplating property has been deprecated in 12.1 as it is using our own templating engine and the template that you have would correctly be avaluated with the appropriate script files in 12.1. Let me know if you are experiencing any more issues!
Thanks!
Thanks for the reply.
I have attached the project where this behaviour occurs.
I will open a support ticket for you. Please work with DS to isolate a sample which can be sent to us. This template should be working no problem, however I will follow up as soon as I have the sample to update you with the findings!
Thank you for using the Infragistics forums!
I did find those samples, but I am afraid that even with them I am not able to get things working. When I try to put in a condiational row template I just get the code show that I tried to template with.
I put the following code in the .RowTemplate of a grid.
<tr><td> {{if ${AccountName}=='Test1'}}<span>Success!</span>{{else}}${AccountName}{{/if}} </td></tr>
The output I get is:
{{ifTest1=='Test1'}}
Success!{{else}}
${AccountName}{{/if}}
I am sure I am missing something here, but right now I have no clue what that might be.
hi,
you can find examples about how to use templating here:
http://samples.infragistics.com/jquery/templating-engine/
Hope it helps. Thanks
Angel