Great grid Tony. I have configured the grid for an app pretty good but I have a few questions I can not find the answers to in the docs or here.
1. Userdata Totals
Using the New in version 3.1, Toolbars and userdata example I am trying to use this with json.
loadComplete: function() {
var udata = $(â€#a_allâ€).getUserData();
$(â€#t_a_allâ€).html(â€
This bulds the json string as:
{â€pageâ€:â€1″,â€totalâ€:3,â€recordsâ€:â€21″,â€t_winsâ€:â€3509″,…..
But the totals bar shows: Totals Wins:undefined.
Is this a problem with my javascript or php?
2. Change Cell Colors
I have successfully used the afterInsertRow:, setCell function to change the colors of cells. There are about 10 columns though and with a 10 row grid this is a lot of extra code.
I am wondering if this is efficient or if the cell coloring should be done on the php side and passed via the json string?
Note I can’t use row coloring as cells can be different colors for each column.
3. Dynamic Height of Grid
I have the following:
rowNum:10, rowList:[10,20,30], height:185,
This works fine as all 10 rows are shown with no scroll bars. If I change the rowlist on screen to 20 the grid stays the same size but adds scroll bars so that the full 20 rows can be seen. This scroll bar eats into screen real estate so is it possible to dynamic change the height to 370 if 20 rows is selected?
4. Links in Cell Breaks Edit
One of the column has clickable links so that users can go to a new page. This works in that clicking a cell will open the link but it breaks the editing. Rows with links in produce edit page:
Edit Record, Submit Cancel
No data is displayed.
The json file is:
“rowsâ€:[["<a target=\"_BLANK\" href=\"\/widgets.php?stat=100&name=Johnston&valid=3&id=45714\">45714","Yes" ...
I tried wrapping in
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top