Hi,
I'm creating a button dropdown for one of the columns in my grid for updating:
{ columnKey: "ID", editorOptions: { button: "dropdown", listItems: myData} }
Can someone tell me what's the best way to change font size for the list items in this dropdown?
Thanks!
Hello Jeetendra,
Currently we do not provide option that can set the fon-size based on your requirement.
As Martin said in the beginning of the thread, you can use CSS to do so, as for dynamic changing of the font (based on API call) my suggestion is to use itemTemplate and use a class wrapper that will define your styles. Later on you can do anything with it thanks to the power of JS and jQuery.
www.igniteui.com/.../templates
Let's say that I want to decide my font-size based on a network (API) call.
After this network call completes, I know what font size to set, and now I will initialize my Combo.
Please tell me how to set this font-size dynamically?
Please show me the right option to be set from the options list here: https://www.igniteui.com/help/api/2017.2/ui.igcombo
Regards,
Jeetendra
Will try it out. Thanks, Martin!
I've attached a working sample.
Best regards,Martin PavlovInfragistics, Inc.
I tried using the style above but it does not seem to take for dropdown inside an iggrid. Do I need to do some kind of nesting for this to work? my iggrid has updating feature which has one of the columns as the button dropdown:
features: [ { name: "Updating", editMode: "row", columnSettings: [ { columnKey: "ID", readOnly: true }, { columnKey: "Type", editorOptions: { button: "dropdown", listItems: myTypes} }, ] } ]
Appreciate any help, thanks!