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

External Controls and Grids

3 Answers 17 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Perry
Top achievements
Rank 1
Perry asked on 01 Mar 2019, 04:36 PM

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

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 05 Mar 2019, 11:46 AM
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.
0
Perry
Top achievements
Rank 1
answered on 05 Mar 2019, 09:09 PM

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'})"

0
Dimitar
Telerik team
answered on 06 Mar 2019, 12:53 PM
Hello Perry,

The MVVM Source binding does not support this scenario. Instead, the recommended approach is to apply the filter on the 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.
Tags
MVVM
Asked by
Perry
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Perry
Top achievements
Rank 1
Share this question
or