jQWidgets Forums

jQuery UI Widgets Forums Angular Focus in jqxGrid input

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 4 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Focus in jqxGrid input #114450

    geromelouie
    Participant

    Hi,

    I have a jqxgrid with columns created dynamically. How can I achieve focusing on a specific cell input (textbox, textarea) programmatically in angular? By focusing, meaning setting the input in edit mode and placing the caret at the last character of the current input value.

    Thanks!

    Focus in jqxGrid input #114457

    Martin
    Participant

    Hello geromelouie,

    Please, check our Angular Custom Column Editor demo.
    You can create a reference to the jqxInput element inside the createeditor callback and use is inside the initeditor callback to call its selectLast method.

    You can set the cell in edit mode by using the begincelledit method of the jqxGrid.

    Best regards,
    Martin Yotov

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

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

You must be logged in to reply to this topic.