Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Help with editing
02/10/2008
10:22
Avatar
maglia
Argentina
Member
Members
Forum Posts: 9
Member Since:
02/10/2008
sp_UserOfflineSmall Offline
First of all, my English is not good. Sorry.
I'm trying to invoke the editing records of the grid through editGridRow but can not get up the form.

My definition of the Grid is:

//Armado del Grid   
jQuery("#dataGrid").jqGrid({
    url:'gestiona_exptes_grid.php',
    datatype: "json",
    colNames:['Fecha','Juzgado', 'N°Expte', 'Carátula', 'Motivo', 'Observaciones', 'Estado','Defensoría'],
    colModel:[
        {name:'fecha',index:'fecha', width:65, sorttype:"date",editable:true,editoptions:{size:25}},
        {name:'juzgado',index:'juzgado', width:80, sortype:"int",editable:true,editoptions:{size:25}},
        {name:'expte',index:'expte', width:100,editable:true,editoptions:{size:25}},
        {name:'caratula',index:'caratula', width:200,editable:true,editoptions:{size:25}},
        {name:'motivo',index:'motivo', width:120,editable:true,editoptions:{size:25}},
        {name:'observaciones',index:'observaciones', width:80,editable:true,edittype:"textarea", editoptions:{rows:"2",cols:"20"}},
        {name:'estado',index:'estado', width:150,editable:true,editoptions:{size:25}},
        {name:'defensoria',index:'defensoria', width:90,editable:true,editoptions:{size:25}},
    ],
    pager: jQuery('#pager2'),
    rowNum:10,
    rowList:[10,20,30],
    imgpath: 'javascipts/jQuery/themes/coffee/images',
    mtype: "GET",
    sortname: 'fecha',
    viewrecords: true,
    sortorder: "asc",
    caption: 'Consultas Penales - Gestión de Expedientes',
    multiselect: false,
    height:'100%',
    loadtext: 'Cargando...',
    editurl:'someurl.php',
                height:"100%"
            }).navGrid('#pager2',
                        {refreshtitle:'Actualizar Datos', edit:true, del:false, add:false, search:false
                        });
The invocation, as in the examples is:

$("#bedata").click(function(){                        
    var gr = $("#dataGrid").getGridParam('selrow');
    if( gr != null ) {
        $("#dataGrid").editGridRow(gr,{height:280,reloadAfterSubmit:false});
    }
    else {
        alert("Seleccione un Trámite para Editar");
    }
});
What could be wrong?
Thank you very much for your attention.
Martín
02/10/2008
11:07
Avatar
YamilBracho
Member
Members
Forum Posts: 124
Member Since:
08/09/2008
sp_UserOfflineSmall Offline

I am not sure but I think the problem is the NavigationBar, you are combining two ways to edit, so take out the navigatioon bar and test it.

In Spanish.

Quita la opcion del NavigationBar y chequea el ejemplo "editing". Fijate que cuando editas por un boton no tienes las opciones del NavigationBar

HTH

03/10/2008
02:17
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

The error is in syntax - the righ is

}).navGrid('#pager2',{edit:true, del:false, add:false, search:false},...)

Also refer to docs for the right syntax

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
101 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information