Re: Selecting and disabling elements in CellTable

2011-02-04 Thread Greg Dougherty
Hi Jeff, I ended up writing my own version of CheckboxCell (rather, taking the code for it, and making my own class with modifications). First change: I added a boolean field disabled, and a setEnabled call. Second change: I redid render so it has 4 options (checked | unchecked x enabled |

Re: Selecting and disabling elements in CellTable

2011-02-01 Thread Greg Dougherty
Jeff, Don't move the check boxes, just don't render them. So, you're saying when the user selects a group they do not own, I should make the checkboxes disappear, leaving me with an empty column (that, somehow, I'm going to tell to take up EXACTLY as much space as it would if it had checkboxes

Re: Selecting and disabling elements in CellTable

2011-02-01 Thread Jeff Schwartz
On Tue, Feb 1, 2011 at 11:06 AM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Jeff, Don't move the check boxes, just don't render them. So, you're saying when the user selects a group they do not own, I should make the checkboxes disappear, leaving me with an empty column Hi Greg, We

Re: Selecting and disabling elements in CellTable

2011-02-01 Thread Greg Dougherty
Ok, I've got two checkbox columns interspersed between other columns. If I add and delete the checkbox columns based on the current user selection in the first table, then other columns are going to be jumping around. No? Which takes us back to controls moving around, destroying ability to use

Re: Selecting and disabling elements in CellTable

2011-02-01 Thread Jeff Schwartz
On Tue, Feb 1, 2011 at 1:15 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Ok, I've got two checkbox columns interspersed between other columns. If I add and delete the checkbox columns based on the current user selection in the first table, then other columns are going to be jumping

Re: Selecting and disabling elements in CellTable

2011-02-01 Thread Greg Dougherty
Jeff: Column 1 : Column 2 ; Column 3 Column 1 :Column 3 Column 1 : Column 2 ; Column 3 Column 3 has just jumped around. It was at an X offset of 300, then 200, then 300 If I disable column 2, column 3 doesn't move. If I hide column 2, column 3 does move. This makes hiding column 2 a BAD

Re: Selecting and disabling elements in CellTable

2011-02-01 Thread Jeff Schwartz
On Tue, Feb 1, 2011 at 3:38 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Jeff: Column 1 : Column 2 ; Column 3 Column 1 :Column 3 Column 1 : Column 2 ; Column 3 I thought you said column, Geg, not an individual row's cells and naturally I took that then to mean all check boxes within

Re: Selecting and disabling elements in CellTable

2011-02-01 Thread Jeff Schwartz
BTW if you are using paging then you will have to do this in response to a rows range change event which I am not sure is even possible. On Tue, Feb 1, 2011 at 3:59 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: On Tue, Feb 1, 2011 at 3:38 PM, Greg Dougherty dougherty.greg...@mayo.edu wrote:

Selecting and disabling elements in CellTable

2011-01-28 Thread Greg Dougherty
I am trying to use three CellTables to make a Users and Groups panel in my current application. Its purpose is so users can give other users access to resources that they control (in this particular case, choosing which people can see the information you've uploaded to a database). The first

Re: Selecting and disabling elements in CellTable

2011-01-28 Thread Jeff Schwartz
You can use one of the concrete implementations of AbstractSelectionModel to select rows and respond to row selection. CellTables and AbstractSelectionModel instances work hand-in-hand. You connect the selection model to the cell table by calling the table's setSelectionModel method passing an

Re: Selecting and disabling elements in CellTable

2011-01-28 Thread Greg Dougherty
Hi Jeff, Thank you. I added a SingleSelectionModel to my CellTable, and now I can force selection of rows. Any idea how I tell a column of CheckBoxes that they can't accept any clicks? Greg On Jan 28, 10:11 am, Jeff Schwartz jefftschwa...@gmail.com wrote: You can use one of the concrete

Re: Selecting and disabling elements in CellTable

2011-01-28 Thread Jeff Schwartz
From a UI designer's perspective why display a column of check boxes if the user isn't allowed to click them? I wouldn't personally as a designer nor would I like that if I were a user. If the checkbox column is in a cell table that is being rendered in response to the user having selected

Re: Selecting and disabling elements in CellTable

2011-01-28 Thread Deepak Singh
Hi Jeff, Similar problem i am also facing. I want the rows to be selected with focus and then get the selected object for further action. when the table is created appeared first, the focus should automatically go to first row and the row should automatically be selected and as focus moves

Re: Selecting and disabling elements in CellTable

2011-01-28 Thread Greg Dougherty
Well, If they create a group, or select a group that they can modify, then they need the checkboxes. Having them disappear and reappear (rather than be disabled and enabled) violates the principles of UI design that I know and agree with. Starting with the belief that the UI should be stable and

Re: Selecting and disabling elements in CellTable

2011-01-28 Thread Jeff Schwartz
Don't move the check boxes, just don't render them. If all user interfaces we're as rigid as that we wouldn't need a dom api to manipulate and render html on the client. A ui principle you didn't mention is don't expose useless info/ui to users. Look, its your site so I'm just giving you