Is a Footer row in a jqgrid selectable/clickable?

后端 未结 3 775
不知归路
不知归路 2021-01-23 16:59

I have a jqgrid that has main rows and a footer row (with userdata loaded) and then a formatter that alters the data in the cells to be linkable. The cells in the main body can

3条回答
  •  温柔的废话
    2021-01-23 17:31

    Here little implementation of this problem, i'm new in jquery and jqgrid, but i had same problem and thanks two posts above of @Oleg and @Mark, Im implemented something like that:

    //Raport1Grid - name of my jqgrid
    //endusers, adminusers,decretusers - name of my rows in colModel
    //Raport1Grid_endusers - GridName_ColumnName

    var endUsers = $("[aria-describedby='Raport1Grid_endusers']").click(function(){
        //remove previous style of selection
        $('.ui-jqgrid-ftable').find('.selecteClass').removeClass('selecteClass');
        //set selection style to cell
        $(endUsers).addClass('selecteClass');    
    });
    

    //Also can get value of selectedCell

     var qwer = $("[aria-describedby='Raport1Grid_endusers']").text();
     alert(qwer);
    

    Demo here http://jsfiddle.net/Tobmai/5ju3py83/

提交回复
热议问题