Hi Tony,
Thanks a lot for your quick answer. I have modified my column def like this :
{name:'login', index:'login', width:100, sorttype:'text', editable:true, editrules:{required:true}},
Hi Tony,
I test if the date field is null or blank => $date != “” || $date != ” “
Now I have to use this : if (enddate.charCodeAt(0) == 160 && enddate.length == 1) {
Cheers,
Gael
Hi Tony,
Unfortunately this correction may introduced a bug : I have in my grid some empty cell (date). But when I edit a row and save the empty cell value is not '' but ' ' => then saving this as a date give me an error in my DB. If a field is null we should keep it at null no ?
Hi Tony, any idea or tests that I can do ?
I also tried with 3.6.5 and same behaviour.
The last one : 3.7.1
Hi,
Thanks to take time to check my code.
Here is the line in my grid :
| FZ020822 | 24/06/2010 | plate_5_hampton | Imaging Robot 20 | crystalquick_sw |
When I edit the line the first time I have this code returning from my server through the ajax request :
crystalquick_rw
corning_96 corning_192
crystalquick_sw_nextal
crystalquick_sw+
crystalquick_sw_treated
crystalquick_sw_lbr
greiner sw lbr
crystalquick_sw
crystalquick_hd2
But in this edit form the 1st value of the list ( crystalquick_rw ) is selected and not this one
as expected : crystalquick_sw
If I close the edit form and re-edit the same line (or another line) then the default selected value is the right one comparing
to the value in the grid (in this case it shows crystalquick_sw).
How do you select the default value, with javascript ? Maybe the problem comes from the call of this function which
is not good when there is an ajax request to build the select list ?
Hi,
Thank you for your reply but I may gave a bad explanation of my problem because your answer is not helpfull for me.
My grid column show this value :
Hi I think I have a bit same problem on edit form select default value, see my post http://www.trirand.com/blog/?page_id=393/help/formedit-how-to-set-default-value-of-select-field/
My problem is for having selected by default the current value in the grid. In FF the 1st value of the list is selected, on Safari nothing is selected (select box is white), and on Opera 1st value is selected but the default value is never working (see my post).
Hi,
I have a similar problem : I use a grid and the edit form option. The first time I edit a line in my form I have the GET request which ask the server for the select values => the 1st value is selected by default (and not the current row value). If I close the form and click again on edit => no more Get as select values are kept in memory (recreateForm false by default) and now the default value in the select is OK, and this for all rows I want to edit.
If I set property recreateForm to true => I have a get on the server to get select values each time => the select in the form have by default the 1st value in the list (which is wrong), even if I close and edit again.
My conclusion (on my code here) is that each time there is a get for select value on the server the default value is wrong (the 1st in the list). If we keep this list in memory then all other edition will have correct default value (mean the current value of the row).
On Safari the select have no default value => white, but closing the form and re-editing is ok.
On Opera I have the 1st value by default each time, even if the list is not recreated….
Also my select is like this :
|
1 |
<br />crystalquick_rw<br />corning_96<br /><option value</code><code>='4'>corning_192<br />crystalquick_sw_new1<br />crystalquick_sw_new2</code><code><br /><br />In the row showed to users there is not the value 4 but the associated name : </code><code>corning_192, <br />then jqgrid have to deal with the name to find the current value.<br />Maybe this is the cause ? |
Hi Tony,
I think it could be better to do this auto resizing because :
– if your table contain 10 rows (I have more in my case
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top