jQWidgets Forums

jQuery UI Widgets Forums Grid getCellText returns undefined

This topic contains 5 replies, has 2 voices, and was last updated by  assaf.frank123 12 years, 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • getCellText returns undefined #18277

    assaf.frank123
    Participant

    Hi,

    I have a column defined as –

    { text: ‘myDate’, align:’right’ ,datafield: ‘followupdate’, filtertype: ‘date’, columntype: ‘datetimeinput’,width: 150, cellsalign: ‘right’, cellsformat: ‘dd/MM/yyyy’ },

    When I get the data I get a long date & time format.
    I wish to get the same format as displayed.

    I tried using the getCellText method but this returns undefined (row is a valid row number).

    value = $(‘#jqxgrid’).jqxGrid(‘getcelltext’, row, “followupdate”);

    Any ideas what went wrong? or how can I set the value of the cell (after chosing from the calendar) to be the same as displayed?

    Thanks.

    getCellText returns undefined #18285

    Peter Stoev
    Keymaster

    Hi,

    Which version of jQWidgets do you use?

    Best Regards,
    Peter Stoev

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

    getCellText returns undefined #18293

    assaf.frank123
    Participant

    I am using JQWdigets v2.7.0 (2013 -Feb 08).

    getCellText returns undefined #18307

    assaf.frank123
    Participant

    Hi again,

    I have an additional strange date behaviour –

    my column is defined as stated above:

    { text: ‘myDate’, align:’right’ ,datafield: ‘followupdate’, filtertype: ‘date’, columntype: ‘datetimeinput’,width: 150, cellsalign: ‘right’, cellsformat: ‘dd/MM/yyyy’ },

    I wish to iniate the grid values by array so I construct my data source by JS objects –

    row_s843z3247v[“followupdate”] = ’30/12/2013′;

    For some reason the value is not shown correctly and it is shown as – “12/06/2015”..

    Please help me.

    Thanks

    getCellText returns undefined #18326

    Peter Stoev
    Keymaster

    Hi,

    1. “getcelltext” is available in jQWidgets ver. 2.8. The API available for the version that you use is available in the documentation folder of the build that you downloaded. The “getcelltext” is not present there.

    2. When you initialize the datafields array, set type: “date” and format: “dd/MM/yyyy” of your date field.

    Best Regards,
    Peter Stoev

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

    getCellText returns undefined #18360

    assaf.frank123
    Participant

    1. Thanks. I will see how to upgrade the version.
    2. I added the attirbute and it seems to work.

    Thanks again.

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

You must be logged in to reply to this topic.