This question is locked. New answers and comments are not allowed.
Hi,
My grid doesn't filter or group anymore. It correctly rebinds to the data with the comboboxes.
Any ideas? Thanks!
My grid doesn't filter or group anymore. It correctly rebinds to the data with the comboboxes.
Any ideas? Thanks!
<%= Html.Telerik().DropDownList() .Name("comboTarificationOffice") .BindTo((IEnumerable<SelectListItem>)ViewData["tarificationoffices"]).SelectedIndex(0) .HtmlAttributes(new { style = "width: 200px;" }) .ClientEvents(events => events.OnChange("Combo_onChange"))%><%= Html.Telerik().DropDownList() .Name("comboMonths") .BindTo((IEnumerable<SelectListItem>)ViewData["months"]).SelectedIndex(0) .HtmlAttributes(new { style = "width: 200px;" }) .ClientEvents(events => events.OnChange("Combo_onChange"))%><%= Html.Telerik().DropDownList() .Name("comboYears") .BindTo((IEnumerable<SelectListItem>)ViewData["years"]).SelectedIndex(0) .HtmlAttributes(new { style = "width: 200px;" }) .ClientEvents(events => events.OnChange("Combo_onChange"))%><%= Html.Telerik().Grid<VerifyStagingItem>() .Name("Grid") .DataBinding(dataBinding => dataBinding.Ajax().Select("_DataStaging", "Staging")) .Pageable(pager => pager.PageSize(100)) .Sortable() .Scrollable(g => g.Height("800px")) .Groupable() .Filterable()%> <script type="text/javascript"> function Combo_onChange() { var cboTarificationOffice = $('#comboTarificationOffice').data('tDropDownList'); var cboMonths = $('#comboMonths').data('tDropDownList'); var cboYears = $('#comboYears').data('tDropDownList'); var valTarificationOffice = cboTarificationOffice.value(); var valMonths = cboMonths.value(); var valYears = cboYears.value(); var grid = $("#Grid").data("tGrid"); grid.rebind({ idTarificationOffice: valTarificationOffice, year: valYears, month: valMonths }); grid.ajaxRequest(); } </script><% Html.EndForm(); %></asp:Content>