jQWidgets Forums

jQuery UI Widgets Forums Grid Focus problem on custom cell editors

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Focus problem on custom cell editors #114782

    EmilioP
    Participant

    Hi,
    In a grid column I would like to have multiple types of cell editors (jqxDropDownList or jqxTextArea) based on some row properties or cell properties.
    I succeeded in my intent by setting, in the definition of the column, the function createeditor() and columntype: 'custom'.

    The only problem is that, to get the focus in the cell editor, I have to double click in the cell, while I would like to avoid the second click.
    I tried defining the initeditor() function in the column definition and then calling the focus methods but it doesn’t seem to work.
    Any suggestion?

    jqwidgets version used: 11.0.1


    Hristo
    Participant

    Hello EmilioP,

    The second option with the initeditor callback is a good option.
    You could try to recognize which editor is used at the specific moment.
    For example, you could search for their classes as the jqx-dropdownlist class.
    I think you could try to add the logic with the focusing in the setTimeout function.
    Please, provide us with one simple example of your case if you still have troubles with this.

    Best Regards,
    Hristo Hristov

    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.