Hi
I'm trying to put a button into grid. In order to achieve that I wanted to use rowTemplates. However I have a problem with geting and item id and put it into action parameter.
So far I these constructinos
However non of this method can successfully retrieve value of id parameter from object bounded to row. Is it possible to somehow pass value of id into action ??
I'm trying to put a button into grid. In order to achieve that I wanted to use rowTemplates. However I have a problem with geting and item id and put it into action parameter.
So far I these constructinos
<
script
id
=
"rowTemplate"
type
=
"text/x-kendo-tmpl"
>
<
tr
>
<
td
>
<
form
action
=
"/Home/EditProduct/?id="
+ "#=Id#"
class
=
"addEditButton"
method
=
"post"
>
<
submit
type
=
"button"
value
=
"Edytuj"
/>
</
form
>
</
td
>
</
tr
>
</
script
>
<
script
id
=
"rowTemplate"
type
=
"text/x-kendo-tmpl"
>
<
tr
>
<
td
>
<
form
action
=
"/Home/EditProduct/?id="
+ ${ Id }
class
=
"addEditButton"
method
=
"post"
>
<
submit
type
=
"button"
value
=
"Edytuj"
/>
</
form
>
</
td
>
</
tr
>
</
script
>
<
script
id
=
"rowTemplate"
type
=
"text/x-kendo-tmpl"
>
<
tr
>
<
td
>
<
form
action
=
"/Home/EditProduct/?id=${ Id }"
class
=
"addEditButton"
method
=
"post"
>
<
submit
type
=
"button"
value
=
"Edytuj"
/>
</
form
>
</
td
>
</
tr
>
</
script
>
<
script
id
=
"rowTemplate"
type
=
"text/x-kendo-tmpl"
>
<
tr
>
<
td
>
<
form
action
=
"/Home/EditProduct/?id=${ Id } class="
addEditButton"
method
=
"post"
>
<
submit
type
=
"button"
value
=
"Edytuj"
/>
</
form
>
</
td
>
</
tr
>
</
script
>