jQWidgets Forums

Forum Replies Created

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

  • Aj_s
    Participant

    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


    Aj_s
    Participant

    and my model:
    {
    StartDate: ko.observable(getDate()),
    EndDate: ko.observable(getDate()).extend({ checkDate: getDate() })
    }


    Aj_s
    Participant

    My 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);

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