This question is locked. New answers and comments are not allowed.
Hi !!
I followed the example of Master / Detail sample and implemented it. From some other form post of telerik I found that in some cases I might have to use Bound Column with ".Template" and ".ClientTemplate".
I have spended 3-4 hours but having hard time implementing ".Template" and ".ClientTemplate". I am able to do it partially.
Can someone help.
As you can see, I am not able to get item mark in bold in Client Template. Also, none of <#= #> item is showing up in message.
Why it is so difficult to make/use client template. Is there a simple way?
I followed the example of Master / Detail sample and implemented it. From some other form post of telerik I found that in some cases I might have to use Bound Column with ".Template" and ".ClientTemplate".
I have spended 3-4 hours but having hard time implementing ".Template" and ".ClientTemplate". I am able to do it partially.
Can someone help.
columns.Bound(o => o.Id) .Template(@<a href="#" onclick="return ConfirmReplace('@String.Format(LocalizedText.ReplaceMessage, @Model.Name, @item.FullName, "XYZ")', @item.Id, @item.CatId);" id="btnReplace" style="@string.Format("visibility: {0}", @item.CanShowReplace ? "visible" : "hidden")">@LocalizedText.ReplaceLinkText</a>) .ClientTemplate("<a href=\"#\" id=\"btnReplace\" onclick=\"return ConfirmReplace(" + "'" + String.Format(LocalizedText.ReplaceMessage, "<#= Model.Name #>", "<#= item.FullName #>", "XYZ") + "'" + ");\" style=\"@string.Format(\"visibility: {0}\"," + "<#= item.CanShowReplace #>" + "? \"visible\" : \"hidden\")\">" + LocalizedText.ReplaceLinkText + "</a>") .Visible(@Model.CanShowReject) .Title(string.Empty);As you can see, I am not able to get item mark in bold in Client Template. Also, none of <#= #> item is showing up in message.
Why it is so difficult to make/use client template. Is there a simple way?