ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: kshipra on March 29, 2017, 03:02:23 am

Title: AddClass not setting color on cell
Post by: kshipra on March 29, 2017, 03:02:23 am

   {
                    type: 'button',
                    label: 'Add Class',
                    listener: function (ui) {
                       
                        var dataIndx = $(".sl_dataIndx").val() ? $(".sl_dataIndx").val() : null;
                   
                        this.addClass({
                            rowIndx: $(".sl_rowIndx").val(),
                            dataIndx: dataIndx,
                            cls: $(".sl_class").val()
                        });
                     
                    }
                },

AddClass button in toolbar has above code. When I inspect the cell it has blue color, but cell is not colored blue

<td class="pq-grid-cell blue" pq-col-indx="2" title="Tom Jones">Tom Jones</td>
Title: Re: AddClass not setting color on cell
Post by: paramvir on March 31, 2017, 02:47:51 pm
Simply adding a class named blue doesn't affect the color of any element, you have to assign required styles to the class in css.