• add ()
    Inserts empty item as first item on the current view and prepare it for editing.

    Example

    // get a reference to the list view widget
    var listView = $("#listView").data("kendoListView");
    // add item
    listView.add();
  • cancel ()
    Cancels changes in currently edited item.

    Example

    // get a reference to the list view widget
    var listView = $("#listView").data("kendoListView");
    // cancel changes in currently edited item
    listView.cancel();
  • clearSelection ()
    Clears ListView selected items and triggers change event.
  • edit (item)
    Edit specified ListView item. Triggers edit event.

    Example

    // get a reference to the list view widget
    var listView = $("#listView").data("kendoListView");
    // edit first list view item
    listView.edit(listView.element.children().first());

    Parameters

    item: Object
    jQuery object containing the item to be edited.
  • refresh ()
    Reloads the data and repaints the list view.

    Example

    var listView = $("#listView").data("kendoListView");
    
    // refreshes the list view
    listView.refresh();
  • remove (item)
    Removes specified ListView item. Triggers remove event and if not prevented calls DataSource sync method.

    Example

    // get a reference to the list view widget
    var listView = $("#listView").data("kendoListView");
    // remove first list view item
    listView.remove(listView.element.children().first());

    Parameters

    item: Object
    jQuery object containing the item to be removed.
  • save ()
    Saves edited ListView item. If validation succeeds will call DataSource sync method.

    Example

    // get a reference to the list view widget
    var listView = $("#listView").data("kendoListView");
    // edit first list view item
    listView.edit(listView.element.children().first());
    // save edited item
    listView.save();
  • select (items)
    Selects the specified ListView item. If called without arguments - returns the selected items.

    Example

    // get a reference to the list view widget
    var listView = $("#listView").data("kendoListView");
    // selects first list view item
    listView.select(listView.element.children().first());

    Parameters

    items: Selector | Array
    Items to select.