Forum
12:52
14/09/2012
Hello,
Hello,
I see a bug with the hide inline del button.
I hide this button like this:
var ids = $("#tableLesVersions").jqGrid('getDataIDs');
for(var i=0;i < ids.length;i++){
var cl = ids[i];
jQuery('tr#'+ids[i]+' td:last div:first div.ui-inline-del',jQuery(this)).hide();
}
}
but when I edit a row and then I click on the inline save or in the inline cancel button, the inline del button reappear.
Can you have the answer?
13:08
Moderators
30/10/2007
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.
15:32
14/09/2012
I confirm that it doesn't work.
If I set
It will never show the inline-del button even if i set :
var ids = jQuery("#tableLesFlux").jqGrid('getDataIDs');
for(var i=0;i < ids.length;i++){
var cl = ids[i];
var disponibiliteVal = jQuery('#tableLesFlux').getCell(cl, 'disponibilite');
if (disponibiliteVal.indexOf("production") < 0){
//Show delete button
jQuery('tr#'+ids[i]+' td:last div:first div.ui-inline-del',jQuery(this)).show();
}
}
}
Someone have an idea?
15:24
Moderators
30/10/2007
Hello,
Just tested and it is ok for me.
Not sure what you do and which version do you use.
Which version is used?
Regards
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.
14:50
14/09/2012
Hello tony,
I use 4.3.3 version.
Here's the code I use:
jQuery("#flux").jqGrid({
url: "flux/getAll.do",
mtype: 'POST',
datatype: "json",
cache: false,
colNames:['Identifiant', 'Libellé', 'Code','Etat', 'Actions'],
colModel:[
{name:'id', key : true, index:'id', hidden:true},
{name:'libelle',index:'libelle',width:170, editable:true,editrules:{required:true,custom:true, custom_func:checkLibelle}, editoptions: {maxlength:45}},
{name:'code', index:'code',align:'center', editable:true,editrules:{number:true,required:true}, editoptions: {maxlength:10}},
{name:'disponibilite', align:'center',index:'disponibilite',sortable:false,editable:false, formatter:loadEtat},
{name: 'myac', width:80, fixed:true, sortable:false, resize:false, formatter:'actions', formatoptions:{keys:true}}
],
rowNum:20,
viewrecords: true,
sortname: 'id',
sortorder: "asc",
jsonReader: {
repeatitems : false
},
height: 'auto',
caption: "Affichage des flux",
gridComplete: function(){
var ids = jQuery("#flux").jqGrid('getDataIDs');
for(var i=0;i < ids.length;i++){
var cl = ids[i];
var disponibiliteVal = jQuery('#flux').getCell(cl, 'disponibilite');
if (disponibiliteVal.indexOf("production") > 0){
//Hide delete button
jQuery('tr#'+ids[i]+' td:last div:first div.ui-inline-del',jQuery(this)).hide();
}
}
}
});
Something's wrong?
Can you post the code you use?
Thanks
Most Users Ever Online: 715
Currently Online:
62 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