Hi,
It is not possible to set the style to other than “DropDown”. It is not saved.
Also I feel that the down arrow should be visible even if not in edit mode.
Best regards,
Wilfred
Hi Luca,
Thanks for having looked at this. Obviously there is something local on my system and probably a tool/plugin i use that is causing this. I will inform you if i find what is causing it. No need to waste more time on this.
Thanks,
Wilfred
Hi Wilfred,
I see. But cannot reproduce, other developers also tried. Questions:
Thanks,
Luca
Hi Luca,
In picture 1 I have the columns collection.
In picture 2 I have changed DropDownStyle to “DropDown” and Visible to “False”. Still no indication that the file has changed.
In picture3 I have added a new column. Notice that now a star, highlighted by my red ring, indicate the file has changed.
Tested on two machines. Same behavior.
Best regards,
Wilfred
Hi Wilfred,
You can set EditMode to EditOnEnter.
I tired to reopen the columns in design mode and change only one property and I get the modified file. Can you try again and let me know please?
Best,
Luca
Hi Luca,
Indeed, I can set the property using the designer. Investigating a little more I see that the file is not marked as changed if I only change properties inside the columns collection. Adding a column will mark it as changed. Giving it a “star” in the designer tab. Strange.
Thanks for the theme mixin. That looks nice. Perfect.
Is it possible to make the combo enter editmode without having to dobble click. Now you have to dobble click and then click it again to make it drop down. Preferably have it enter editmode and drop down with a single click.
Thanks.
Best regards,
Wilfred
Hi Wilfred,
See attached sample. Shows two columns, one with DropDown and the other with DropDownList. The property was set using the designer.
The appearance of the combobox cell can be changed in the theme. When in edit mode it’s simply an edit control inside the cell. When not it edit mode, it’s a rendered <div>. The sample attached included a theme mixin that places a combo down arrow where it would be when in edit mode.
{ "name": "DataGridComboBoxButton", "appearances": { "table-combobox-cell": { "inherit": "table-cell", "states": { "default": { "styles": { "backgroundSize": "20px", "backgroundImage": "combo-arrow", "backgroundPosition": [ "center", "calc(100% - 2px)" ] } } } } } }
You can use “right” instead of “calc(100% – 2px)”, but in that case you’ll see that when in edit mode the arrow is 2px off because of default padding. Using calc aligns it perfectly.
Best,
Luca
Please login first to submit.