Start on the first page, Listview de Telerik

0

I am using the Listview control of Telerik for MVC, on my page I have a Dropdown where the user can select a value, and depending on the selected value is the information that is consulted and displayed in the Listview.

If a query returns a lot of information, it is shown in several pages, if they go to a page from 2 onwards and then select another element of the Dropdown and the new information that returns uses a single page, this page appears blank, it's as if he had stayed on another page and to see the new results they have to click on page 1.

What I would like to know, is what can I do so that whenever I consult new information, the Listview starts on page 1.

This is the control configuration:

@(Html.Kendo().ListView<Modelo.Models.ArticuloViewModel>()
                        .Name("ArticulosListView")
                        .TagName("div")
                        .ClientTemplateId("template")
                        .DataSource(dataSource =>
                        {
                            dataSource.Read(read => read.Action("LeerArticulos", "Articulos").Data("ObtenerDescripcion"));                                
                            dataSource.PageSize(20);
                            dataSource.ServerOperation(false);                                
                        })
                        .AutoBind(false)
                        .HtmlAttributes(new { style = "height:1400px;" })
                        .Pageable()
                        .Selectable(selectable => selectable.Mode(ListViewSelectionMode.Single))
                        .Events(events => events.Change("onChange"))
                        )
    
asked by Juan Alberto 16.02.2018 в 17:55
source

0 answers