Replies
Hello Rob,
We have a similar problem, how can we solve this issue?
I know I'm missing a namespace but when I add it using this method:
<add namespace="http:\\schemas.infragistics.com\xaml\reports" />
I get a compilation error
Regards,
Daniel van Cann
Hi Martin,
Tanx for the tip to use the TR element. this works fine but again as soon as i try to Use the column value if get nothing, I did what you said and checked the console and indeed I got an Syntax error:
- Uncaught SyntaxError: Unexpected token { jquery.tmpl.js:314
-
buildTmplFnjquery.tmpl.js:314
-
jQuery.extend.templatejquery.tmpl.js:181
-
$.widget._generateRowTemplateig.ui.min.js:1
-
$.widget._renderRecordsig.ui.min.js:1
-
$.widget._renderDataig.ui.min.js:1
-
$.ig.DataSource.$.ig.DataSource.Class.extend._invokeCallbackig.ui.min.js:1
-
$.ig.DataSource.$.ig.DataSource.Class.extend.dataBindig.ui.min.js:1
-
$.widget.dataBindig.ui.min.js:1
-
$.widget._createig.ui.min.js:1
-
b.Widget._createWidgetjquery-ui.min.js:21
-
$.widget._createWidgetig.ui.min.js:1
-
b.widget.b.(anonymous function).(anonymous function)jquery-ui.min.js:19
-
b.widget.bridge.b.fn.(anonymous function)jquery-ui.min.js:20
-
b.extend.eachjquery-1.4.4.min.js:33
-
b.fn.b.eachjquery-1.4.4.min.js:26
-
b.widget.bridge.b.fn.(anonymous function)jquery-ui.min.js:20
-
(anonymous function)OverView:69
-
b.extend.readyjquery-1.4.4.min.js:29
I used the following 2 statements the first did work but the second didn't show anything
"<tr {{if 0 == '0'}} class='rowCriticalAttention'{{/if}} > <td> ${NO001_ID} </td></tr>"
"<tr {{if ${NotificationStatus} == '0'}} class='rowCriticalAttention'{{/if}} > <td> ${NO001_ID} </td></tr>"
Do you have any idea what the problem can be?
Best regards,
Daniƫl van Cann
I just tried this:
.RowTemplate("<tr><td> {{if 0 == 0}}<span class='rowCriticalAttention'>${NO001_ID}</span> {{else}} ${NO001_ID} {{/if}}" + "</td></tr>") _
and it also worked so the problem is in if part
{{if parseInt(${NotificationStatus}) == 0}}
something in this code is wrong but i can't figure out what the problem is
First I thought maybe the parse went wrong so i tried:
Integer.Parse
CInt()
parseInt,
but none of them worked, any idea?
Bert regards,
Daniel van Cann
I tried this:
.RowTemplate("<tr><td> <span class='rowCriticalAttention'>${NO001_ID}</span> " + "</td></tr>") _
and it worked but only the text backgroud color is set, I don't know if that is normal?
than I tried this:
"<tr><td> {{if parseInt(${NotificationStatus}) == 0}}<span class='rowCriticalAttention'>${NO001_ID}</span> {{else}} ${NO001_ID} {{/if}}" + "</td></tr>") _
and nothing happend, only the header and column names where shown.
Best regards,
Daniel van Cann
The sorting I fixed, many thanks.
the Conditional Row Template is a good example but there is no .vbhtml file availible, and my gues is that I have a smal syntax error in my row template code
i've tried multiple syntaxes but can't get it to work, this is my latest version, maybe anyone knows what i'm doing wrong?
.RowTemplate("<tr><td> {{if parseInt(${NotificationStatus}) == 0}}" +
"<span class='criticalAttention'>${NO001_ID}</span>" +
"{{elseif parseInt(${NotificationStatus}) == 1 || parseInt(${NotificationStatus}) == 2 }}" +
"<span class='attention'>${NO001_ID}</span>" +
"{{else}} ${NO001_ID}{{/if}}" + "</td>" +
"<td>{{if parseInt(${NotificationStatus}) == 0}}" +
"<span class='criticalAttention'>${NotificationName}</span>" +
"{{elseif parseInt(${NotificationStatus}) == 1 || parseInt(${NotificationStatus}) == 2}}" +
"<span class='attention'>${NotificationName}</span>" +
"{{else}} ${NotificationName}{{/if}}" + "</td>" +
"<td>{{if parseInt(${NotificationStatus}) == 0}}" +
"<span class='criticalAttention'>${NotificationDescription}</span>" +
"{{elseif parseInt(${NotificationStatus}) == 1 || parseInt(${NotificationStatus}) == 2}}" +
"<span class='attention'>${NotificationDescription}</span>" +
"{{else}} ${NotificationDescription}{{/if}}" + "</td>" +
"<td>{{if parseInt(${NotificationStatus}) == 0}}" +
"<span class='criticalAttention'>${NotificationStatus}</span>" +
"{{elseif parseInt(${NotificationStatus}) == 1 || parseInt(${NotificationStatus}) == 2}}" +
"<span class='attention'>${NotificationStatus}</span>" +
"{{else}} ${NotificationStatus}{{/if}}" + "</td>" +
"<td>{{if parseInt(${NotificationStatus}) == 0}}" +
"<span class='criticalAttention'>${NotificationTime}</span>" +
"{{elseif parseInt(${NotificationStatus}) == 1 || parseInt(${NotificationStatus}) == 2}}" +
"<span class='attention'>${NotificationTime}</span>" +
"{{else}} ${NotificationTime}{{/if}}" + "</td></tr>") _