jQWidgets Forums

jQuery UI Widgets Forums Grid Grid – Initialize 'TimeStamp' Column

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 12 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • Keshavan
    Participant

    Hi Peter,

    How to initialize a TimeSTamp column (with some value) , i have the line in Bold Below,

    var generaterow = function (id) {
    var row = {};
    row[“GroupCompanyId”] = id;
    row[“GroupName”] = ” “;
    row[“Miscellaneous1″] = ” “;
    row[“Culture”] = ” “;
    row[“TimeStamp”]
    return row;

    I have a TimeSTamp column as per Json structure below.

    var source =
    {
    datatype: “json”,
    datafields: [
    { name: ‘GroupCompanyId’ },
    { name: ‘GroupName’ },
    { name: ‘Miscellaneous1’ },
    { name: ‘Culture’ },
    { name: ‘TimeStamp’ }
    ],
    id: ‘GroupCompanyId’,
    url: ‘GroupCompany/GetGroupCompanies’,

    Thanks,

    Keshavan


    Keshavan
    Participant

    Hi Peter,

    Further to my earlier post ,

    1) in my C# class, it’s a property defined as datatype Byte[], column name : Timestamp
    2) the corresponding column type on SQL server , table is defined as ‘timestamp’, it will show the data as binary,

    How to initialize a TimeSTamp column (with some value) for the grid on client side , i have the line in Bold Below,

    var generaterow = function (id) {
    var row = {};
    row[“GroupCompanyId”] = id;
    row[“GroupName”] = ” “;
    row[“Miscellaneous1”] = ” “;
    row[“Culture”] = ” “;
    row[“TimeStamp;
    return row;

    I have a TimeSTamp column as per Json structure below.

    var source =
    {
    datatype: “json”,
    datafields: [
    { name: ‘GroupCompanyId’ },
    { name: ‘GroupName’ },
    { name: ‘Miscellaneous1’ },
    { name: ‘Culture’ },
    { name: ‘TimeStamp’ }
    ],
    id: ‘GroupCompanyId’,
    url: ‘GroupCompany/GetGroupCompanies’,

    Thanks,

    Keshavan

    Grid – Initialize 'TimeStamp' Column #19114

    Keshavan
    Participant

    Hi all,

    I have an Urgent requirement and am struck,

    Let me know how to define Byte array in Grid,
    as i have a byte[] column in my C# class which corresponds to ‘rowversion’ Column type
    in the SQL server Table, to check Concurrency issues.

    Thanks,

    Keshavan


    Peter Stoev
    Keymaster

    Hi,

    To display such data in jqxGrid, you may use custom cells rendering.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.