jQWidgets Forums

jQuery UI Widgets Forums Grid getting "this"

This topic contains 1 reply, has 2 voices, and was last updated by  Stanislav 7 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • getting "this" #99109

    shawn
    Participant

    I have editable cells in my grid.
    When they are edited, a function is called:

    $('#jqxgrid').on('cellendedit', function (event) {																	  											
    	functionName(event.args.row);										
    });	

    I would like to capture “this” on the cell that is being edited:

    $('#jqxgrid').on('cellendedit', function (event) {	
    	$(this).action()															  											
    	functionName(event.args.row);										
    });

    but I can’t capture “this”.
    Is there a way?

    getting "this" #99126

    Stanislav
    Participant

    Hello shawn,

    Here is an example of how to get the cell in the cellendedit: Example

    This” is a reserved word by javascript, and it can not be overwritten.

    If this doesn’t answer your question, please explain a bit more what exactly you want to achieve, so we can help you.

    Best Regards,
    Stanislav

    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.