PDA

View Full Version : how to change alignment of injected checkbox (selection.checkboxmodel)



Webtel
2 Apr 2012, 11:07 PM
how to change alignment of injected checkbox of a grid panel with checkbox selection model?

if no config is provided, what and how css should be modified?

Im working on 4.0.7

mitchellsimoens
3 Apr 2012, 11:23 AM
What do you mean alignment? Like being right aligned in the column or at a certain index in the columns?

If it's at a certain index you can take a look at the injectCheckbox (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.selection.CheckboxModel-cfg-injectCheckbox) config

Webtel
3 Apr 2012, 8:58 PM
nope. i mean align property. it is align to left. while my custormer wish it to be centered.

PS. I tried to reason with him . but its no use. :)

mitchellsimoens
4 Apr 2012, 4:27 AM
You can mess with the margin-left CSS rule of x-grid-row-checker

Webtel
4 Apr 2012, 6:16 AM
Thanx again,
margin-left:35% works for me