Hi All,
I am trying to pass parameters to controller action method from listview. But mvc controller action is not firing.. Script is below.
<script type="text/x-kendo-tmpl" id="titletemplate">
<div class="titleClass">
<input type='checkbox' class='titleCheck' id=${CplGuid} value=${aaaa}" > ${bbbb} </div>
</script>
@(Html.Kendo().ListView<Dcip.KeyVault.Portal.Areas.KeyVaultUI.Models.DownloadKdmPE>()
.Name("titles")
//.Events(events => events.DataBound("OnKeyDataBound"))
.TagName("div")
.ClientTemplateId("titletemplate")
.DataSource(source =>
source.Read(
read => read.Action("xxxx", "yyyy").Data("filterTitles"))
.PageSize(25)
)
.Selectable(selection =>
{
selection.Enabled(true);
selection.Mode(ListViewSelectionMode.Multiple);
})
//.Pageable(pager => { pager.PageSizes(true); pager.ButtonCount(1); })
.Pageable(pager => { pager.PageSizes(new int[] { 10, 20, 25 }); pager.ButtonCount(1); })
)
<script type="text/javascript">
function filterTitles() {
alert('Hi Titles');
return { xxId: 1 ,yyId:1 };
}
</script>
Immediate help would be appreciated.
Regards,
Partha.
I am trying to pass parameters to controller action method from listview. But mvc controller action is not firing.. Script is below.
<script type="text/x-kendo-tmpl" id="titletemplate">
<div class="titleClass">
<input type='checkbox' class='titleCheck' id=${CplGuid} value=${aaaa}" > ${bbbb} </div>
</script>
@(Html.Kendo().ListView<Dcip.KeyVault.Portal.Areas.KeyVaultUI.Models.DownloadKdmPE>()
.Name("titles")
//.Events(events => events.DataBound("OnKeyDataBound"))
.TagName("div")
.ClientTemplateId("titletemplate")
.DataSource(source =>
source.Read(
read => read.Action("xxxx", "yyyy").Data("filterTitles"))
.PageSize(25)
)
.Selectable(selection =>
{
selection.Enabled(true);
selection.Mode(ListViewSelectionMode.Multiple);
})
//.Pageable(pager => { pager.PageSizes(true); pager.ButtonCount(1); })
.Pageable(pager => { pager.PageSizes(new int[] { 10, 20, 25 }); pager.ButtonCount(1); })
)
<script type="text/javascript">
function filterTitles() {
alert('Hi Titles');
return { xxId: 1 ,yyId:1 };
}
</script>
Immediate help would be appreciated.
Regards,
Partha.