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

Full options binding with single object in Grid with MVVM pattern

3 Answers 29 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 06 Jun 2019, 02:06 PM

Hi,

I'd like to fully bind in MVVM all the options of a kendoGrid widget in one single object coming from viewModel instead of all data-* options.

i tried to extend a custom binding like that

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

it seems it works except for toolbar rendering.

1) Why didn't you think/develop this simply one-object binding by default?

2) What is wrong in my dojo sample?

thanks

3 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 10 Jun 2019, 12:37 PM
Hello,

Straight to the questions on hand.

1) I am not sure such a functionality was requested so far. This was a design decision taken when the binding was developed.

2) The toolbar option should hold an array instead of an observable. Here is a corrected version of the sample.

Regards,
Angel Petrov
Progress Telerik
Get quickly onboarded 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
Marco
Top achievements
Rank 1
answered on 10 Jun 2019, 01:19 PM

thanks Angel,

here my final version should work for any telerik UI widget

http://dojo.telerik.com/EnOzUxIg/4

0
Angel Petrov
Telerik team
answered on 12 Jun 2019, 10:17 AM
Hi,

Thank you for sharing your solution so other community members can benefit from it.

Regards,
Angel Petrov
Progress Telerik
Get quickly onboarded 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
Grid
Asked by
Marco
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Marco
Top achievements
Rank 1
Share this question
or