This is a migrated thread and some comments may be shown as answers.

ListView autobind false

1 Answer 199 Views
ListView
This is a migrated thread and some comments may be shown as answers.
A
Top achievements
Rank 1
A asked on 06 Jan 2013, 04:16 PM
how call bind/read for list view with auto bind false in mvc?


@(Html.Kendo().ListView(Model).Selectable(p=>p.Mode(ListViewSelectionMode.Single))
    .Name("listView2")
    .TagName("ul")
    .ClientTemplateId("template")
    .DataSource(dataSource => dataSource.Read(read => read.Action("GetCategoryByParent", "Home").Type(HttpVerbs.Post)))
    .AutoBind(false))

1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 07 Jan 2013, 07:49 AM
Hello Made,

You must get reference to the ListView client object datasource instance and call read on it.
listViewInstance.dataSource.read();

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ListView
Asked by
A
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or