Hello,
As far as I understand if you have defined your own validation error, then it is a good idea at end of this procedure to do:
validationCell : function(element, msg, iRow, iCol) {
// do something here
…
element.focus();
}
This will focus the cell and after esc or other action it should be closed.
We will try to investigate this situation.
The process is a little bit complex for errorCell, since we do not pass here the element.
For inline edit mode when valiadation fail the dialog should be positioned below the edited row. We test this and it works.
The problem is when a server error occur – in this case the dialog is not positioned – we will fix this.
For inline edit when error from server you can use errorfunc passed as parameter of the editRow or saveRow.
We will include similar event on validation error in inline edit
Kind Regards,
Will
Guriddo Support Team
Hello,
Should we think that the other problems you have are resolved.
Note that the export is done server side.
We have a lot of examples for export.
Go here
and select Export tab from the Accordion.
Check if you have set correct paths to the modules.
Kind Regards,
Will
Guriddo Support Team
Hello,
We have plans to port the whole jqgrid.jqueryui.js to jqgrid.bootstrap.js which will include all the methods from this module to be written for bootstrap.
Unfortunately I can’t commit to any certain date. We hope to be ready after 3 months – i.e end of September.
Kind Regards,
Will
Guriddo Support Team
Hello,
As promised we have done a lot (almost everything) of work on these problems.
1. All info dialogs when a error from the server or validation error occur are positioned near to the cell.
2. After closing the dialog and the grid parameter restoreCellonFail is set to false the cursor is focused on the field where the error occur.
3. we have defined new event validationCell. We already have defined errorCell event. When a server error occur or your afterSubmit event return false you can use the errorCell to show your own dialog. When validation error occur you can use validationCell event to show your own dialog. Parameter passed to this event are Input element, error message, indexRow and indexCol.
You can test this if you download from GitHub the new build. After unzipping use tje jquery.jqGrid.min.js from js subdirectory.
Just to know if the info (error) dialog is on the user can pres escape to close the dialog.
Kind Regards,
Will
Guriddo Support Team
Hello,
There is a good documentation for datepicker.
1. defaultDate: -10
|
1 2 3 4 |
$( ".selector" ).datepicker({ defaultDate: -10 }); |
2. You may want to look here:
Kind Regards,
Will
Guriddo Support Team
Hello,
In the example provided you can edit and after edit is done you can delete the row.
I have say two possible reloads.
1. If you just do reloadGrid without to change the datatype to json the reload is local
2. If you set datatype to json and then reload the reload is done server side.
I do not understand what you mean.
About the alert message – you may want to see the documentation here
See events – maybe afterSubmit event is a good choice.
You have posted your question in the wrong forum – you post it in PHP, but it should it in JavaScript.
The excel true is available only in PHP edition.
To have export to excel you should create your own navButton add method for this purpose.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the code. This way we can resolve problem much better and faster.
The solution is a little bit trick with the PHP grid.
In your grid options add this
|
1 2 3 4 5 6 7 |
... "grouping"=>true, "groupingView"=>array( "groupField" => array(), "groupDataSorted" => true ) |
or better you setGridOprtions should look like this:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
$grid->setGridOptions(array( "caption"=>"OnWatch Alerts Processor v0.1 Beta", "scroll"=>true, "rowNum"=>20, "sortname"=>"alert_time", "sortorder"=>"desc", "sortable"=>"true", //"rowTotal"=>-1, "height"=>600, "multiSort"=>true, //"loadonce"=>true "autowidth"=>true, //"height"=>"auto", "shrinkToFit"=>false, "colMenu"=>true, "grouping"=>true, "groupingView"=>array( "groupField" => array(), "groupDataSorted" => true ) )); |
Please let us know if this solves the problem.
Kind Regards,
Will
Guriddo Support Team
Hello,
You can use the FormToGrid method
Note that the names in the form should match those into the grid.
This method saves the data to the grid, but not into the server. You must provide your on post to the server in order to save the data to it.
Kind Regards,
Will
Guriddo Support Team
Hello,
If I understand right the problem you may use dataInit change event again for the selects and afterClear event in toolbar filter when a reload is in action.
1.In every select except for the last one use dataInit change event so that if one select is selected make a ajax call with this parameter and fill the next select with the desired data. For this purpose you will need to have a separate php file to get that data for every select. Every select has a id = gs_+ the name from colModel
2. Use afterClear event to release all the data in the seklect except the first
If you have difficulties with this we will try to prepare a example.
Kind Regards,
Will
Guriddo Support Team
Hello,
This is exactly your example
As can be seen reloading is working fine. When you do reload from navigaror we reload the data currently loaded in the local data array.
If you want to reload the fresh data from server you will need to se before this the datatype to json and then do reload. Note that in this case since loadonce is true after loading data from server the datatype again goes to local.
Regards
Will
P.S. Our edit url does not do any save to server it is only for demo.
Guriddo Support Team
Hello,
Please replace all the files – PHP, CSS and Javascript.
Also you should replace the jqGrid DB Drivers too.
The error you have seems to have some old files.
Kind Regards,
Will
Guriddo Support Team
Hello,
In order to help, please provide a simple test case (jqGrid code) with small data.
We can not make solution of this problem using your description.
Kind Regards,
Will
Guriddo Support Team
Hello,
Do you have clear the browser cache after change the code?
Do you use our PHP component or JavaScript only? Where and how you put this code?
Can you please share your code?
Thank you
Guriddo Support Team
Hello,
For delete you should add the same command.
|
1 2 3 |
$grid->setNavOptions('del', array("reloadAfterSubmit"=>false)); ... |
In order to test this add these 3 lines of code of any editable form example and you will see that it will work.
Kind Regards,
Will
Guriddo Support Team
Hello,
All notes and recommendations are reasonable and have sense.
To the end of week we will:
1. Make the position of the dialog near to the cell
2. Will try to focus the cell after closing the info dialog
3. We will define a custom function to be called (which we think is a good solution)
We will notify you about these changes.
Thank you.
Kind Regards
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top