Hello,
Thank you for recommendation – we will consider this feature and let you know about our decision.
Kind Regards,
Will
Guriddo Support Team
Hello,
Addition to the previous post is using a error function in case the request fail. So the final code is:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
$("#grid").navGrid('#pager', {...}, //params { // edit onclickSubmit : function() { $('#loadingmessage').show(); }, afterComplete : function() { $('#loadingmessage').hide(); }, errorTextFormat: function (data) { $('#loadingmessage').hide(); return 'Error: ' + data.responseText; } } , { ... } // do the same for add }) |
Guriddo Support Team
Hello,
We understand the problem and will try to do a similar implementation which will replace the jQuery UI solution only.
Kind Regards,
Will
Guriddo Support Team
Hello,
In current implementation you can edit form while posing to the server, but the Submit button is disabled so that instead of changes the user can not click the submit.
To add a visual implementation of processing you can use two events by example onclickSubmit and afterComplete to init the ajax working message and hide them after the request is completed.
Suppose you have added a html in your page like this:
|
1 2 3 |
<div id='loadingmessage' style='display:none'> <img src='loadinggraphic.gif'/> </div> |
Then you can do
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$("#grid").navGrid('#pager', {...}, //params { // edit onclickSubmit : function() { $('#loadingmessage').show(); }, afterComplete : function() { $('#loadingmessage').hide(); } } , { ... } // do the same for add }) |
You can add and position the loading div where you want – in the body or in the form..
Hope this help
Kind Regards
Will
Guriddo Support Team
Hello,
We have already this feature in Bootstarp and it will be avialble in the next release, which will be published very soon.
Here is the addition:
It is named colMenu and one of the property is column reordering hide/show which is supported in Bootstrap.
Regards
Guriddo Support Team
Hello,
We have a demo which work file. You can look at this example
I think that is something wrong with your server response and how the data is send to the client.
Kind Regards,
Will
Guriddo Support Team
Hello,
As we write the problem is fixed and it will be avilable next week when we publish ne release.
Thank you for the patience
Kind Regards,
Will
Guriddo Support Team
Hello,
The reason not to run buildSelect are mainly two
Be a sure that both are meet.
You do not answer our question – which version of jqGrid and jquery are used?
Kind Regards,
Will
Guriddo Support Team
Hello,
If you do console.log(response) in buildSelect what you see?
just alert the response in buildSelect and see what is?
Regards
Guriddo Support Team
Hello,
First which version is used?
Which jQuery version is used?
There is nothing special we just use standard jQuery ajax.
the code behind this is something like this:
|
1 2 3 4 5 6 7 8 |
$.ajax($.extend({ url: $.isFunction(options.dataUrl) ? options.dataUrl.call($t, rowid, vl, String(options.name)) : options.dataUrl, type : "GET", dataType: "html", data: $.isFunction(postData) ? postData.call($t, rowid, vl, String(options.name)) : postData, context: {elem:elem, options:options, vl:vl}, success: function(data){ .... |
You can test what is returned from this if yo do not use jqGrid.
Make simple ajax call like this and see the response
Kind Regards,
Will
Guriddo Support Team
Hello,
To be a clear BinDDInfo is a function or url?
If the dataUrl is function it should return URL string and not data.
In ajaxSelectOptions add error function like this
|
1 2 3 4 5 6 7 8 9 |
...jqGrid({ ... ajaxSelectOptions : { error : function(xhr, status, error) { alert(error); }, ... } ... |
Regards,
Will
Guriddo Support Team
Hello,
We have tested your code and it seems to work as expected.
The main reason that you do not load data is that the expression:
dataUrl: “Data.aspx/BindDDInfo”
is not valid url. You can very easy see this in debug console using Chrome or FireBug or newer IE.
Kind Regards,
Will
Guriddo Support Team
Hello,
We can not reproduce the problem. To demonstrate that it is working we have prepared your example. Here is the demo.
All the exports working fine.
Not sure, but in your data you have one array more. This should look something like:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
$data = array (0 =>array ( 'Id' => '369', 'Name' => 'Test user', 'CompanyId' => '0', 'CompanyName' => 'Test Company', 'CostCenterId' => '0', 'CostCenterName' => NULL, 'SubprojectId' => '1787', 'SubProjectName' => 'Test subproject name', 'SubProjectNamePart' => 'Osaprojekti', 'BillabilityTypeId' => '0', 'ProjectId' => '4178', 'ProjectName' => 'Test project name', 'AccountId' => '4916', 'AccountName' => 'Test account name', 'A1_InvoicedHours' => '0.00', 'B1_HoursInvoicedPrice' => '10.50', 'B2_HoursPriceListPrice' => '0.00', 'C1_InvoiceableItems' => '0.00', 'C2_InvoiceableMaterials' => '0.00', 'D1_InvoiceableItemsPrice' => '0.00', 'D2_InvoiceableItemsPrice' => '0.00', 'E_Sales' => '0.00', 'F1_MaterialSales' => '3.00', 'F2_MaterialSales' => '3.00', 'G_TravelInvoiceSales' => '0.00', 'A2_Hours' => '0.00', 'H_HourCost' => '0.00', 'I1_MaterialPurchases' => '0.00', 'I2_MaterialPurchases' => '0.00', 'J_TravelInvoicePurchases' => '0.00', 'K1_Profitability' => '10.50', 'K1_Profitability' => '10.50', 'K2_Profitability' => '13.50', 'K2_Profitability' => '13.50', 'L1_ProfitabilityPercent' => '100.00', 'L1_ProfitabilityPercent' => '100.00', 'L2_ProfitabilityPercent' => '100.00', 'L2_ProfitabilityPercent' => '100.00', 'M1_AverageHourlyRate' => NULL, 'M1_AverageHourlyRate' => NULL, 'M2_AverageHourlyRateInvoicedHours' => NULL, 'M2_AverageHourlyRateInvoicedHours' => NULL, 'N_TargetPrice' => '0.00', ), ); |
Kind Regards,
Will
Guriddo Support Team
Hello,
It was better if you have created a new thread, but I will answer here.
The options connected with this are modal and overlay.
By default modal is set to false and the overlay has a value 30.
If you set the overlay to 0 background will be not gray.
Unfortunately we do not support gray background only for the parent grid when in edit form mode.
You can play with modal true and overlay set to 0.
Kind Regards,
Will
Guriddo Support Team
Hello,
Sorry, there was a error i n my code. The event should return true.
The final code is:
|
1 2 3 4 5 6 7 8 |
$refreshtoday = <<<ENDTODAY function() { jQuery(“#detail”).trigger(“reloadGrid”); return [true,""]; } ENDTODAY; $grid->setNavEvent('add','afterSubmit', $refreshtoday); |
Note the return of the javascript code.
Sorry again for the mistake.
Kind Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top