jQWidgets Forums

jQuery UI Widgets Forums Grid Focus the input text in the filterrow

This topic contains 2 replies, has 2 voices, and was last updated by  rajaj 10 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Focus the input text in the filterrow #14431

    williamtourinho
    Participant

    Hi, how can I focus the input text in the filterrow? I had tried “oldSelectedInput.focus();” on bindingcomplete and rendered event’s but it dont focus like a normal .

    It’s my objective is to put the cursor inside the input so the user can write after rendering the grid.
    Thank you!

    Focus the input text in the filterrow #14432

    williamtourinho
    Participant

    I have found the soluction. In the next render the id of the element changes.


    rajaj
    Participant

    CALL the focus twise like below

    $('#popupWindow').on('open', function (event) {
        var ele = $(".jqx-input")[0];
        ele.focus();
    });
    $('#jqxgridCompanyView').on('initialized', function () {
        var ele = $(".jqx-input")[0];
        ele.focus();
    });

    ——————–OR————————

    $('#jqxgridCompanyView').on('initialized', function () {
        var ele = $(".jqx-input")[0];
        ele.focus();
    });
    $('#jqxgridCompanyView').on('bindingcomplete', function () {
        var ele = $(".jqx-input")[0];
        ele.focus();
    });
    
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.