Attribute binding in editor template

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

    Posted 06 Oct 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: 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?

     

     

     

  2. Dimiter Topalov
    Admin
    Dimiter Topalov avatar
    347 posts

    Posted 10 Oct 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:

    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.
  3. Kendo UI is VS 2017 Ready
Back to Top