jQWidgets Forums
Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
Author
-
July 7, 2017 at 2:53 pm in reply to: Change the color of the font within the column header Change the color of the font within the column header #94764
Got it!
Here is the code for the column:
{ text: 'Employee #', columngroup: 'ProductDetails', datafield: 'EmployeeNum', width: "14.2%", rendered: changeColor, minwidth: 100 //centers the column header and column cells //cellsalign: 'center', align: 'center' },
Then set the function using a font-weight, font-style, color, etc:
function changeColor (header){ header.css('font-weight', 'bold'); header.css('color','#ffffff'); };
This styles the text within the header column only
July 6, 2017 at 5:30 pm in reply to: How to center align a glyphicon within a cell How to center align a glyphicon within a cell #94749Perfect. Thanks!
June 22, 2017 at 6:51 am in reply to: Inserting a Bootstrap Glyphicon within a jqxgrid Inserting a Bootstrap Glyphicon within a jqxgrid #94476I was able to get the icons to appear. Here is the updated code.
columns: any[] = [ { text: 'Edit temp', columngroup: 'ProductDetails', datafield: 'EditTemp', width: "14.2%", minwidth: 100 cellsrenderer: function (row, columnfield, value, defaulthtml, columnproperties) { return glyphiconGridButton('edit-prospect', 'Edit temp', 'edit', row); } },
Followed by the function
function glyphiconGridButton(cssclass, label, image, id) { return '<div style="width: 100%; text-align: center; padding-top: 2px;">' + '<button class="btn btn-info btn-xs jqxgrid-button ' + cssclass + '" aria-label="' + label + '" data-id="' + id + '">' + '<span class="glyphicon glyphicon-' + image + '" aria-hidden="true"></span>' + '<span class="sr-only">' + label + '</span>' + '</button>' + '</div>'; }
However, I would like the glyph icon to be clickable and not work as a text feild. I want to link to another html page when you click the glyph icon. The html page in question is employee.edit.html. All within the same root folder.
June 22, 2017 at 2:35 am in reply to: Inserting a Bootstrap Glyphicon within a jqxgrid Inserting a Bootstrap Glyphicon within a jqxgrid #94469Here is my new code based on this plunker I found here. plunker
However, it does not work correctly. Am i missing something?columns: any[] = [ { text: 'Edit temp', columngroup: 'ProductDetails', datafield: 'EditTemp', width: "14.2%", minwidth: 100, cellsrenderer: function (row, columnfield, value, defaulthtml, columnproperties) { return glyphiconGridButton('edit-prospect', 'Edit temp', 'edit', row); } },
June 16, 2017 at 3:48 pm in reply to: Applying a theme to a jqxgrid Applying a theme to a jqxgrid #94377Got it!
<jqxGrid [width]='1505' [source]='dataAdapter' [pageable]='true' [height]='500' [editable]='true' [columns]='columns' [theme]='"energyblue"'> </jqxGrid>
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)