Hi Bill thanks for your feedback. For some more extensive examples you could also check out http://rensodevelopment.blogspot.com/
Yes Tony is “the man”, one of the main reasons for using this grid in our CRM web-app is because of great support. Keep up the great work Tony.
Thanks Tony, I foudn it, for those who have the same question:
Just an observation, not a solution, but when the row is selected it sets aria-selected=”true“, when the next row is selected/clicked it adds aria-selected=”true” to that row as well and does not remove the aria-selected=”true” from the previous/other row(s).
Let me just say these a great questions. I have built a CRM app, using jqGrid everywhere.
Our users love it and performs great. I can highly recommend it and have not had issues with it and Tony's
support and feedback support is excellent. I had trouble with cell editing about a year ago and decided to go
with form editing (modal dialog popup) for all my editing, but I know the cell editing has received a lot of work
and has been improved so cannot speak to what it looks like now.
Since you asked quite a few questions, let me address the Street address, zip code question. What I do this a
lot in places where I want to cram the data together, that in the back-end-DB, is separated, like contact names,
is to have for example the following where I show it for a contact's full name, with the ability to update each,
First, Middle and Last Name in edit/add mode (form edit):
Can you add all fields you may want to “add” by stipulating “hidden: true, hidedlg: true“, and when you want to show it after form has been initialized do :
$('#myGrid').setColProp('ship_via', { hidden: false; hidedlg: false; … });
Of course if you do not know what those field may be this would not work but I cannot imagine that being the case else how would you server-side code know what to return?
In this example I am loading the list of contacts when the grid is defined dynamically by using an Ajax request to fetch a Json string of key-value pairs that is formatted like this:
27619:Renso Hollhumer;41:Annette Roulette;27546:Christopher Hollhumer;27625:Tom Adams
|
1 |
Should your SELECT not rather have a key-value pair, as in 1:Good;2Medium;3:Bad;?
I also have some issues with the filterToolbar (ver.3.4.4) and go through quite a bit of work to set the columns position. For example my first few columns are not searchable so I want to move my first search box to the right, left aligned with the column of the field it represents, here are some examples that may be helpful:
If I understand/assume correctly, the POINIT is posted when retrieving the data when populating the grid, but not when editing or adding the data? “postData” property will not post it when editing, adding or deleting via the navGrid CRUD functions. For that you need to append it to the editUrl as in editUrl: myUrl + '?POINIT=' +$('#POINIT').val();
When you say it works outside of the grid, I am not sure how you or where you tested this, so try and do a console.log with Firebug or alert to show the value of POINIT just before the grid is defined, something like:
console.log($('#POINIT').val());
$('#list').jqGrid……
You cannot specify or override the colModel properties during navigation (i.e. navGrid). You need to attack it during the beforeShowForm event:
Yes Tony that seems to be the case. As long as I sort, page, etc, it works just fine, but as soon as I use the toolbar to enter a search value and hit the search icon or select a value from the toolbar's drop downs with auto search enabled, the append is not adding the value, my guess is the filtergrid event it is not firing at all. It also does not work when clicking the Reload icon and am not sure if it is supposed to. No Martin I never investigated it more, if it is a bug I am sure there is a way to code around it but wanted to get feedback from Tony first. Sorry for the delayed response I was on vacation.
Renso.
Call the cluetip from within the loadComplete event as Kris pointed out. You could also add it to the beforeShowForm event of the navGrid. I used this definitiion in the loadComplete vent that works great:
I just looked at the documentation and it seems it is a feature then
, just the way ti works.
Another question, in stead of manually specifying the
|
1 |
<div class="htmlcode"><span class="elements"><div</span> <span class="attributes">id=</span><span class="codestring">"mysearch"</span>><span class="elements"></span></div><br /><br />I just specified toolbar: <code>[true, "top"],</code><span class="elements">as part of my grid setup, which automatically creates the search div for me, is this <br />wrong or OK to do (it works fine by the way); i.e. a good practice?<br />I then, when referencing the div simply do this:<br /></span><code><span class="elements"><span>$(<span style="color: #3366ff">item</span>.replace('#', '#t_')).filterGrid....</span></span> |
|
1 |
<span class="codestring">(<span style="color: #3366ff">item </span>= #grid_id)</span> |
Works nice Tony, tested it with sorting, etc, and does not seem to cause any issues.
Thank yu Tony, is the recreateFiltera version 3.5 property? I am still on 3.4.4.
Tony I tested the content of the options passed into the editoptions valuie defined in the colModel as well as the values passed back to the grid, and no matter how I format it, it does not work. I have included samples of my code below, but if you have a working example of this can you send it to me as none of the demo versions show this example.
Here is my select tag as I copied it out of firebug:
Website ContactMaterials ContactLad FollowupPayment
Since I thought that the problem may be with my ajax call I rather declared a static list of values to elliminate this as a possible suspect:
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top