Hello,
Â
Ok. This is exactly your code. Check it here
It seems to me there is a problem with your data.
Enjoy
Â
Regards
Hello,
This is just addition to Oleg’s post. There is a option to do this, but in this case you can get only the last expanded subgrid row.
Look at selectOnExpand option here.
Thanks Oleg.
Â
Kind Regards
Hello,
Â
Take a look of the shrinkToFit option and width option of the grid.
Â
Kind Regards
Hello,
Â
Just to know
|
1 |
formatter: "text |
is very different from
|
1 |
formatter : text |
Â
I suggest to to chosse another name for your custom formatter something like
function mytext (…) {…}
Â
and then
Â
|
1 |
formatter: mytext |
Â
Hope this helps.
Â
Kind Regards
Hello,
Thanks for the feedback and let us know. I’m sure this will help other.
Â
Kind Regards
Hello,
Â
I do not understand What is the problem?
Â
Kind Regards
Hello,
Â
In the last release we have a parameter named focusField which should be a number represented the number of colModel start from 0. If set the desired field should be focused
|
1 |
<span class="function">jQuery</span>(<span class="string">'#list'</span>).<span class="function">jqGrid</span>(<span class="string">'editRow'</span>,id, { keys: true, focusField : 3} ); |
Â
Another possible solution is to try to use oneditfunc which I recommend you in my previous post
|
1 |
<span class="function">jQuery</span>(<span class="string">'#list'</span>).<span class="function">jqGrid</span>(<span class="string">'editRow'</span>,id, {  keys: true,  oneditfunc : function( rowid) {    $("#"+rowid+"_NR").focus();  } <span class="constant">}</span>); |
Â
Kind Regards
Hello,
Using the latest jqGrid version your example works perfectly.
Below are the changes that I have made in order to make this work.
Â
1. In grid options set grouping to true
grouping : true,
2. Disable the loadComplete. Please do not use this with trigger “reloadGrid” – this is selfkilling code.
3. I have added in head section this:
|
1 2 |
<br /> Â #list .jqgrow { height: 40px !important}<br /> |
If you have problems with running this I can put your code online.
Â
Kind Regards
Tony
@upperdeck said:
do i take the lack of replies to mean its a dumb question or noone knows how to do it? it seems like a basic feature that many have been looking for answer too.
Hello,
If you do not know this is a Open Source project and we do not have agreements to answer quick.
This will be changed soon.
Â
Now to the question – If I understand right you will to cut the selects for one field based on the selection of the previous one.
This can not be done automatically using dataUrl.
I recommend you to obtain first all the selects in all fields and the use JavaScript to decrease the elements on it based on the selection – if I understand right.
For this purpose you can bind a change event of the select. To do this I recommend you to use dataInit on which you can bind the event.
Â
Another possible solution is to call your own ajax after the change of the field and fill the next field with the needed data from the server.
Â
Kind Regards
Hello,
Â
1. afterSubmit will never work. This is not function which is grid option, but in form edit one.
2. gridComplete raises every time you reload the grid and query new page and sort it. It is highly recommended not to use it.
3. Check your logic again.
Â
Regards
Hello,
Â
Thanks for feedback.
Â
Regards
Hello,
Â
Thanks for remind me. This is true and it will be fixed for the next release.
Â
Kind Regards
Tony
Hello,
Â
postData is a object and not a string. In your implementation you set it as string.
Â
Regards
Hello,
Use a server side code to do this. We have discussed this many times.
Currently there is no build in way to do this.
Â
Regards
Hello,
Â
I’m not sure that this post is for this forum except that if you use our commertial php/asp.net jqgrid
Â
Regards
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top