This question is locked. New answers and comments are not allowed.
Hi!
I have a problem, question about MVC Grid.
Here is my code:
c.Bound(o => o.Computer).ClientTemplate("<a onclick=openDefault('<#=Computer#>'); return false;' href=#" + "\">" + "<#=Computer#>" + "</a>").Encoded(false).Title("Computer").HtmlAttributes(new { @class = "ihover ReceivedMemos" });
}
And the openDefault script:
and this works perfectly, if the item of columns is one string.
For example, it's works, if Computer's item is "Computer1", but it's don't works, if item is "Computer 2".
I tested this on an other way, apart from a grid:
<a href="#" onclick="openDefault('Computer 2'); return false;"> JavaScript </a>
And this works perfectly, so i think, the script is good.
I believe it so the problem is '<#=Computer#>' argument passing, but i don't now how can i fix it.
Thank you for the help ahead
I have a problem, question about MVC Grid.
Here is my code:
c.Bound(o => o.Computer).ClientTemplate("<a onclick=openDefault('<#=Computer#>'); return false;' href=#" + "\">" + "<#=Computer#>" + "</a>").Encoded(false).Title("Computer").HtmlAttributes(new { @class = "ihover ReceivedMemos" });
}
And the openDefault script:
<script type="text/javascript"> function openDefault(miez) { var manager1 = $find("<%= RadWindowManager2.ClientID %>"); var str3 = "/ComputerNameDefaults/ComputerNameDefaults/" + miez; manager1.open(str3, "RadWindow2"); } </script>and this works perfectly, if the item of columns is one string.
For example, it's works, if Computer's item is "Computer1", but it's don't works, if item is "Computer 2".
I tested this on an other way, apart from a grid:
<a href="#" onclick="openDefault('Computer 2'); return false;"> JavaScript </a>
And this works perfectly, so i think, the script is good.
I believe it so the problem is '<#=Computer#>' argument passing, but i don't now how can i fix it.
Thank you for the help ahead