Hi,
being almost finished with my evaluation on SmartGWT, I would like to state, that at the moment it is a very well thought-out high-quality product.
At first, I was thinking of choosing the Professional edition, but by the end I'm almost definite it must be at least the Power one. If you work with SQL(or any other) databases, real things, no doubt, start with Power edition.
And here's the problem(which I guess in fact is "just my problem") I would like to be solved.
Here's my code:
It works nice. When I click some "roles" cell withing my grid, I get multiple values(provided by selectItem) from option datasource to choose from, by selecting check boxes to the left side of the proposed values.
The values are selected, as it is shown in "setdata.png" attachment and after the saving is made they are successfuly stored in the database and shown in appropriate cells.
When I click back again at this "roles" cell(which correctly displays the saved values), and the selectItem is shown again, none of it's checkbox selections that were previously set "by hand" remain active. It can be seen in "getdata.png".
I guess, it could be done programmatically with selectItem object, by setting the appropriate checkboxes according to the aggregated values in the cell, and if it is so, which methods and events should be involved in this process? Having browsed all the forum, and having done some tries just couldn't find the solution.
Thanks!
being almost finished with my evaluation on SmartGWT, I would like to state, that at the moment it is a very well thought-out high-quality product.
At first, I was thinking of choosing the Professional edition, but by the end I'm almost definite it must be at least the Power one. If you work with SQL(or any other) databases, real things, no doubt, start with Power edition.
And here's the problem(which I guess in fact is "just my problem") I would like to be solved.
Here's my code:
Code:
... SelectItem selectItem = new SelectItem(); selectItem.setMultipleAppearance(MultipleAppearance.PICKLIST); selectItem.setMultiple(true); selectItem.setOptionDataSource(DataSource.get("role")); ListGridField rolesField = new ListGridField("roles", 620); rolesField.setEditorType(selectItem); ... grid.setFields(rolesField, ...);
The values are selected, as it is shown in "setdata.png" attachment and after the saving is made they are successfuly stored in the database and shown in appropriate cells.
When I click back again at this "roles" cell(which correctly displays the saved values), and the selectItem is shown again, none of it's checkbox selections that were previously set "by hand" remain active. It can be seen in "getdata.png".
I guess, it could be done programmatically with selectItem object, by setting the appropriate checkboxes according to the aggregated values in the cell, and if it is so, which methods and events should be involved in this process? Having browsed all the forum, and having done some tries just couldn't find the solution.
Thanks!
Comment