jQuery UI Widgets Forums Grid access spcific column filterrow textedit

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • access spcific column filterrow textedit #97266

    abasan
    Participant

    how can I access specific column filterrow textedit?
    and also current focused filterrow textedit or current focused filterrow column.

    access spcific column filterrow textedit #97275

    Stanislav
    Participant

    Hello abasan,

    Can you please clarify, what exactly do you mean by specific column filterrow textedit?
    As for the focus, take a look at this Post. I think there is some useful information there for you in this regard.

    Best Regards,
    Stanislav

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

    access spcific column filterrow textedit #97280

    abasan
    Participant

    Hi

    My actual problem is:
    when in grid set

     virtualmode: true,
      pageable: true,
      filterable: true,
      showfilterrow: true,
    

    then when do filter one column , after data Is received from server
    filtered textbox lost focus and if I want change filter value must select filter textbox again

    now if I know name of currently focused filter textbox then I can focus that text in rendered method of grid.

    I finally solved this problem by changing in source code of
    jqxgrid.filter

    and chnge
    Line:7 : Col:10714
    from
    f[0].id = a.jqx.utilities.createId();
    to
    f[0].addEventListener("focus", function () { eval(C.owner.element.id + "_ActiveFilterID='" + "JGF_" + C.datafield + "-" + "'") }); f[0].id = "JGF_" + C.datafield + "-" + a.jqx.utilities.createId();

    also
    Line:7 : Col:14851
    from
    I[0].id = a.jqx.utilities.createId();
    to
    I[0].addEventListener("focus", function () { eval(C.owner.element.id + "_ActiveFilterID='" + "JGF_" + C.datafield + "-" + "'") }); I[0].id = "JGF_" + C.datafield + "-" + a.jqx.utilities.createId();

    and add this code in rendered method of grid

      if (typeof jgrvListGrid_ActiveFilterID != "undefined" && jgrvListGrid_ActiveFilterID != null)
           SetCaretAtEnd($('[id^=' + jgrvListGrid_ActiveFilterID + ']')[0]);
    

    “SetCaretAtEnd” is function that focus textbox and send cursor to end
    “jgrvListGrid” is id of DIV that create Grid on it.

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

You must be logged in to reply to this topic.