PDA

View Full Version : Bug: Manualloaddata in cWebgrid



Roel Westhoff [W4]
3-Mar-2015, 05:30 AM
Df18.1a1

I'm using the OnManualLoadData procedure to load data in a cWebgrid
This works but when i want move a date-type datafield in a cWebColumn or cWebColumnDate the information is mangled. Dates come out wrong (aka 3-3-2015 is converted to 31-3-2003)



Move TimelinePost.Createdate to aTheRows[iRow].aCells[3].sValue


The date information is displayed completely wrong and the sorting is off. Apparently the sTooltip information is imported correctly because if i go to the field in the cWebgrid the correct information is displayed
I tried to reformat the date-information before uploading it into the aTheRows array but the result stays the same

Roel

Harm Wibier
3-Mar-2015, 07:44 AM
Please use ConvertToClient to convert the value into the format that the client expects. Note that the tooltip is showing the raw data (which is on our wish list to change).

Roel Westhoff [W4]
3-Mar-2015, 12:03 PM
Harm,

Thx, lesson learned

Roel