jQWidgets Forums
Forum Replies Created
-
Author
-
July 2, 2013 at 7:10 am in reply to: Editing + KnockOut + JQWidgets 2.9.1 Editing + KnockOut + JQWidgets 2.9.1 #24309
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 !
June 28, 2013 at 3:15 pm in reply to: Editing + KnockOut + JQWidgets 2.9.1 Editing + KnockOut + JQWidgets 2.9.1 #24142Ok 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) }); };};
June 28, 2013 at 12:08 pm in reply to: Issue isModal with jqWidgets 2.9.0 Issue isModal with jqWidgets 2.9.0 #24108@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.
June 27, 2013 at 9:04 am in reply to: Issue isModal with jqWidgets 2.9.0 Issue isModal with jqWidgets 2.9.0 #23974Ok, i forgot a precision : issue only on Internet Explorer < 9 (my production version is IE8) .
Then it's maybe normal ?Ok !
Thanks for your replies
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. : (
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 !
-
AuthorPosts