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

Attribute binding in editor template

1 Answer 344 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ronald
Top achievements
Rank 1
Ronald asked on 06 Oct 2016, 08:35 AM

 

I have an Ajax bound grid with a simple textbox in the editor template. This works fine with simple value binding.

<input ... data-bind="value:valueproperty" ... />

Now I want to add attribute binding as described here: http://docs.telerik.com/kendo-ui/framework/mvvm/bindings/attr

 

<input ... data-bind="attr:{data-someproperty:someproperty},value:valueproperty" ... />

The template no longer works. It does not even show the value anymore so it looks like the binding fails.

I also tried some variations like:

<input ... data-bind="value:valueproperty, attr:{ 'data-someproperty':someproperty }" ... />

Is this supposed to work at all?

 

 

 

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 10 Oct 2016, 06:52 AM
Hi Ronald,

As stated in the following part of the mentioned documentation article, the value and checked bindings, the corresponding bindings should be used:

http://docs.telerik.com/kendo-ui/framework/mvvm/bindings/attr#important-notes

You can also check out the following online demo showing editable MVVM Grid:

http://demos.telerik.com/kendo-ui/grid/mvvm

I hope this helps, but if it does not, please describe the scenario and the desired functionality in further detail, and send us an isolated runnable project, similar to the one above, that illustrates the issue, so we can inspect it, and provide further more to-the-point suggestions, if the scenario is supported. Thank you in advance.

Regards,
Dimiter Topalov
Telerik by Progress
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Tags
Grid
Asked by
Ronald
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or