diff --git a/source/Ox.UI/css/Ox.UI.css b/source/Ox.UI/css/Ox.UI.css index 3d4a3d51..b5466571 100644 --- a/source/Ox.UI/css/Ox.UI.css +++ b/source/Ox.UI/css/Ox.UI.css @@ -1351,6 +1351,15 @@ Lists height: 10px; margin: 1px 0 0 -1px; } +.OxTableList .OxHead .OxHeadCell .OxColumnStatus { + position: absolute; + right: 45px; + top: 2px; + font-size: 9px; +} +.OxTableList .OxHead .OxHeadCell.OxSelected .OxTitle .OxColumnStatus { + right: 60px; +} .OxTableList .OxHead .OxOrder { float: left; display: none; diff --git a/source/Ox.UI/js/List/TableList.js b/source/Ox.UI/js/List/TableList.js index ff09fb00..633a803f 100644 --- a/source/Ox.UI/js/List/TableList.js +++ b/source/Ox.UI/js/List/TableList.js @@ -1059,6 +1059,14 @@ Ox.TableList = function(options, self) { removeColumn(id); }; + that.setColumnTitle = function(id, title) { + var index = getColumnIndexById(id); + self.options.columns[index].title = title; + if (self.options.columns[index].visible) { + self.$titles[getColumnPositionById(id)].html(title); + } + }; + /*@ resizeColumn resizeColumn (id, width) -> resize column id to width