jQWidgets Forums

jQuery UI Widgets Forums Grid get jqxDateTimeInput object

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 9 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • get jqxDateTimeInput object #76191

    jfritsch123
    Participant

    I would like to use the valueChanged Callback of a jqxDateTimeInput object in a jqxGrid Object.
    I did not find a possibility to get the jquery Object of the jqxDateTimeInput used in a jqxGrid object.
    Thank you for your help!
    Joe

    get jqxDateTimeInput object #76200

    Dimitar
    Participant

    Hello jfritsch123,

    If you mean getting the object of a jqxDateTimeInput cell editor, you can access it in the column createeditor callback function. Here is an example:

    {
        text: 'Ship Date',
        datafield: 'date',
        columntype: 'datetimeinput',
        width: 110,
        align: 'right',
        cellsalign: 'right',
        cellsformat: 'd',
        createeditor: function(row, cellvalue, editor, celltext, cellwidth, cellheight) {
            editor.on('valueChanged', function(event) {
                alert('New date: ' + event.args.date);
            });
        }
    }

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.