jQWidgets Forums

jQuery UI Widgets Forums Grid onClick event handling

This topic contains 4 replies, has 2 voices, and was last updated by  lijgp 11 years, 3 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • onClick event handling #48271

    lijgp
    Participant

    Hi,

    I implemented an edit image icon on Edit button of Jqwidget Grid.Here is my code..

    ` var imagerendererEditForItemDetails = function() {
    return ‘<img src=”/resources/myimages/edit.png” />’;
    };`

    For Grid Edit coloumn…
    ` { text: ‘Action’, columntype: ‘number’, datafield: ‘edit’, width: “5%”,
    cellsrenderer:imagerendererEditForItemDetails, filterable:false,sortable:false}`

    For on click event handler..

    
                editMethod=function(){
                 alert("event worked");
                };

    This code is worked fine for me,In the case of web browser.
    The problem is if I open the same web page in a android browser it does not trigger the on click event..
    If i use button instad of image src it has no problem..
    I have also followed this link,that says grid editing on a mobile device :-
    http://www.jqwidgets.com/jquery-widgets-demo/mobiledemos/jqxgrid/index.htm?%28android%29#demos/jqxgrid/editing.htm
    But does not work for me…

    How can i trigger onclink event for both a pc browser and mobile browser using an image button through cellsrenderer?

    Thanks..

    onClick event handling #48278

    Peter Stoev
    Keymaster

    Hi lijgp,

    If you want to implement such solution the option that we can only suggest you is to use it the way shown on our mobile demo with link button. It would not be possible with an image. Other way is to handle the Grid’s cellclick event and to custom action on it.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    onClick event handling #48279

    lijgp
    Participant

    Ok thanks Peter Stoev.

    Can you post the exact link for that?

    Thanks

    onClick event handling #48280

    Peter Stoev
    Keymaster

    Hi lijgp,

    You have already posted it – the Grid’s Editing demo with the links.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    onClick event handling #48370

    lijgp
    Participant

    Thanks Peter Stoev..
    The problem i was tring with an old version of jqwidgets..i updated to latest version of jqwidgets.Now everything seems to be fine..

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

You must be logged in to reply to this topic.