jQWidgets Forums
Forum Replies Created
-
Author
-
June 9, 2014 at 7:37 am in reply to: jqxdate time integration with knock out validation jqxdate time integration with knock out validation #55576
Hi Dimilitar thanx for your response!!
I am not using JqxValidator plug in for validating date time. I am using knock out validation as you can see. It s functionality working fine with Knock out databind, But failing to display error while validating. I can get error message in firebug but it is not getting display in DOM
June 7, 2014 at 9:01 am in reply to: jqxdate time integration with knock out validation jqxdate time integration with knock out validation #55547and my model:
{
StartDate: ko.observable(getDate()),
EndDate: ko.observable(getDate()).extend({ checkDate: getDate() })
}May 8, 2014 at 5:08 am in reply to: Jqx Grid Reloading in ajax post json Jqx Grid Reloading in ajax post json #54157My jqxgrid :
var grid = $(“#stateGrid”);
var source = {
datatype: “observablearray”,
datafields: [
{ name: ‘StateId’ },
{ name: ‘CountryName’ },
{ name: ‘StateName’ },
{ name: ‘CountryId’ },
{ name: ‘ShortName’ },
{ name: ‘IsActive’ }
],
localdata: vm.StatesList};
var dataAdapter = new $.jqx.dataAdapter(source);
var columns = [
{ text: ‘State Id’, dataField: ‘StateId’, width: 25, hidden: true },
{ text: ‘State Name’, dataField: ‘StateName’, width: 200 },
{ text: ‘Short Name’, dataField: ‘ShortName’, width: 100 },
{ text: ‘CountryId’, dataField: ‘CountryId’, width: 75, hidden: true },
{ text: ‘CountryName’, dataField: ‘CountryName’, width: 180 },
{ text: ‘IsActive’, dataField: ‘IsActive’, width: 100 },
{ text: ‘Edit’, datafield: ‘Edit’, columntype: ‘button’, cellsrenderer: function () {
return “Edit”;
}, buttonclick: function (row) {editrow = row;
var dataRecord = grid.jqxGrid(‘getrowdata’, editrow);
var cm = vm.StateModel;
cm.StateId(dataRecord.StateId);
cm.StateName(dataRecord.StateName);cm.ShortName(dataRecord.ShortName);
cm.CountryId(dataRecord.CountryId);
}
},
{ text: ‘Remove’, datafield: ‘Remove’, columntype: ‘button’, cellsrenderer: function () {
return “Remove”;
}, buttonclick: function (row) {
editrow = row;
vm.StatesList.splice(editrow, 1);
}
}];
baseJqx.grid(grid, dataAdapter, columns, 800);
-
AuthorPosts