gseroul

Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Author
    Replies
  • in reply to: Sort by clicking on column header does not work #98424
    gseroul
    Participant

    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}},

    in reply to: Empty cell with date formatter give a wired blank value #95281
    gseroul
    Participant

    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

    in reply to: Trying to edit and save a cell with empty content #95003
    gseroul
    Participant

    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 ?

    in reply to: FormEdit : select does not have the right default value #94983
    gseroul
    Participant

    Hi Tony, any idea or tests that I can do ?

    in reply to: FormEdit : select does not have the right default value #94945
    gseroul
    Participant

    I also tried with 3.6.5 and same behaviour.

    in reply to: FormEdit : select does not have the right default value #94935
    gseroul
    Participant

    The last one : 3.7.1

    in reply to: FormEdit : select does not have the right default value #94934
    gseroul
    Participant

    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 ?

    in reply to: FormEdit : select does not have the right default value #94901
    gseroul
    Participant

    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 :

    gseroul
    Participant

    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).

    in reply to: Formedit – how to set default value of select-field? #94810
    gseroul
    Participant

    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 :

    in reply to: Auto resize column width depending on content #93076
    gseroul
    Participant

    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

Viewing 11 replies - 1 through 11 (of 11 total)

Stay connected with us in your favorite flavor!