Hi Alexander,
Thanks for your reply it works for me, but my requirement is something different.
In the command button i want default Edit functionality also.My column list is as follows:-
columns: [
{ field:
"FirstName", title: "First Name" },
{ field:
"LastName", title: "Last Name" },
{ field:
"EmailId", title: "Email ID" },
{ field:
"RegisteredWithMDSText", title: "Is Registered?" },
{ field:
"OperationStatusText", title: "Operation Status" },
{ command: [
"edit",{ template: kendo.template($("#command-template").html())}], title: " ", width: "420px"}]
And template is defined like as foolows:-
<
script id="command-template" type="text/x-kendo-template">
# if (OperationStatusText == "Add Requested" ||
OperationStatusText == "Reset Requested" ||
OperationStatusText == "ReRegister Requested" ||
OperationStatusText == "Delete Requested") ;
else { #
#if(RegisteredWithMDSText == "False"){#
<a class="k-button Delete-button">Delete</a>
<a class="k-button Re-Register-button">Re-Register</a>
#}
else {#
<a class="k-button Delete-button">Delete</a>
<a class="k-button Reset-button">Reset</a>
<a class="k-button Re-Register-button">Re-Register</a>
#}#
# } #
</script>
If i am defining my columns like as above it is giving me error as "OperationStatusText" is not defined.
But when i am defining my column as follows i am able to see the template button but no default edit button.
columns: [
{ field:
"FirstName", title: "First Name" },
{ field:
"LastName", title: "Last Name" },
{ field:
"EmailId", title: "Email ID" },
{ field:
"RegisteredWithMDSText", title: "Is Registered?" },
{ field:
"OperationStatusText", title: "Operation Status" },
//{ command: ["edit"], title: " ", width: "420px" },
{template: kendo.template($(
"#command-template").html())}]
Now my question is how can i achieve this default edit button as well as my custom command buttons veries from row to row in kendo grid.
Thanks
Team Symantec