Attribute binding in editor template

2 posts, 0 answers
  1. Ronald
    Ronald avatar
    3 posts
    Member since:
    Nov 2013

    Posted 06 Oct 2016 Link to this post


    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:


    <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?




  2. Dimiter Topalov
    Dimiter Topalov avatar
    1067 posts

    Posted 10 Oct 2016 Link to this post

    Hi Ronald,

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

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

    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.

    Dimiter Topalov
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top