diff --git a/koGrid-2.1.1.debug.js b/koGrid-2.1.1.debug.js index 32a16b38..afcc7e5c 100644 --- a/koGrid-2.1.1.debug.js +++ b/koGrid-2.1.1.debug.js @@ -2123,9 +2123,9 @@ window.kg.sortService = { // we want to force nulls and such to the bottom when we sort... which effectively is "greater than" if (!propB && !propA) { return 0; - } else if (!propA) { + } else if (!propA && (propA === undefined || propA === null)) { return 1; - } else if (!propB) { + } else if (!propB && (propB === undefined || propA === null)) { return -1; } //made it this far, we don't have to worry about null & undefined diff --git a/koGrid-2.1.1.js b/koGrid-2.1.1.js index a4337943..b1b48f85 100644 --- a/koGrid-2.1.1.js +++ b/koGrid-2.1.1.js @@ -137,7 +137,7 @@ if(dateA');$testContainer.appendTo('body');$testContainer.height(100).width(100).css("position","absolute").css("overflow","scroll");$testContainer.append('
');window.kg.domUtilityService.ScrollH=($testContainer.height()-$testContainer[0].clientHeight);window.kg.domUtilityService.ScrollW=($testContainer.width()-$testContainer[0].clientWidth);$testContainer.empty();$testContainer.attr('style','');$testContainer.append('M');window.kg.domUtilityService.LetterW=$testContainer.children().first().width();$testContainer.remove();};window.kg.domUtilityService={AssignGridContainers:function(rootEl,grid){grid.$root=$(rootEl);grid.$topPanel=grid.$root.find(".kgTopPanel");grid.$groupPanel=grid.$root.find(".kgGroupPanel");grid.$headerContainer=grid.$topPanel.find(".kgHeaderContainer");grid.$headerScroller=grid.$topPanel.find(".kgHeaderScroller");grid.$headers=grid.$headerScroller.children();grid.$viewport=grid.$root.find(".kgViewport");grid.$canvas=grid.$viewport.find(".kgCanvas");grid.$footerPanel=grid.$root.find(".ngFooterPanel");window.kg.domUtilityService.UpdateGridLayout(grid);},UpdateGridLayout:function(grid){var scrollTop=grid.$viewport.scrollTop();grid.elementDims.rootMaxW=grid.$root.width();grid.elementDims.rootMaxH=grid.$root.height();grid.refreshDomSizes();grid.adjustScrollTop(scrollTop,true);},BuildStyles:function(grid){var rowHeight=grid.config.rowHeight,$style=grid.$styleSheet,gridId=grid.gridId,css,cols=grid.visibleColumns(),sumWidth=0;if(!$style){$style=$('#'+gridId);if(!$style[0]){$style=$("