Bjørn T Johansen a écrit :
> I have a table that has x rows... Each row has n
columns and some of these columns should be a checkbox the
user
> can enable/disable..
> The problem is that only one of the checkboxes for a
column can be enabled, i.e. when the user enable one
> checkbox in one row, if another checkbox in the same
column in another row is enabled it should be disabled (like
a
> radiobutton feature)
>
> Is there a smart way of doing this or do I have to use
an onclick event and do it manually?
>
>
> Regards,
>
> BTJ
>
Easy way:
onclick, javascript. However, a user with javascript
disabled will
override this and allow multiple row selected, be carefull
smart way: create a custom component that has this behaviour
and check
only one row is selected
really smart way: considering the notion of "selecting
a row of
datatable" has been raised countless time on this
mailing list, i doubt
there isn't an open source library with alreay such a
component
|