Forum


05:25

18/10/2008

Hi
when i click edit nav bar ,a pop up open when i click on any text box,checkbox the popup close but when i use keyboard its working fine
jQuery(document).ready(function(){
jQuery(”#editgrid”).jqGrid({
url:'a.jsp?q=1',
datatype: “xml”,
colNames:['Select','UserID','First Name', 'Last Name', 'User Created Date','User Created By','Last Modification Date','Password','Status'],
colModel:[
{name:'id',index:'id', width:55,editable:false,editoptions:{readonly:true,size:10}},
{name:'uid',index:'uid', width:55,editable:true,editoptions:{size:10}},
{name:'uname',index:'uname', width:80,editable:true,editoptions:{size:25}},
{name:'lname',index:'lname', width:90,editable:true,editoptions:{size:25}},
{name:'ucreatedate',index:'ucreatedate', width:60,sortable:true, align:"right",editable:true,editoptions:{size:10}},
{name:'ucreatedby',index:'ucreatedby', width:60, align:"right",editable:true,editoptions:{size:10}},
{name:'ldate',index:'ldate', width:60,align:"right",editable:true,editoptions:{size:10}},
{name:'pass',index:'pass', width:60,align:"right",editable:true,edittype:"password",editoptions:{size:10}},
{name:'status',index:'status', width:100, sortable:false,editable: true,edittype:"select",editoptions:{value:"Active:Active;InActive:InActive"}},
],
rowNum:6,
rowList:[6,12,15],
pager: jQuery('#pagered'),
imgpath: 'themes/basic/images',
sortname: 'id',
viewrecords: true,
sortorder: “desc”,
caption:”GRID”,
editurl:”edit.jsp”
});
jQuery(”#editgrid”).navGrid('#pagered',
{}, //options
{height:280,reloadAfterSubmit:false, url:”edit.jsp?yes=1″ }, // edit options
{height:280,reloadAfterSubmit:true,url:”edit.jsp?yes=2″}, // add options
{reloadAfterSubmit:true,url:”edit.jsp?yes=3″}, // del options
{} // search options
);
<table id=”editgrid” class=”scroll” cellpadding=”0″ cellspacing=”0″ width=”100%”></table>
<div id=”pagered” class=”scroll” style=”text-align:center;”></div>
please help me as soon as possible
07:57

Moderators
30/10/2007

@shibaji
You have a error in the code, please check for unneeded comma in the
last item in colModel. Your grid will not work in IE.
@cage
This is the standart way of the delete box. You shuld creaate the delete
dialog with modal: true if you do not want this
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.
No better.
The dialog box doesn't accept mouse input (click).
Impossible to drag it.
It's ok with the keyword
Linux, Firefox 3.0.3, last Jqgrid
The code :
$('#gridEvents').jqGrid({
url: 'index.php?bnAction=131585'
,rowNum: 100
,rowList: [25,50,75,100]
,imgpath: 'Bn/Style/Gridview/basic/images'
,mtype: 'post'
,datatype: 'json'
,pager: $('#pagerGridgridEvents')
,height: 500
,caption: 'Tournois enregistrés'
,colNames: ['id','Date','Nom','Zone','Type','Visites', 'Action']
, colModel: [{name:'1', sortable:false, hidden:true}
,{name:'2', width:70, align:'left', resizable:false}
,{name:'3', width:400, align:'left', resizable:false}
,{name:'4', width:80, align:'left', resizable:false}
,{name:'5', width:80, align:'right', resizable:false}
,{name:'6', width:80, align:'left', resizable:false}
,{name:'act',index:'act',sortable:false,editable:false,align:'center',width:50}]
, loadComplete: function(){
var ids = jQuery('#gridEvents').getDataIDs();
for(var i=0;i<ids.length;i++)
{
var id = ids[i];
del='<img id="imgdel" width="16" height="16" src="Bn/Img/delete.png" alt="del" onclick="jQuery("#gridEvents").delGridRow('+id+', {url:"index.php?bnAction=131588", top: 10, left: 10, modal: true, msg: "Supprimer les lignes s�lectionn�es ?", caption: "Suppression", bSubmit: "Supprimer", bCancel: "Abandonner"});" />';
jQuery('#gridEvents').setRowData(id, {act:del});
}
}});
Thanks
06:07

Moderators
30/10/2007

Hello,
I thinc the jqModal.css is not loaded. Ensure that it is loaded.
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.
Most Users Ever Online: 715
Currently Online:
156 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66