or
01.<div class="content-wrapper">02. <div class="search-wrapper">03. @using (Html.BeginForm("Search", "Home", FormMethod.Post, new { id="search-form" }))04. {05. <div class="search-top-panel">06. <input id="tbKeywords" name="tbKeywords" type="text"07. class="k-textbox" style="width: 600px; font-size: 24px;"08. required validationmessage="Enter a keyword"09. placeholder="Enter a Keyword" />10. </div>11. <div class="search-bottom-panel">12. <div class="search-bottom-left-panel">13. @Html.ActionLink("Advance Search Options", "Index", "Home", new { search="adv" }, new { @class="standard-link" } )14. </div>15. <div class="search-bottom-right-panel">16. @(Html.Kendo().Button().Name("btnSearch").Content("Hit It!").HtmlAttributes(new { type = "submit", @class = "k-primary" }))17. </div>18. </div>19. }20. </div>21.</div>01.[HttpPost]02.public ActionResult Search()03.{04. ViewBag.Keywords = Request.Form [ "tbKeywords" ];05. 06. VideoRepository videoRepository = new VideoRepository ( );07. 08. List<string> keywords = new List<string> ( );09. 10. keywords = Request.Form [ "tbKeywords" ].Split ( new char [ ] { ' ', ',' }, StringSplitOptions.RemoveEmptyEntries ).ToList ( );11. 12. IList<Video> lstResults = new List<Video>();13. 14. IList<Video> videos;15. 16. foreach(string keyword in keywords)17. {18. videos = videoRepository.GetAll ( ).Where ( v => v.VIDEO_TITLE.Contains ( keyword ) || v.VIDEO_DESC.Contains ( keyword ) ).ToList ( );19. 20. foreach(Video v in videos)21. {22. if ( !lstResults.Contains ( v ) )23. lstResults.Add ( v );24. }25. }26. 27. ViewBag.Results = lstResults;28. 29. return RedirectToAction ( "Index", new { view = "results" } );30.}01.@if (Request.QueryString["view"] == "results")02.{03. <div class="ui-memberVideolist" style="width: 100%;">04. @(Html.Kendo().ListView<TheWebDevChannel.Models.VideoManagement.Video>(ViewBag.Results)05. .Name("lvMemberVideoList")06. .TagName("div")07. .ClientTemplateId("template")08. .Pageable()09. )10. </div>11.}@(Html.Kendo().Grid<WT_Portal_PMS2.Models.ClockStopsSummary>() .Name("StopGrid") .Columns(col => { col.Bound(o => o.CurrentWaitingBand).Title("Weeks Waited").ClientFooterTemplate("Total"); col.Bound(o => o.DNA).Title("DNA").ClientFooterTemplate("#= sum #"); ; col.Bound(o => o.IP).Title("Admitted").ClientFooterTemplate("#= sum #"); ; col.Bound(o => o.OP).Title("Non-Admitted").ClientFooterTemplate("#= sum #"); ; }) .ToolBar(tools => tools.Excel()) .Excel(excel => excel .FileName("ClockStopsSummary.xlsx") .Filterable(true) .AllPages(true) .ProxyURL(Url.Action("Excel_Export_Save", "IPWLDQ")) ) .DataSource(ds => ds .Ajax() .Aggregates(ag => { ag.Add(p => p.DNA).Sum(); ag.Add(p => p.IP).Sum(); ag.Add(p => p.OP).Sum(); }) .PageSize(25) .Model(m => m.Id(p => p.CurrentWaitingBand)) .Read(rd => rd.Action("_Table", "StopsAnalysis") .Data("specFilter") ) ) .Sortable())I am trying to alter the meber name of a filterdescriptor but get error Unable to cast object of type 'Kendo.Mvc.CompositeFilterDescriptor' to type 'Kendo.Mvc.FilterDescriptor' here
If request.Filters.Any(Function(y) CType(y, Kendo.Mvc.FilterDescriptor).Member.Equals("FranchiseeName")) Then Dim filter As FilterDescriptor = CType(request.Filters.Single(Function(g) CType(g, Kendo.Mvc.FilterDescriptor).Member.Equals("FranchiseeName")), FilterDescriptor) filter.Member = "Franchisee.Name" End If@(Html.Kendo().Chart<WT_Portal_PMS2.Models.OpenClockSummary>() .Name("chart") .Title("Open Clocks by Weeks Waiting") .Theme("bootstrap") .Legend(legend => legend .Position(ChartLegendPosition.Top) .Visible(false) ) .DataSource(ds => ds.Read(read => read.Action("_BarChartp", "Summary") .Data("specFilter") )) .Series(series => { series.Column(model => model.Clocks, model => model.barColour); }) .ChartArea(area => area .Height(350) .Background("transparent")) .CategoryAxis(axis => axis .Categories(model => model.CurrentWaitingBand) .Labels(labels => labels.Rotation(-90)) .MajorGridLines(lines => lines.Visible(false)) ) .ValueAxis(axis => axis.Numeric() .Labels(labels => labels.Format("{0:N0}")) .Line(line => line.Visible(false)) ) .Tooltip(tooltip => tooltip .Visible(true) .Format("{0:N0}") ) )<span>Open Clocks by Weeks Waiting</span> <span class="pull-right badge">C1</span>