evalentine

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Author
    Replies
  • in reply to: how to add a name:value pair to json data? #95418
    evalentine
    Participant

    I am using the following as the test of what is returned and what is in the alert box is the function shown.

    in reply to: n is undifined error #95171
    evalentine
    Participant

    My error. I was sending more data fields than were defined in the colModel section.

    Thanks for your help.

    in reply to: how to add a name:value pair to json data? #95170
    evalentine
    Participant

    Thanks. I have put it in and am still not seeing the data. If I use the existing data pair like 'records' I get a valid value, but for the new pair the value is 'null'. The value is in the json string.

    in reply to: Master/Detail editing row issue #93887
    evalentine
    Participant

    After looking and trying a few changes, I found the issue in having the sequence of commands in the wrong order.

    Sorry to bother you.

    in reply to: Error “h is undefined” line 341 for subgrid #93512
    evalentine
    Participant

    That fixed it! Thanks.Smile

    in reply to: Error “h is undefined” line 341 for subgrid #93469
    evalentine
    Participant

    Code from Firebug:

    2
    3
    4
    5
    6 Employee Grid
    7var lastsel
    8jQuery(document).ready(function(){
    9 jQuery(“#list”).jqGrid({
    10 url:'emp_gd_data.html',
    11 datatype: 'json',
    12 jsonReader : {
    13 root: “rows”,
    14 page: “page”,
    15 total: “total”,
    16 records: “records”,
    17 repeatitems: true,
    18 cell: “cell”,
    19 id: “id”,
    20 subgrid: {
    21 root: “rows”,
    22 repeatitems: true,
    23 row: “Cell”,
    24 cell: '0',
    25 id: “id”
    26 }
    27 },
    28 mtype: 'GET',
    29 colNames:['Emp Nm', 'Active','Last','First','SSN','City','State','Site_ID','id'],
    30 colModel :[
    31 {name:'Emp_nm', index:'emp_nm', width:80, align:'right', sorttype:'int',
    32 search:true,searchoptions:{sopt:['eq']}},
    33 {name:'item_nm', index:'item_nm', width:80, align:'right', sorttype:'int'},
    34 {name:'seq', index:'seq', width:80, align:'right'},
    35 {name:'action', index:'action', width:80, sortable:true, editable:true},
    36 {name:'act_dt', index:'act_dt', width:80, sortable:true},
    37 {name:'ckd_by', index:'ckd_by', width:75, sortable:true},
    38 {name:'sent_to', index:'sent_to', width:100, sortable:true},
    39 {name:'alert', index:'alert', width:300, sortable:true,search:true},
    40 {name:'id', index:'id', width:80, align:'right', sorttype:'int'} ],
    41 editurl: 'emp_dtl.html',
    42 pager: jQuery('#pager'),
    43 rowNum:10,
    44 rowList:[10,20,30],
    45 sortname: 'account',
    46 sortorder: “desc”,
    47 viewrecords: true,
    48 caption: 'Employees',
    49 hidegrid: false,
    50 hiddengrid: false,
    51 multiselect: false,
    52 subGrid : true,
    53 subGridUrl: 'time_subgrid.html',
    54 params: ['id'],
    55 subGridModel: [{ name : ['No','Date','Start','End'],
    56 width : [55,100,80,80],
    57 align : ['left','left','right','right']
    58 } ],
    59 })
    60});
    61jQuery(“#list”).jqGrid('navGrid','#pager', { edit:true,add:false,del:false,search:true,refresh:true },
    62 {}, // edit options
    63 {}, // add options
    64 {}, //del options
    65 {multipleSearch:true} // search options
    66 );
    67
    68$(“#bedata”).click(function(){
    69 var gr = jQuery(“#list”).jqGrid('getGridParam','selrow');
    70 if( gr != null ) jQuery(“#list”).jqGrid('viewGridRow',gr,{height:280,reloadAfterSubmit:false});
    71 else alert(“Please Select Row”);
    72});
    73
    74
    75

    Responce as in Firebug:

    in reply to: Error “h is undefined” line 341 for subgrid #93260
    evalentine
    Participant

    Tony,

    Thanks for your reply. I made the change and that did not help. If I set repeatItems: false, there is no error and no data in the grid. This is correct behavior.If I set to true then there is the error. This tells me that the issue is, I think, in json reader translating the data string.

    Can you see anything in the data string that is wrong?

    in reply to: Error “h is undefined” line 341 for subgrid #93210
    evalentine
    Participant

    Returned data string:

    in reply to: Using the Editurl to display detail information #92540
    evalentine
    Participant

    tony said:

    Hello,

    There are quite good examples in the demo pages.

    Best Regards

    Tony


    I have looked at the gridtoform and am just not getting it to work. I cannot find a good working example.

    I have jQuery(“#list”).jqGrid('GridToForm', 'id', 'list1' );

    id = the id of the data record and 'list1' is the name of the form (<form id="list1" class="formular" method="post" action=""

    in reply to: Using the Editurl to display detail information #92285
    evalentine
    Participant

    I found the function 'gridToForm' and this looks like what I am looking for.

    1. Can anyone point to a sample of the code, HTML page using this? It would really help to see a full implimentation to get a overall view of how everything works together.

    2. It soulds like when the form is called with GridToForm ane the user submits back out of the form, the code returns to the jgrid anee will see the reload function. Is this correct?

    Thanks.

    in reply to: no data display with JQGrid and Turbogears #91848
    evalentine
    Participant

    I got it to work.

    Needed separate class to send data.

    in reply to: no data display with JQGrid and Turbogears #91839
    evalentine
    Participant

    andrewwatts said:

    Post edited 08:01 – 19/11/2009 by andrewwatts
    Post edited 08:03 – 19/11/2009 by andrewwatts
    Post edited 08:04 – 19/11/2009 by andrewwatts


    Hello Ed, we spoke in the TG forum about this issue and I just stumbled on your posts here.

    Now that I've seen your code I can say a bit more and I believe you need to go back and double check all your script and css paths.

    in reply to: no data display with JQGrid and Turbogears #90873
    evalentine
    Participant

    Laugh

    Thanks to all of you that have helped with this! It is finally working! Hallelujah!!

    in reply to: no data display with JQGrid and Turbogears #90813
    evalentine
    Participant

    How are you returning the html page the first time and just the data after that? Have you split into two methods, one with @expose (url page name) and the second with @expose(“json”)?

    in reply to: no data display with JQGrid and Turbogears #90807
    evalentine
    Participant

    notnow said:

    As far as I can tell, the controller, html, and scripts from your first post looks about the same as my application.

Viewing 15 replies - 1 through 15 (of 21 total)

Stay connected with us in your favorite flavor!