jQWidgets Forums

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Grid filterrow Grid filterrow #97889

    abasan
    Participant

    hi

    it was my mistake and component work fine

    sorry for that.

    in reply to: Grid filterrow Grid filterrow #97888

    abasan
    Participant

    hi

    sorry there was a mistake in my writing

    my aim was ‘filterable’ but by mistake I write ‘sortable’

    I set ‘filterable’ to false

    I use last version of component 5.5.0 and check in Firefox and IE and Chrome

    and please make attention that is set grid ‘virtualmode’ property to true

    I write my problem again as follow:

    I have grid with following property

    
     sortable: true,
     filterable: true,
     showfilterrow: true,
                      
     altrows: true,
     enabletooltips: true,
     editable: false,
     editmode: 'selectedrow',
    
     columnsresize: true,
     columnsreorder: true,
                    
     virtualmode: true,
     pageable: true,
    

    by default I set ‘filterable’ to true in grid
    but when I set this property value to false with this code:
    $('#grid').jqxGrid('filterable', false)
    if there was a value in filter fields filterrow do not hide but if filter fields was empty filterrow be hidden.
    I call
    $(‘#grid’).jqxGrid(‘clearfilters’);’
    and also
    $(‘#grid’).jqxGrid(‘clearfilters’,false);’
    before
    $(‘#grid’).jqxGrid(‘filterable’, false)
    too , but my problem do not solved.
    and if call
    $(‘#grid’).jqxGrid(‘showfilterrow’,false);
    when filter fields contain value it made javascript error

    thanks

    in reply to: addrow addrow #97684

    abasan
    Participant

    hello iroshi7e7

    I think you pass row id in correct

    
    var value = $('#jqxGrid').jqxGrid('addrow', rowid, newdata,rowPosition);
    @param row id. Pass null, if you want the new id to be auto-generated or pass a row id.
    @param row data. The expected value is a JSON Object.
    

    if you pass selectedRowindex for new row id it replace selectedRow
    try pass null or row id that is not used before.


    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.

    in reply to: Grid Sort Area Z-index Grid Sort Area Z-index #96697

    abasan
    Participant

    hi

    when mouse over on ‘agrv_DivGridLink1’ the div and all of it’s content bring up by changing z-index of ‘agrv_DivGridLink1’
    by handler onmouseover event.
    and also grid div ‘jgrvGridLink1’ that is child of ‘agrv_DivGridLink1’ bring up

    maybe code in ‘MoveControlToTop’ function was unclear

    assume ‘MoveControlToTop’ function code is bellow code

    
    function MoveControlToTop(ControlName) {
    
             $('#' + ControlName).css('z-index', 900000);
    
     }
    

    thank’s


    abasan
    Participant

    I Corerect this error by change Code

    else {ar = ar.toString()}

    to

    else { if (typeof ar.toString != 'undefined') ar = ar.toString(); else ar = '';}

    in file: jqx-all.js version: 5.3.2 – Line:18 – Col:17611

    but I do not know this change effect any things else or not.

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