jQuery UI Widgets Forums Getting Started Unable to get Cell value.

This topic contains 3 replies, has 2 voices, and was last updated by  Martin 2 weeks, 4 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Unable to get Cell value. #112865

    Akhil_Menon
    Participant

    Hello,

    I am trying to capture the value of my cell. I came across another answer and employed the same method, yet it doesn’t work for me. This is the code that I have used.

    $("#grid").jqxGrid(
                            {
                                source: dataAdapter,
                                columnsresize: true,
                                columns: [{ text: 'Available Workflows', datafield: 'Process_Subprocess' },
                                {
                                    text: '', datafield: 'Load', columntype: 'button', width: 100, cellsrenderer: function () { return "Load"; }, buttonclick: function (row) {
                                        var rowName = $('#jqxgrid').jqxGrid('getcellvalue', row, 'Process_Subprocess');
                                        alert(rowName);
                                        var rowIndex = parseInt(row) + 1;
                                        $.fn.validationFunction(rowIndex);                                    
                                    }
                                }
                                ]
                            });

    rowIndex behaves exactly as it should, yet the value of rowName isnt working. Where am I going wrong here?

    Thanks,
    Akhil

    Unable to get Cell value. #112866

    Akhil_Menon
    Participant

    PS: rowIndex functionality was tested by commenting the code of rowName. if the code for rowName is copied under rowIndex, then rowIndex works the way it should and then appears to ignore the rowName code

    Unable to get Cell value. #112875

    Akhil_Menon
    Participant

    Hello,

    I figured it out. My jQuery selector was referencing the wrong grid.

    Thanks

    Unable to get Cell value. #112919

    Martin
    Participant

    Hello Akhil_Menon,

    Thank you for the update!

    Best Regards,
    Martin

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

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

You must be logged in to reply to this topic.