jQuery UI Widgets Forums Grid Bind cellvalue on key

This topic contains 4 replies, has 2 voices, and was last updated by  Katashov Dima 10 years, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Bind cellvalue on key #58384

    Katashov Dima
    Participant

    Hello!
    Plz help me some.
    I’m see in your documentation handlekeyboardnavigation function, and i wanna use it, but how i can bind cell value on keys?

    handlekeyboardnavigation: function(event)
                    {
                        var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
                        if (key == 13) {
                            alert('Pressed Enter Key.');
                            return true;
                        }
                        else if (key == 27) {
                            alert('Pressed Esc Key.');
                            return true;
                        }
                    }
    

    Where i can see cell values, rowindex, column for use it?

    Best regards, Dima.

    Bind cellvalue on key #58385

    Dimitar
    Participant

    Hello Dima,

    There is no way to get this information directly but you can call the method getselectedcell (or getselectedcells) in the handlekeyboardnavigation callback to get the selected cell(s) you press a key on.

    Best Regards,
    Dimitar

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

    Bind cellvalue on key #58386

    Katashov Dima
    Participant

    Thank you, but i wanna to make onkey function, when keydown event insert value (value from another cell). How I can do this?

    Bind cellvalue on key #58391

    Dimitar
    Participant

    Hello Katashov Dima,

    In the handlekeyboardnavigation callback function you can call all methods from the grid’s API that suit your purposes.

    Best Regards,
    Dimitar

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

    Bind cellvalue on key #58392

    Katashov Dima
    Participant

    Thank you Dimitar!

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

You must be logged in to reply to this topic.