I have a WebListBox and a Button Column.
I would like to replace the button with a Popup Menu.
Is it possible to read the position of a clicked button?
Do you mean replacing it at runtime ? Why not creating it at design time ?
Can I make a column in a WebListBox where is the ComboBox? It would be perfect.
Can’t I just write it like this?
Var l As WebPopupMenu = New WebPopupMenu
l.AddAllRows("Option 1", "Option 2", "Option 3")
ListBoxUsers.CellValueAt(ListBoxUsers.LastRowIndex, 4) = New l
That’s not possible, at the moment. You’ll have to use cell renderers instead.
Here is how to use them:
And here is how to create them:
I have a few in a GitHub repository, but there is no popupmenu:
Maybe someone wants to contribute?
looks very promising, very promising, very
I think that’s brilliant, thank you Ricardo Cruz
I made a simple “<Select>” element.
The first parameter is options as a string separated by “;”. The second argument is the default value.
Example:
ListBox1.AddRow("1", "")
ListBox1.CellValueAt(ListBox1.LastRowIndex, 1) = New SelectComboBox("Option 1;Option 2;Option 3", "Option 1")
ListBox1.AddRow("2", "")
ListBox1.CellValueAt(ListBox1.LastRowIndex, 1) = New SelectComboBox("Option 1;Option 2;Option 3", "Option 2")
ListBox1.AddRow("3", "")
ListBox1.CellValueAt(ListBox1.LastRowIndex, 1) = New SelectComboBox("Option 1;Option 2;Option 3", "Option 3")
In Sub CustomCellAction, “Value” is the value of the selected option.
I don’t know if the name is correct, but you can use it if someone needs it, you can also share it.
That was quick. Thank you for sharing it!
Fixed errors in SelectComboBox (changed name to SelectsCellRenderer) and made ToggleSwitchCellRenderer