Comments (3)
Fix:
diff --git a/js/grid.base.js b/js/grid.base.js
index 8847daf..e3ffc09 100755
--- a/js/grid.base.js
+++ b/js/grid.base.js
@@ -1384,12 +1384,12 @@ $.fn.jqGrid = function( pin ) {
sort = ts.p.colModel[j].sortable;
if( typeof sort !== 'boolean') {ts.p.colModel[j].sortable = true; sort=true;}
var nm = ts.p.colModel[j].name;
- if( !(nm == 'cb' || nm=='subgrid' || nm=='rn') ) {
- if(ts.p.viewsortcols[2]){
- $("div",this).addClass('ui-jqgrid-sortable');
- }
- }
if(sort) {
+ if( !(nm == 'cb' || nm=='subgrid' || nm=='rn') ) {
+ if(ts.p.viewsortcols[2]){
+ $("div",this).addClass('ui-jqgrid-sortable');
+ }
+ }
if(ts.p.viewsortcols[0]) {$("div span.s-ico",this).show(); if(j==ts.p.lastsort){ $("div span.ui- icon-"+ts.p.sortorder,this).removeClass("ui-state-disabled");}}
else if( j == ts.p.lastsort) {$("div span.s-ico",this).show();$("div span.ui-icon- "+ts.p.sortorder,this).removeClass("ui-state-disabled");}
}
from jqgrid.
Hello,
Thanks.
We know this and we have discussed this before.
To summarize: If you do this, then you can not enable/disable sorting dynamically using setColProp method - i.e
setColProp('myfield',{sortable:true});
Best Regards
from jqgrid.
I suppose that there are more properties that have the same problem. Perhaps move some of the code to an update method that is called by setColProp()?
from jqgrid.
Related Issues (20)
- Header offsetting from the current position HOT 5
- Proposal for new feature - In-place Grid Update HOT 4
- Proposal for improving feature - Dynamic values for "select" formatter HOT 5
- The latest version does not work properly in IE11 HOT 1
- SUGGESTION: Combined export of multiple grids to a single Excel workbook. HOT 2
- config “ coloptions ” is invalid parameter HOT 4
- Method "saveRow" when url is "clientArray",errorfunc or successfunc never fire HOT 4
- Proposal - Get temporary rowData while editing HOT 3
- Problem with custom unformat for simple text columns HOT 2
- Checkbox columns in Cell-Edit mode HOT 3
- When a filter has a default values, all celles after it take this value in case of filter reset HOT 1
- is `String.prototype.substr` deprecated?
- jqGridImport & jqGridExport working synergy HOT 6
- delGridRow errorTextFormat option wont effect when del option returns 500 error HOT 1
- Row number beginning from 2. HOT 5
- `showSummaryOnHide` problem when collapse last subgroup HOT 2
- rownumber start from 2 HOT 1
- editGridRow:The background of the opened window is transparent HOT 1
- Html syntax is wrong closing the table in buildColMenu function HOT 1
- subGrid code cannot handle complex IDs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jqgrid.