jQWidgets Forums

Forum Replies Created

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

  • stailer
    Member

    2. uid is a reserved keyword by the Grid’s row object.

    I removed “uid” from my Model and now all is ok.

    Problem Solved , thank you Peter !


    stailer
    Member

    Ok my code :

      <div id="grdProjetsValides" data-bind="jqxGrid: {
    autoheight: true,
    theme: THEME_CURRENT,
    source: projets_valides,
    width: 920,
    columnsresize:true,
    filterable: true,
    editable: true,
    pageable: true,
    sortable: true,
    columns: [
    { text: 'Nom du projet', dataField: 'nom', filterable: true, width: 640 },
    { text: 'Retenu ?', dataField: 'is_retenu', columntype: 'checkbox', editable: true }
    ]
    }">
    </div>

    Sample from my ViewModel :

     $.get(WEBSITEROOT + "/index.php/backoffice/getprojets", function(result) {
    var mappedProjetsValides = ko.utils.arrayMap(result.projets_valides, function(item) { return new projetModel(item); });
    self.projets_valides(mappedProjetsValides);
    });

    Sample from my model :

    var projetModel = function(values) {
    var self = this;
    self.uid = ko.observable(values.uid);
    self.nom = ko.observable(values.nom);
    self.is_retenu = ko.observable(values.is_retenu );
    self.remove = function() {
    return $.post(WEBSITEROOT + "/index.php/backoffice/deleteprojet", { projet: ko.toJSON(self) });
    };
    };

    stailer
    Member

    @dimitar and @aoverton007 : Thank you for your replies : )

    jQWidgets 2.9.1. resolved my problem :

    – Fixed an issue in jqxWindow regarding the dynamic changes of the “isModal” property.


    stailer
    Member

    Ok, i forgot a precision : issue only on Internet Explorer < 9 (my production version is IE8) .
    Then it's maybe normal ?

    in reply to: Extend Widget and Knockout Extend Widget and Knockout #20199

    stailer
    Member

    Ok !

    Thanks for your replies

    in reply to: Extend Widget and Knockout Extend Widget and Knockout #20197

    stailer
    Member

    Yes but i must extend components in my application.

    It’s logic : i must add business functionnalities ! (Rules System, Automatic creation etc…).

    Like in ExtJS or JQuery UI… I can build my owns components. : (

    in reply to: Extend Widget and Knockout Extend Widget and Knockout #20193

    stailer
    Member

    I can extend methods !

    $.exend($.jqx._jqxButton.prototype, {

    MyCustomMethod : function() {
    alert(“Test !”);
    }

    });

    $(“myDiv”).jqxButton(‘MyCustomMethod’);

    With this technique by “extend”, i can’t add a property ?!

    I can too add this method :

    createInstance() {
    this.theme = ‘darkblue’
    }

    But there is a bug… i can’t call parent “createInstance”. A solution ?

    Thanks for your reply !

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