PDA

View Full Version : Anyone Implemented Checkboxes in Views?


Dominoble
08-27-2007, 05:38 PM
I've put HTML in the first column to include a checkbox and I've set the ID to be the DocumentUniqueID. With this done, I have Action buttons that will loop through all of the checked rows and perform actions on them. The problem is that when I double-click on the row I get a giant checkbox and not the document. I've moved the column to different places and the same thing still happens.

I've seen some of the sample code in the regular EXT forum but not sure how to implement that in a Domino environment. I don't think I could use a custom renderer insert a checkbox. My guess is that I will need add a listener to the row-dblclick, but where?

Thanks for any help. I can't begin to migrate to ExtND until I have this basic functionality. Expand and Collapse All would be great too.

galdaka
08-28-2007, 03:19 AM
Yes, http://extjs.com/forum/attachment.php?attachmentid=745&d=1182368105

and support across page maintain state. But is not implemented with Ext.nd

Dominoble
08-28-2007, 08:32 AM
How?

RWaters
08-28-2007, 09:19 AM
If you wait a little bit longer, or pick up premium support for SVN access you can use the new grids that Jack wrote, one of them includes a checkbox column.

Take a look at the GridView 3 example in this thread: http://extjs.com/forum/showthread.php?t=6470

We wont be able to make it a part of Ext.nd until it is officially released.

galdaka
08-28-2007, 10:15 AM
Using column renderer for print a checkbox.

RWaters
08-30-2007, 09:09 AM
Ah yes, a renderer would be a great way to work that in. Currently there's not a simple way to pass in your own renderers though that's one of the next things we're working on. I expect in the next version that you'll be able to pass in renderer's that reference a column number or name.

Dominoble
08-30-2007, 10:23 AM
Doesn't that mean I'll have to hand code all of my views with ext instead of using Domino Designer?

RWaters
08-30-2007, 10:25 AM
No, once we put in the updates it would mean adding a single extra column to your view, then defining a renderer for that column that generates checkboxes for you. We're trying to not require any changes to standard views.


Update: Jack and I chatted about this a bit, and we'll work on making it an option so you don't have to add any extra columns or renderers, but you'll have to wait for our next release... no date planned yet.

Dominoble
08-30-2007, 12:40 PM
I know the View?ReadDesign doesn't show whether "Show a Selection Column" or "Allow Selection of Documents" has been checked. Maybe something like checking the header of the first column for the word "checkboxes" or just "X" and then add the checkboxes for that column.

I'd still like to know why the following column formula:
"<input name='checkboxes' type='checkbox' id='"+@Text(@DocumentUniqueID)+"'>"
displays the checkbox and not the document when I double-click a row. This method lets me loop though the boxes that are checked and get the UNID to perform actions on them. If I open the doc in a new window with window.open the docs display fine but if they are opened in a tab they show a super-sized checkbox.

Thanks Rick and Jack.