This is a migrated thread and some comments may be shown as answers.

[Solved] ClientTemplate with placeholder outputting incorrect text

0 Answers 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 12 Jul 2012, 03:32 PM
I have the following client template...

.ClientTemplate("<a href='javascript:showQuestionChoiceWindow('<#= QuestionId #>') class='t-button t-grid-edit'>Choices</a>").Title("");

When the above is rendered, I get the following output:

<a class="t-button t-grid-edit" 971405d2-a08a-436a-ab79-7e45961c5ffb')=""href="javascript:showQuestionChoiceWindow(">Choices</a>

Basically my string with a simple replacement has been moved around resulting in invalid synax. Removing the placeholder corrects the syntax but I need the injected value.

John

Tags
Grid
Asked by
John
Top achievements
Rank 1
Share this question
or