http://jsfiddle.net/rxb3xmjt/11/
In the above example,Currently values of Quantity is aligned to left in example
How can all the values of Quantity in iggrid be aligned to right?.
Hello Akhi,
I am glad that you find my suggestion helpful.
Thank you for using Infragistics components.
Thank you Vasya!!.Appreciate your help
In order to select only the "Quantity" column the css selector can be modified. Each th has an id containing the column key. If the selector is modified in order to match only values that has an id ending with "Quantity" the new style is going to be applied only to these columns. For example:
th.ui-iggrid-header[id$=Quantity]{ text-align: right !important;}
Your modified fiddle is available here.
Additionally, igGrid has two options that can be used foe applying styles to cells and headers:
// Initialize
$(
".selector"
).igGrid({
autoGenerateColumns:
false
,
columns: [
{ headerText:
"Product Name"
, key:
"Name"
, dataType:
"string"
, headerCssClass:
"headerCss", columnCssClass: "colCss"
}
]
});
I am looking for the contents of the column "quantity" to be right aligned..Can it be done on an event?.
Please provide solution.
Can we do this in columns: attribute of iggrid?..where all "Quantity" columns can be right aligned?