EXTJS Combobox : show only NONselected values in dropdownlist for each combo-selection - extjs3

i have an combobox in a gridcolumn and the requirment is to show only nonselected values in the dropdown list for the next combo selection

One possibility is to use the superselectbox. If you want to customize the standard combobox, you can take a look at the superselectbox source code - it is actually extended combobox.

Related

Not able add combobox as edittor for a combobox cell GXT 3.1.2

I want to add a combobox in my grid, which would populate its store(of grid) as user provide the word.
If i am adding a custom abstract cell in to grid, I can able to add combobox as edittor to it. But when i am trying to use combobox cell (need to display text in a input tag/ Editable), Combobox is not adding to Grid.
Mean to say when I click on that column, it's not converting to combobox.
Tried with adding keyuphandler to addHandler method. But It's not coming to that handler.

Tooltip on combox Item

I want a tool tip on the drop down list for combox items. I have a combobox and showing combobox item in that combobox on selected index change of drop down, but it is note helping me too much.
Since my dropdown size is small, and items in the dropdown are very big, it's become difficult for users to select the proper value by seeing this.
If tooltip shown on the individual item, it could be very useful.
If any budy knows answer , Please reply.
Use the ToolTip class for this. An example in code would be:
ToolTip toolTip = new ToolTip();
toolTip.Show(comboBox1.SelectedItem.ToString(), comboBox1);
You can then tie this code to the comboBox1_SelectedIndexChanged event handler.
NOTE: Your ComboBox name may differ from mine.

In GWT need to set the value of list box to the one,that was was selected in other selection

I have a full search panel with listbox whose value are read from DB.when a item in listbox selected and search is made.If the results are not found the search panel is condensed (one more search panel) and in condensed search ,we can change the search criteria ,selected a different item in the list box .after changing the search criteria and if search is made ,when the full search panel appears,the value of the list box in full search panel should be same as the one changed/selected in the condensed search panel.
How can we accomplish this.
In simple - If i have two list boxes, load a list box and set the value of the listbox same the other listbox.If value of one listbox is changed, the other should be changed and the value of this listbox is set with the value selected in the previous one.
I would do the following
//you have something like this
ListBox listbox1;
ListBox listbox2;
//add a change handler
listbox1.addChangeHandler(new ChangeHandler() {
#Override
public void onChange(ChangeEvent event)
{
int index = listbox1.getSelectedIndex();
//do your update code here for listbox2
//like a listbox2.setSelectedIndex(index) or something
}
As far as I see its an easy implementation. Add a value change handler on the first listbox and do whatever you want in onChange method.
Regarding your panel need to be collapsed when there is no search results, you can always use vertical panel and set its height to 100% and add another panel to it or Use Dock Panel and add panels to south or best use disclosure panel and play around with it.

Default value/Item for SWT Combo

A would like to add default text when the drop-down menu is loaded on my view. How can I do this in SWT and JFace?
I'm guessing what you want to do is to show something in the combo when it has been added to the view (it's blank by default until something is selected or typed).
If you want to set a default text displayed until a selection has been made / until the field has been edited, e.g. - Select option -, then you can use:
Combo.setText(String string)
Note, this is not possible if the Combo is SWT.READ_ONLY
If you want to set one of the values in the drop-down as default use the select method:
Combo.select(int index)

Listbox selectionmode=Extended binding to a datatable. Need to get selected items on button click using MVVM light

I have a listbox
<ListBox x:Name="lbFamilies" Margin="41,45,38.25,111" ToolTip="Select the tables to seed" ItemsSource="{Binding ManTntFmly.FmlyList}" ItemTemplate="{StaticResource listBoxTemplate}" SelectionMode="Extended"/>
The FmlyList is a Datatable which is bound using DataBinding.
I need to find out all the items
which have been selected from the
listbox. How do I do that using the
view model?
Additionally, how do I get key's to
be passed instead of the values
during the selection?
Here's a link to a post which should answer your question:Multi Select Listbox