Thanks very much for your post Tony.
Hey guys,
Just wondering if anyone has come across a solution for this – would greatly appreciate any input
Cheers,
Michael
I wonder if it is possible to simulate the behaviour you want in this way:
have say 5 columns in the grid
1) a yes/no column A
2) a yes/no column B
3) a yes/no column C
4) a yes/no column D
5) a text column, that comines the results of columns 1-4 and outputs the results to your format.
Make columns 1-4 not visible in the grid, but show up in the edit dialog
Make column 5 visible in the grid, but now show up in the edit dialog
Then, when you save your data from the edit, set the data for column 5 to whatever you want the results of columns 1-4 to say.
I hope that makes sense and helps
Cheers,
Michael
I tried the solution here: http://efreedom.com/Question/1-3865584/JqGrid-Reset-Search-Options
… however _search is still set to true even when i do … postdata._search = false
🙁
Couldn't you just feed the data into the grid as a table with 2 columns (“Table”, and “Data”), so the grid is still the same, but each table will be a different row rather than a column?
Does anyone have any clues about this one? It's got me stumped, and my site goes live in a few days 
Any suggestions or help would be greatly appreciated
Cheers,
Michael
Hi there,
Perhaps you could attach an onkeypress event handler function to the input element.
Hi there,
I've put this functionality in my grid by selecting the input element by its id (if you use firebug you will see that the ID's follow a naming convention), and then calling the javascript focus() method.
Hi Manoj,
You're grid's id is “list” …
jQuery(“#list”).jqGrid({
… but your editCell and restoreRow calls are trying to edit a grid with id of “grid_id” …
jQuery('#grid_id').editCell(iRow, iCol, ed);
… change this to …
jQuery('#list').editCell(iRow, iCol, ed);
i hope that helps
cHeers,
michael
Hi shawn,
can you try …
pager: jQuery('#htmlPager')
… instead of
pager: '#htmlPager'
Cheers,
Michael
Just in case someone else has a similar requirement – the solution I have found was to change the jqgrid common js file.
I changed …
|
1 |
c.resizeStop.call(this,g,d)<br />... with ...<br /> |
|
1 |
c.resizeStop.call(this,c,g,d)<br /><br />... then, i use c in my resizestop function to grab the colmodel |
I would have prefered to do this without changing source code, but couldnt figiure it out 
Hi Rottweiler,
You could also do it client-side, by using a custom validator.
Cheers,
Michael
Hmmm perhaps there is a way to have a single global variable, and set its value to the ID of the subgrid when resize starts.
I'm guessing i'll have to modify jqgrid source code to do this though 
Yep I think your right, if the number of OPTIONs is huge, then it would be best to load them via AJAX when needed.
It would be even better if you prevent loading the OPTIONs a second time if they've already been loaded.
Perhaps, it would be easiest to …
a) Have a seperate SELECT for each of the different types, and hide/unhide the whole select depending on what is selected in the first SELECT
b) When your un-hiding one of these SELECTs, you could check if it has already been loaded,and if not then load it up via AJAX
If i were trying to solve this problem i would …
1) populate the second SELECT with all possible values (eg. all hair colours, all shirt sizes, etc.)
2) attach a function call to the onchange event of the first SELECT
3) in this function, i would loop through all OPTION's in the second SELECT, and make them either hidden or visible, depending on the value of the first select
Maybe theres a better way, just an idea 🙂 I hope it helps!
Cheers,
Michael
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top