Try our conversational search powered by Generative AI!

Set width on dijit.form.FilteringSelect using [DojoWidget(AdditionalOptions)]?

Vote:
 

Hi!

I'm using the [DojoWidget] attribute on my criterion but the rendered dijit.form.FilteringSelect is to small. Can I modify the width using AdditionalOptions with something like below?

[Required]
[DojoWidget(WidgetType = "dijit.form.FilteringSelect",
    SelectionFactoryType = typeof(CategorySelectionFactory),
    LabelTranslationKey = "/criterions/VisitedCategoryCriterion/properties/SelectedCategory",
    AdditionalOptions = "{ selectOnClick: true, style: { width: 25em } }")]

This does not work, but is it possible in some other way?

Thanks!

/Kristoffer

#278427
Apr 13, 2022 11:58
Vote:
 

Can anyone help with this? Thanks!

/Kristoffer

#280166
May 11, 2022 10:52
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.