Hello Akhi,
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:
- columnCssClass – space-separated list of CSS classes to be applied on the data cells of this column
- headerCssClass – space separated list of CSS classes to be applied to the header cell of this column
$(".selector").igGrid({
autoGenerateColumns: false,
columns: [
{ headerText: "Product Name", key: "Name", dataType: "string", headerCssClass: "headerCss", columnCssClass: "colCss" }
]
});
Please let me know if you need any further assistance with this matter.