A quick update on the issue: jqGrid doesn't re-sort the options if they are passed to editoptions as a string (i.e., in the example above, value:”:;8:ACME Inc.;3:Basic, LLC;7:Large Corp;2:Simple Organization;4:Testing Organization”).
EDIT: Unfortunately, there is no way to escape colon characters when using the string method, so you can't use any options with a colon in them. Since the object notation is the only way to allow all characters, I would consider the sorting bug to be a major issue.
EDIT 2: The bug with object sorting is apparently inherent to the javascript object implementation: Javascript Object Property Order. Would it be possible to switch over to using a pair of arrays (one for keys, one for values) to support a non-string notation that still allows explicit sorting?
EDIT 3: I just found out that there is undocumented support for custom “delimiter” and “separator” options for the string notation model. Is there a reason they're not included in the wiki documentation, or was that an oversight?
I just ran across one further issue with the idPrefix option: The getDataIDs method has no option for excluding the prefix. It's not the end of the world, since I can write a manual workaround each time I call getDataIDs, but it's still an easy way to get tripped up in coding. Would it be possible to add a parameter to the getDataIDs function to get the IDs back sans prefix (or just make that the default, if there are no real use-case scenarios for including the prefix)?
EDIT: After experimenting more, I found that this issue is actually more of a general problem with all of the grid methods relating to row IDs. Most of them still expect to receive the row ID including the prefix for a parameter, and return the row ID including prefix as a result (where applicable). I can still write workarounds where necessary, but it makes the idPrefix attribute difficult to work with if you're building anything other than a very basic grid.
Thanks,
Inara
Thanks, Oleg. I'll definitely look into your plugin; it looks like it may be exactly what I need. I appreciate both of your responses.
Thanks for getting to this so quickly, Tony. I had one other question (which I supppose is more of a feature request than a bug, if it's not already possible): Is there any way to pass a data/column value other than the row ID with the showLink formatter, or would I need to create a custom formatter for that?
I'm using
I just tried installing the new jqGrid 4.4.1, which purportedly supports jQuery 1.8, but when I try to utilize 1.8 instead of 1.7.2, the navGrid functions still fail for me in Firefox 15 (my primary testing browser). Is anyone else still seeing this issue?
After a long debug/trace session with firebug, I finally found the source of the issue. It appears that the jqGrid 3.6.5 only supports strictly formatted JSON, with quotes around the name and value of each key. I tested flipping back and forth between 3.6.4 and 3.6.5 and dropping/adding the quotes in each to confirm that this was the problem. To use my example from above, the return data must be formatted as follows for jqGrid 3.6.5:
{
Tony,
Unfortunately, I do not have a public webserver available to host a demo file on at this point in time. Is there any chance you could provide the source for v3.6.4 so I could run some tests comparing the two? I have the min version of 3.6.4, but not the source.
Thanks,
Matt
Tony,
I created a very simple, single-column grid, as follows:
Tony,
Thanks for catching that trailing comma (it was being auto-generated by one of our code tools), but it doesn't appear to be what was causing the issue. I removed the comma in question, and the grids are still loading blank, with no associated error messages. The older versions of jqGrid (3.6.4 or less) seem to work with or without the comma in place, and the new versions fails with or without it in place.
Regards,
Matt
Tony,
I currently use that function when I need to restore single rows, but what I'm looking for is essentially a way to call that function for an entire grid (without needing a list of all of the relevant row IDs). It sounds like this is just a feature request at this point.
Thanks,
Matt
One further question: Is there any way to set the width for only the form mode and not the inline edit mode? I now have the issue of controls getting truncated in inline-edit mode when I'm using a fixed-height grid and jqGrid tries to scrunch the columns to create space for a scroll-bar.
Thanks,
Alamei
Aha! Thanks, lupin. I kept running searches for “width” in the documentation, never occured to me to search for “size.”
I would like to second snobo's request for column headers to automatically be aligned according to the colModel alignments. It would make the grid look more natural, and avoid having to call setLabel on every column of every grid.
Thanks,
Matt
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top