listgrid smartgwt select deselect feature - smartgwt

I use SmartGwt Listgrid to show a list of objects, each object contains many subobjects. So when I click on a specific row, I show a popup that allows me to update this subobject's list.
The second constraint is to allow the user to select many rows, to be merged into one row. For that I use checkbox selection type like the following code :
myListGrid.setSelectionType(SelectionStyle.SIMPLE);
myListGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
All work perfectly for the first load. The problem is when I show / hide the popup, the select/deselect feature of the Listgrid stops functioning. Once the checkbox is clicked, it remains unchanged.
Thank you for your suggestions.

I answering my own question,
After many hours of investigation, the problem is that I mix listGrid of smartGwt and dialogBog of GWT, when I changed DialogBox with Dialog of smartGwt the problem is solved

Related

Vaadin gridpro - select all checkbox - not all checkbox are visually selected

We are using Vaadin gridpro v23.0.2 with Grid.SelectionMode.MULTI.
When I click on the select all check box all the record are selected (getAllSelectedItems), but the interface (view) is not updated, some rows of the list remain unselected. If i call refreshAll on the data provider than the rows are shown as selected. Is it a bug in the gridpro version ?
screenshot
Kind regards,
Raphaƫl
Make sure you have hashCode and equals properly implemented in your data bean; see https://vaadin.com/docs/latest/binding-data/data-provider/#data-binding.data-provider.item-identifiers . If you don't have them, the selection might not show up correctly.

How to select just one row, prevent to unselect item in singleselect mode

My question is very simple but I really didn't find any solution here.
I have a Table setSelectable(true), setMultiselect(false), setImmediate(true).
It works fine by first click and moving through the table using arrows.
But if I click again to the row already having been selected,
then it becomes unselected. How to prevent it?
I'd like to have kept just one row always selected.
As from the Vaadin Book here:
If the user clicks on an already selected item, the selection will deselected and the table property will have null value. You can disable this behaviour by setting setNullSelectionAllowed(false) for the table.
So:
table.setNullSelectionAllowed(false);

Delphi DBGrid disable clicking on another row when editing

I have a dbgrid displaying data from a Ttable and my problem is that when
editing a row in the grid the focus is on the row that I want to edit but I can
still click on another row and edit it. How do I disable clicking on another row
or keep focus on the same row?
Second question is (still on the dbgrid) when I edit a column and double click on that column,
the focus moves to the end of the text line therefor not showing the original text but only showing maybe the last character and spaces.
Please help...
After a while of playing around with this, I've discovered that there's no easy way
to disable the user from moving from the highlighted row (row to edit) when clicking another row.
The best way is to cancel when he clicks on another row, I'm using a TTable and TQuery, so
on the BeforePost event, just do a cancel on your table or query. But you also need to do the
same on the AfterScroll even, just in case.
Thanks for all your help.

SmartGwt - Excel like cell based focus in SmartGwt

I am trying to implement an MS-Excel like functionality in SmartGwt where i can navigate through various cells in a ListGrid using keyboard and edit cells individually.
Currently it is only possible to navigate the grid at a row level, and all editable cells go into edit mode together.
We have a grid that shows stock market data with fields for price, symbol etc. The last field is a button, and users want to navigate to this button using the arrow keys and press enter to execute a buy/sell order.
Thanks for helping

How to create Combobox with multiselect capability?

How to create a Combobox having Multiselect Capability using Jquery?
Does JQuery Combobox has this functionality or Property?
if it helps, take a look http://ivaynberg.github.io/select2/ for multi select values
Edited : I found one more link it's really great http://tameraydin.github.io/jquery-easyselect/
Combobox displays the selected value when its list of options is collapsed. You may want to use multiple selection list.
to use multiple select in combobox you will have to create your own user control using checked listbox, textbox and a button.
and on click of button just make checked list box visible and let the user select items from that checkedListBox and as user select items on it you take those values and concatenate it in textbox with comma seperated. and then again on click on button hide that list box.
as it is on : http://9perhour.co.uk/
which is asking for select technology
some good samples
for jquery:
http://abeautifulsite.net/blog/2008/04/jquery-multiselect/
http://quasipartikel.at/multiselect/
http://www.codeproject.com/KB/ajax/jqueryajax.aspx
for asp.net:
http://www.codeproject.com/KB/user-controls/MultipleSelectionDropDown.aspx
http://www.codeproject.com/KB/webforms/DataGridDropDownList.aspx
http://www.codeproject.com/KB/asp/multiselectdropdown.aspx

Resources