OlegK

Forum Replies Created

Viewing 15 replies - 226 through 240 (of 968 total)
  • Author
    Replies
  • in reply to: exception in click event handler of the cell click #99391
    OlegK
    Participant

    Hello Tony,

    I had problems to create new pool request, because the old one already exists. So all new requests are placed (appended) in the same old pool request (see here). I don't know whether you can apply only one part from the request.

    I posted last time many suggestions to jqGrid which could be interesting for you (in my opinion). Just now I posted the answer

    in reply to: Frozen Column Impressions #99390
    OlegK
    Participant

    Hello!

    I find that you found a good method to do what you need. The problem is that frozen columns is the new feature. After small modifications it can be used in more cases as where it currently used. The method setFrozenColumns tests some criteria and exit in some situaltion like in your case. So one should just deceive it.

    I tought about your problem and now I can suggest you one more method to solve the problem. The demo, which I created for you, demonstrates this. The demo is the modification of my demo from the answer. The main part of code which solve your problem is below:

    $grid.jqGrid('setColProp', 'cb', {frozen: true});
    $grid.jqGrid('setGridParam', {multiselect: false});
    $grid.jqGrid('setFrozenColumns');
    $grid.jqGrid('setGridParam', {multiselect: true});

    OlegK
    Participant

    First of all you should verify whether you have id duplicates, which is not alowed in HTML. If for example you have two rows with the same rowid values then if you try to select one row another row with the same id will be selected. Another problem you could have is use some exotical ids like the empty string “” or undefined value.

    So if you have an issue you should post the full jqGrid definition and the JSON or XML data which you use to fill the grid.

    Best regards
    Oleg

    OlegK
    Participant

    I tried to define column having name:'weekend.amount' and to use “userdata”:{“weekend.amount”:667.0}}. All works without any problem. I used jqGrid 4.3.1. You should post full code and JSON data which reproduce your problem or debug your progrogram more carefully yourself.

    Best regards
    Oleg

    in reply to: onEdit is not called on inline add #99384
    OlegK
    Participant

    You should use oneditfunc: onInlineEdit instead of onEdit: onInlineEdit. See detailes in my answer on the stackoverflow.

    Best regards
    Oleg

    in reply to: Problems with Column Sorting #99375
    OlegK
    Participant

    I understand the problem. I described the workaround in the old answer. To display the sorting icons on the sortable columns always you can follow my other recent answer. You will get the grid like

    or like

    Whether such look will be supported by jqGrid as new feature should decide Tony.

    Best regards
    Oleg

    in reply to: Toolbar Search and Multi Filter Search #99374
    OlegK
    Participant

    I could not help you with PHP code (search_adv.php for example) because I didn't use it myself. I just can see that the code which you posted is written definitively for the simple searching and can't work in your case.

    Probably some PHP developer who read the forum can help you.

    in reply to: Toolbar Search and Multi Filter Search #99372
    OlegK
    Participant

    Hello,

    if you use multipleSearch:true option the information about the filters will be sent in another format (see the documentation). So you have to modify your server code so that you analyse the 'filters' parameter instead of 'searchField', 'searchString' and 'searchOper' which you do currently.

    I don't use PHP myself so I can't give you more code recommendation.

    Best regards
    Oleg

    in reply to: setFrozenColumns HELP!!!!!!!!!!!!!! PLEASE!!!!!!!!!!!! #99364
    OlegK
    Participant

    Everything is easy if one can reproduce the problem.

    You should remove sortable: true option from the grid to be able to use frozen columns: see the modified demo.

    Look at the documentation about the limitations in the current implementation or look the line of jqGrid code.

    Best regards
    Oleg

    in reply to: setFrozenColumns HELP!!!!!!!!!!!!!! PLEASE!!!!!!!!!!!! #99362
    OlegK
    Participant

    Hello,

    the code which you posted gives not so many information because you don't posted the JSON data which can be used to reproduce your problem. The demo use datatype: 'json' and it do work.

    If you post the full code which can be used to reproduce your problem one could find the reason of your problem.

    Best regards
    Oleg

    in reply to: setFrozenColumns HELP!!!!!!!!!!!!!! PLEASE!!!!!!!!!!!! #99357
    OlegK
    Participant

    Hello,

    I want to add one more probelm in your JSON data additionally to the problem described by Tony. The JSON data which you posted one sees that you set the property frozen:true only for hidden column. So no frozen columns will be created and so $grid[0].p._complete will be null. If you want to make your code working without errors in the situation you should use

    if ($.isFunction($grid[0].p._complete)) { $grid[0].p._complete.call($grid[0]); }
    In any way if you want to test setFrozenColumns method you should define at least one non-hidden column having frozen:true.

    Best regards
    Oleg

    in reply to: setFrozenColumns HELP!!!!!!!!!!!!!! PLEASE!!!!!!!!!!!! #99353
    OlegK
    Participant

    Hello,

    many parts of my old code which you posted will be probably not important for you. You should just define the

    in reply to: setFrozenColumns HELP!!!!!!!!!!!!!! PLEASE!!!!!!!!!!!! #99351
    OlegK
    Participant

    Probably you will find the answers on your question in the answer and in this one.

    Best regards
    Oleg

    OlegK
    Participant

    Hello Tony,

    I use ReSharper 6.1 for my projects and find it's suggestions very clear. It can help in one click to fix the problem. If I open the current code of jqGrid I can see many small problems identivied by ReSharper. It's mostly the following:

    • declared, but not used parameters in the function. It's very common problem in the usage of $.each or in the event handlers. For example, the line
    • value assigned, but not used in any execution path. For example the line.
    • declaration of variable in the function with the same name as in the outer scope. For example, declaration i variable which can be easy renamed in j or k to fix the problem.
    • the usage of variables which start with capical character, undescore (_) or the usage of undescore inside of the name.
    • usage of possibly unassigned value.

    Description of all the small problems which are not really errors can get many time, but I could make the most clear and transparent changes (for example the first and the second problems from the list above) for beginning and post the results as a pull request. What do you think about?

    Best regards
    Oleg

    in reply to: Force added row in inline edit to appear before current row #99348
    OlegK
    Participant

    Hello Tony,

    the implementation of the suggested feature is very easy. One can ovewrite the code of like I suggested in the answers here and here, but the best will be if one modifies some lines of the original addRowData method to include support new 'beforeSelected' and 'afterSelected' value of the position parameter.

    I think that the feature will be very practical for many users especially after introducing of

Viewing 15 replies - 226 through 240 (of 968 total)

Stay connected with us in your favorite flavor!