Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • Edisson
    Participant

    your example works fine but what I need exactly is that after indent of the first line the next line automatically should be without indent.
    is it possible to do with the lineBreak property as you’ve mentioned?

    in reply to: bind Editor with knockout 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?

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