External Controls and Grids

4 posts, 0 answers
  1. Perry
    Perry avatar
    26 posts
    Member since:
    Feb 2019

    Posted 01 Mar Link to this post

    Is there an example of using external controls and MVVM grids?   Specifically I want a button for 'export to excel' and buttons for sorting that are placed outside the grid on the page.

    Something similar to this Jquery example (where there are external buttons for filtering.

    http://dojo.telerik.com/EKumEm/2

  2. Dimitar
    Admin
    Dimitar avatar
    686 posts

    Posted 05 Mar Link to this post

    Hello Perry,

    On the following Dojo, you can find a modified version of the initial example. With it, the same functionality is rewritten with the Kendo UI MVVM syntax and the external filters are also added as part of the ViewModel.

    In general, to get started with using the MVVM syntax, event binding, and events, you could refer to the official documentation:


    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Perry
    Perry avatar
    26 posts
    Member since:
    Feb 2019

    Posted 05 Mar in reply to Dimitar Link to this post

    Thanks, that`s very helpfull

    On another subject on discussing filters....I am able to add a filter directly in the datasource definition....but is is possible to add the filter while binding to the datasource in the grid?

    For Example

     data-bind="source: products.filter({field:'ProductName',operator:'contains',value:'Chef'})"

  4. Dimitar
    Admin
    Dimitar avatar
    686 posts

    Posted 06 Mar Link to this post

    Hello Perry,

    The MVVM Source binding does not support this scenario. Instead, the recommended approach is to apply the filter on the dataSource level.

    Additional information and examples regarding the binder can be found in the related sections:


    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top