Hello Phaneesh, here we go again:
1. Where did you found that there's a method qx.ui.table.SimpleTableModel.setColumnSortable({int}, {bool}) ? If you used the online API-viewer, notice that the online version represents the API of another (much more recent) qoodxoo version, _not_ 0.6.6 ! 2. You should build "your own" API reference (see 1.) so you have the real thing. The "make api" command should do the job. 3. Back in 0.6.6 you had (have) to override the isColumnSortable([int}) method to create a non-sortable column. So for your problem I've changed your posting below. You could also create your own derived TableModel class which includes the needed methods, but that might be too much for this simple issue. Hope this helped, Peter -------- Original -------- From: Phaneesh N Date: 31.07.2007 18:40 > Hi Peter, > > Here is the code: > > tabStructParameter = new qx.ui.table.SimpleTableModel(); > tabStructParameter.setColumns(["ID", "Name", "Value", "Type"]); > tabStructParameter.setColumnEditable(0, false); > tabStructParameter.setColumnEditable(1, false); > tabStructParameter.setColumnEditable(2, true); > tabStructParameter.setColumnEditable(3, false); > tabStructParameter.setColumnSortable(1, false); > tabStructParameter.setColumnSortable(2, false); > tabParameter = new qx.ui.table.Table(tabStructParameter); > tabParameter.setLeft(0); > tabParameter.setRight(0); > tabParameter.setLeft(0); > tabParameter.setHeight("1*"); > tabParameter.setOverflow("auto"); > tabParameter.setBorder(GROOVE_BORDER); > tabParameter.setAlwaysUpdateCells(true); > tabParameter.setColumnVisibilityButtonVisible(false); > tabParameter.setHeaderCellHeight(20); > tabParameter.setRowHeight(18); > tabParameter.setStatusBarVisible(false); > tabParameter.setColumnWidth(0, 1); > tabParameter.setColumnWidth(1, 300); > tabParameter.setColumnWidth(2, 250); > tabParameter.setColumnWidth(3, 10); > tabParameter.getTableColumnModel().setColumnVisible(0,false); > tabParameter.getTableColumnModel().setColumnVisible(3,false); > > The lines that are highlighted in red is not working. The page will not load > if I put those two lines. > > Please look into the issue > > ----- Original Message ---- > From: Peter Schneider <[EMAIL PROTECTED]> > To: qooxdoo Development <qooxdoo-devel@lists.sourceforge.net> > Sent: Tuesday, July 31, 2007 6:51:23 PM > Subject: Re: [qooxdoo-devel] Table column sorting issue in 0.6.6 > > Hi Phaneesh, > > unfortunately I've forgotten to look at the qooxdoo version number you've > added to your query. > Could you please send me (PM or here in the forum) some code, that you are > using? I think the function/method where you call the setColumnSortable() > method should be enough. > I hope I can re-activate my old 0.6.6 branch and give it a try... > > > /Peter > > -------- Original -------- > From: Phaneesh N > Date: 31.07.2007 13:28 > >> Hi Fabian, >> >> Thanks for the reply. >> How to fix this in the current 0.6.6 code? >> Is there a way to do this? >> >> ----- Original Message ---- >> From: Fabian Jakobs <[EMAIL PROTECTED]> >> To: qooxdoo Development <qooxdoo-devel@lists.sourceforge.net> >> Sent: Tuesday, July 31, 2007 2:13:43 PM >> Subject: Re: [qooxdoo-devel] Table column sorting issue in 0.6.6 >> >> Peter Schneider schrieb: >>> Hi, >>> >>> maybe it's too late, but I've just started catching up my read on this forum >>> after about three weeks of absence... >>> >>> Here's my "workaround"*: >>> >>> The class "qx.ui.table.model.Simple" uses the wrong class to access the >>> EVENT_TYPE_META_DATA_CHANGED constant in the setColumnSortable() method. >>> ("qx.ui.table.TableModel" does not exist anymore). >>> >>> Replace >>> --------<old>-------- >>> this.createDispatchEvent(qx.ui.table.TableModel.EVENT_TYPE_META_DATA_CHANGED); >>> --------</old>-------- >>> by >>> --------<new>-------- >>> this.createDispatchEvent(qx.ui.table.model.Basic.EVENT_TYPE_META_DATA_CHANGED); >>> --------</new>-------- >>> and it works again! >>> >>> >>> /Peter >>> >>> >>> *) I _do_ think this is an _error_ to be fixed in the qooxdoo framework. >>> Anyone around here willing to do it? >>> >> It's not too late, at least for the framework ;-) . I have fixed the >> problem in qooxdoo trunk and the legacy_0_7 branch. >> >> Thanks for the patch, >> Best Fabian >> [...] ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel