jQWidgets Forums

jQuery UI Widgets Forums Grid Empty Columns/Rows

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Empty Columns/Rows #53183

    rharding98
    Participant

    I can’t figure out why my grid is not displaying any results. The columns and rows are there but they are all empty.

    Here is an example:

    http://jsfiddle.net/e6rX2/

    Empty Columns/Rows #53185

    Peter Stoev
    Keymaster

    Hi rharding98,

    The initialization of the source object and the Grid columns is wrong. Please, take a look at: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-datasources.htm to learn how to bind the widget to various data sources.

    Best Regards,
    Peter Stoev

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

    Empty Columns/Rows #53189

    rharding98
    Participant

    Hi Peter,

    I made some changes so it is closer to the JSON example you sent but it’s still not working. Could you please take a look at the jsfiddle again? I would really appreciated it.

    http://jsfiddle.net/e6rX2/

    Thanks,
    Roy

    Empty Columns/Rows #53190

    Peter Stoev
    Keymaster

    Hi Roy,

    Sorry, but your initialization is still completely wrong. The provided code does not use the correct and Documented Syntax. If you want to use jqxGrid or any other widget, then you should use it in the way we demonstrated in all the 600+ samples and help topics. Using properties which does not exist will not create a widget. I am very surprised about your code having in mind that you have 7+ months old Forum topics which use a correct syntax.

    Best Regards,
    Peter Stoev

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

    Empty Columns/Rows #53211

    rharding98
    Participant

    UGH!! Yeah I should have based this jsfiddle more on my existing code. My problem is that the work I did 7 months ago is not working now when it use to. Having a hard time figuring out why it has stopped working. I will build an example closer to what I did before. Sorry for wasting your time.

    Empty Columns/Rows #53212

    Peter Stoev
    Keymaster

    Hi Roy,

    A simple example.

    In the jsfiddle code, you have:

    "Text": "Date of Value",
    "DataField": "EffDOV",
    "Width": "90",
    "CellsRenderer": "",
    "CellsFormat": "d",
    "Hidden": false,
    "ColumnType": "",
    "Aggregates": [""]

    However, none of these is a valid property.

    It should be:

    text: "Date of Value",
    datafield: "EffDOV",
    width: "90",
    cellsrenderer: "",
    cellsformat: "d",
    hidden: false,
    columntype: "",
    aggregates: [""]
    

    The same type of error is observed in the source object’s initialization code.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.