- DataTable
- Bind directly to DB.
- Commits action directly to DB
- ListTable
- Bind to Collection of Objects.
- Commit Changes to Memory Objects.
This will add a new column in the table with check box in the header and a check box in each row. Which enables end user to select different items from the table. In case the user needed to select all the rows, he can simply click on the header check box. Now jspx will automatically disable all the check boxes in the table indicating that the whole rows were selected.
Some people complained about it. They say that they wanted to selected All then unselect some single rows. This requires changes in the data column command control. As jspx preserves backward compatibility it was required to introduce the new behavior while keeping the old one.
This was accomplished by the new attribute selectType , this attribute has one of two values:
- Select
- This is the default value.
- It acts the same way as current.
- Check
- This is the new behavior.
- The check boxes in each row will be check and uncheck instead of being disabled.
By this, the old code is maintained and the new feature is supported!
No comments:
Post a Comment