jQuery UI Widgets Forums Editors Editor bind Editor with knockout

This topic contains 2 replies, has 2 voices, and was last updated by  Hristo 4 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • bind Editor with knockout #87322

    Edisson
    Participant

    Hello!
    I haven’t found anywhere how can I bind a data to jqxEditor via knockout, is it possible?
    currently it’s not supported in jqxknockout.js, right?
    I’d appreciate any help.

    bind Editor with knockout #87336

    Edisson
    Participant

    the thing is I binded only partly:

    
    input.attr('data-bind', String.format('jqxEditor: {value: {0}.dv}', columnName));
    
    
        var feditor = new ko.jqwidgets.dataBinding({
            name: "jqxEditor",
            source: null,
            disabled: false,
            value: "",
            reset: function () {
                this.disabled = false;
                this.source = null;
            },
            events: ['change'],
            getProperty: function (object, event, eventName) {
                if (eventName == 'change') {
                    return {
                        name: 'val',
                        value: object.host.val()
                    }
                }
            },
            setProperty: function (I, J, K, L) {
                if (J == "source") {
                    I.host.jqxEditor({
                        source: L
                    })
                }
                if (J == "disabled") {
                    I.host.jqxEditor({
                        disabled: L
                    })
                }
                if (J == "value") {
                    I.host.jqxEditor({
                        value: L
                    })
                }
            }
        });
    

    getProperty works fine but setProperty has never been invoked

    why is it so?
    if I screwed up somewhere please give me a hint?

    bind Editor with knockout #87350

    Hristo
    Participant

    Hello Layer,

    The jqxEditor no such property – “source”.
    You could find all properties in our API Documentation.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.