我希望有人可以帮助我。我有一个带有标签帮助器的Telerik网格,正在尝试将命令中的列值用作模板中的参数。
现在,我尝试添加“ new {engId =#EngId#})作为参数,但这似乎不起作用(请参见下文)。请协助。
谢谢。
<kendo-grid name="grid" height="550">
<datasource type="DataSourceTagHelperType.Custom" page-size="20">
<transport>
<read url="@Url.Action("GetAll", "Index")" />
</transport>
<schema>
<model>
<fields>
<field name="EngId" type="Int"></field>
</fields>
</model>
</schema>
</datasource>
<groupable enabled="false" />
<sortable enabled="true" />
<pageable button-count="5" refresh="true" page-sizes="new int[] { 5, 10, 20 }">
</pageable>
<filterable enabled="true" />
<columns>
<column width="150">
<commands>
<column-command text="Edit" name="edit" Template="<a data-toggle='tooltip' title='Edit' class='btn btn-success glyphicon glyphicon-edit ' href='@Url.Action("About", "Home", new {engId = "# EngId#"})'></a>"></column-command>
</commands>
</column>
<column field="EngId" title="EngId" width="40" />
<column field="EnteredBy" title="Entered By" />
</columns>
</kendo-grid>