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
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});
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
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
You should use oneditfunc: onInlineEdit instead of onEdit: onInlineEdit. See detailes in my answer on the stackoverflow.
Best regards
Oleg
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
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.
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
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
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
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
Hello,
many parts of my old code which you posted will be probably not important for you. You should just define the
Probably you will find the answers on your question in the answer and in this one.
Best regards
Oleg
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:
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
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
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top