jQWidgets Forums
Forum Replies Created
-
Author
-
Issue resolved. A delay will do the cell rendering properly for the grid when the need to get the current row heights exists:
setTimeout( function(){ $( "#managementGrid" ).jqxGrid( "refresh" ) }, 500 )
Wait … my fault, the cells are being rendered except getting the row height within the
cellsrenderer:
function by usingrowHeight = $( "#row" + row + "managementGrid" ).height()
is being ignored until after a cell is edited. The purpose of obtaining the current row height is to vertically center the cell’s value. Is there anyway to force knowing each row’s height after the data is populated and prior to editing a cell?March 29, 2017 at 11:51 am in reply to: Vertical alignment in grid cell Vertical alignment in grid cell #92560Thanks for the workaround example! I see the requirements are to use a margin attribute rather then a height attribute within any
cellsrenderer
function. The height attribute was basing itself on the overall grid height and not the current row division height … which is why the each row in the grid would expand on any click until the 100% value was achieved.A
cellbeginedit
function has the ability to get the height of the current row we are doing something in because each row has its own ID generated by jQWidgets. (row0GridName, row1GridName, row2GridName, … ).$( "#row0GridName" ).height()
works fine within anycellbeginedit
function, however, it does not work from within acellsrenderer
function. My guess is because all the cells in the row are being rendered and the height would not be fixed until rendering is done.March 27, 2017 at 2:30 pm in reply to: Vertical alignment in grid cell Vertical alignment in grid cell #92509This does work except for a major problem;
cellTextRenderer = function( row, dataField, value, defaultHTML, columnProperties, rowData ){ return "<table style='width: 100%; height: 100%;'><tr><td style='padding: 0px 4px; vertical-align: middle;'>" + rowData.ActionDescribe + "</td></tr></table>" }
The problem happens when, after the cell is rendered, and I click on a
columntype: checkbox
cell in the grid, all the row heights in the whole grid keep getting bigger on each click. This problem is being caused by theheight: 100%;
Any ideas?
March 27, 2017 at 2:16 pm in reply to: Vertical alignment in grid cell Vertical alignment in grid cell #92507Creating a class like:
.verticalAlign{ vertical-align: middle; }
and then using the cell attribute:
cellclassname: "verticalAlign"
does not work. The text is still rendered at the top of the cell rather than the middle. As mentioned before, I am using the cell attribute:
cellsrenderer: textRenderer
Thank you Peter!
Your fix does indeed work. There is, however, a mistake in my post.
At first I thought that programmatically disabling and then re-enabling a knob was working, even though the re-colorization was not. I was wrong. Once it is re-enabled, certain features stop working correctly. Things like dragging the pointer around, or clicking on a label and expecting the progress bar to correctly change. The knob, and all of its attributes, acts really discombobulated.
October 27, 2015 at 11:27 am in reply to: Totaling the column widths Totaling the column widths #77381That is the grid attribute I was looking for. Thanks!
Gorgeous!
October 7, 2015 at 11:18 am in reply to: Matching active ribbon color to active tab color Matching active ribbon color to active tab color #76526I had already looked at http://jqwidgets.com/themebuilder before posting, but could not find a way to import the ui-darkness theme, nor did I see Ribbon in the samples shown on the page.
Any other ideas?
-
AuthorPosts