jQWidgets Forums
jQuery UI Widgets › Forums › General Discussions › Error in online documentation
Tagged: Documentation, error, grid example
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 8 years, 10 months ago.
-
Author
-
Hello
Your page
gives a number of examples of code, each time followed by an image of the result.
The final example has this grid:
$("#jqxgrid").jqxGrid( { width: 670, source: dataAdapter, columnsresize: true, columns: [ { text: 'Year', datafield: 'Year', width: 100, minwidth: 90, maxwidth: 150 }, { text: 'HPI', datafield: 'HPI', cellsformat: 'f2', width: 100 }, { text: 'Build Cost', datafield: 'BuildCost', cellsformat: 'c2', width: 180 }, { text: 'Population', datafield: 'Population', cellsformat: 'f2', width: 100 }, { text: 'Rate', datafield: 'Rate', cellsformat: 'f5', minwidth: 100 } ] });
and underneath it the heading:
The result of the above code is:
BUT it shows a grid with Date, S&P500 and NASDAQ – nothing to do with Year, HPI, Build Cost etc etc.While you are fixing this, perhaps you can recommend how I can send the dates in my grid to MySQL when I save each row! Nothing I have tried works.
Regards
SPHi swisspen,a
I see no problem except that 1 sample is 2 times there. Not so big error, right. You can use jQuery’s AJAX function to send any data to a server.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hi Peter, the only problem is that the picture does not reflect the reality of the text above it! I was interested in the date format and treatment in the picture, but the text does not contain that information because it refers to something else.
And I will post the problem I have with js date in a grid cell crashing on update to MySQL elsewhere on the forum. I have done a lot of searching and reading and trying different things for 3 days now with no good result.
Hi swisspen,
1. As I wrote same sample is posted 2 times. Look again at the page and see that there is a Grid with Year, HPI, etc columns.
2. The update process of your MySQL DB does not depend on jqxGrid. It’s a custom logic which only you can write because it is specific to your task. I wrote you that for client-server calls you can use jQuery’s AJAX function. jqxGrid as a Javascript Widget stores dates as Javascript Objects. Whether you will send the Javascript Date object or as a String to your server is also based on your personal preference.Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.