Hello,
Glad to hear that you jhave solved the problem.
Instead of this there was a bug in our code.
The fix is in GitHub , and you can test the behavior. The fix will be available in the upcoming release.
Kind Regards,
Will
Guriddo Support Team
Hello,
For us your code is correct and it should work. We have prepared a similar demo (no subgrid, but it should be the same). See here
Please check if such name in subgrid exists. In case you can’t solve the problem, please prepare a working demo and send it to the support.
Thank you.
Kind Regards,
Will
Guriddo Support Team
When we speak of object we mean object set in the jQuery ajax JavScript function.
As docs say we post a name:value pair in the server. Suppose you have a field defined in colModel and named my_field and this field is editable, then you can get the posted value of that field in PHP like
|
1 2 3 4 5 |
.. $_POST['my_field'] .. |
Do this for the rest of editable fields.
Again, please post any new problem to a new thread
Regards,
Will
Guriddo Support Team
Hello Luigino,
Can you please post in separate threads the above questions?
We recommend this since it is better for all of us.
In this thread we have three different problems, which is really annoying if someone search for certain solution.
Thank you.
Kind Regards,
Will
Guriddo Support Team
Hello,
At end we understand what you mean. Yes, ther was a problem with this. We have found and fix the problem.
It will be available in the next release.
If you have active subscription, please write a e-mail to the support so that can get the fix.
Thank you.
Kind Regards,
Will
Guriddo Support Team
Hello,
Glad to hear that you have found the solution.
You may refer our documentation here See the options and descriptions – especially chapter – What is posted to the server.
Kind Regards,
Will
Guriddo Support Team
Hello,
You do not explain too much.
Maybe I understand what you try to do.
Yes this way it won’t work.
Your way to do this using session is ok, The only thing is that if you change the companyid with some value you should change the session to.
Example:
We have success doing this. Imagine you use our demo. In the demo we use jq-config.php file which in included every where grid.php.
In the config file we use
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
session_start(); ... if(!isset($_SESSION['companyid'])) { $_SESSION['companyid'] = 1; } else { $test = jqGridUtils::GetParam('companyid', false); if($test) { $_SESSION['companyid'] = $test; } } |
Now if you change the companyid be a sure to call jq-config.php with
jq-config.php?companyid=newvalue
This way our autocomplete works with the $_SESSION array
Guriddo Support Team
Hello,
It seems I can not reproduce the problem – speed scroll for me is the same. If you want I can prepare a video on your site) to demonstrate that there is no diffrence.
If you want really to help, please do the following: In the demo of version 5.6 use the css from previous version let say 5.3. Clear the cache and test.
Kind Regards
Will
Guriddo Support Team
Hello,
Sorry, but I do not understand.
Which database driver do you use?
To publish code – ensure that this is a pure text and enclose it with ” ` ”
Kind Regards
Will
Guriddo Support Team
Hello Luigino,
We have fixed this problem and it will be available in our next release.
Until you wait for the fix you can change your code, so that the user can see the error in case there is scroll.
The idea is simple – before to return the error return [false, “Error”] use scrollTop(0) to scroll to the top of form. The id of every edit form if th grid is a combination of :
FrmGrid_ + the id of the grid.
In your demo this should look like:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
custom_func: function (val, nm, valref) { console.log('tryig to get Field1 custom dialog here.... ' + val); if ( isBlank(val) ) { console.log('Field1 is empty'); useCustomDialog = true; // use custom info_dialog! $("#FrmGrid_test").scrollTop(0); return [false, "Field1 is mandatory!"]; } else { console.log('Field1 is not empty'); return [true]; } } |
Kind Regards,
Will
Guriddo Support Team
Hello,
For me, your example is working fine in both cases. I have tested this in Windows and Linux (FireFox, Chrome and Edge on Win10) as per your suggestion using (Shift + scroll)
How you do the scroll – can you please describe step by step detailed how you do this. Please specify browser and OS.
Thank you
Kind Regards,
Will
Guriddo Support Team
Hello Luigino,
I will try to reproduce your problem and will replay ASAP I find a solution.
By the way, if you have a example it will be good to send it to us at: support at guriddo dot net.
Thank you
Kind Regards,
Will
Guriddo Support Team
Hello,
As we say we need a real world example. Pictures does not help.
See my previous post regarding your problem.
Kind Regards,
WIll
Guriddo Support Team
Hello,
Can you please give a example of this problem?
We can’t reproduce your problem.
This demo uses the same settings, bu there is a no problem with the scroll
Thank you
Kind Regards,
Will
P.S. IMHO you have a problem with another CSS or JS which do this behavior in jqGrid.
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top