jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Grid – Initialize 'TimeStamp' Column
Tagged: datagrid control, jqxgrid
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 12 years, 2 months ago.
-
Author
-
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
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
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
Hi,
To display such data in jqxGrid, you may use custom cells rendering.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.