jQWidgets Forums

jQuery UI Widgets Forums General Discussions Error in online documentation

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Error in online documentation #85186

    swisspen
    Participant

    Hello

    Your page

    http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-datasources.htm

    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
    SP

    Error in online documentation #85191

    Peter Stoev
    Keymaster

    Hi 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 Stoev

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

    Error in online documentation #85196

    swisspen
    Participant

    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.

    Error in online documentation #85199

    Peter Stoev
    Keymaster

    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 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.