Forum
11:42
20/02/2009
Hello Tony,
I have a treeGrid with this structure. Between parenthesis are pictures.
1- first parent (ui-icon treeclick ui-icon-triangle-1-s tree-minus)
1-1 first child (ui-icon ui-icon-radio-off tree-leaf)
1-2 second child (ui-icon ui-icon-radio-off tree-leaf)
1-3 third Child (ui-icon ui-icon-radio-off tree-leaf)
2- second parent (ui-icon ui-icon-radio-off tree-leaf)
3- third parent (ui-icon ui-icon-radio-off tree-leaf)
....
When I delete all children of first parent, after reload, my grid have this structure:
1- first parent (ui-icon treeclick ui-icon-triangle-1-s tree-minus)
2- second parent (ui-icon ui-icon-radio-off tree-leaf)
The problem is that the picture isn't reload and we have a parent without children with the picture of parents with children?
DO you have an idea.
Thank you for your help.
Missa
12:32
Moderators
30/10/2007
Hello,
How do you reload the grid?
Best 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.
22:48
20/02/2009
Hello Tony,
My cod Grid is:
function const_grid_treegrid(){
$("#treegrid").jqGrid({
url:$url_GRID,
treedatatype: "json",
datatype: "json",
mtype: "GET",
postData:{appel_include:$appel_include,nom_grid:'grid_treegrid'},
colNames:['id',$nom_colonne1,$nom_colonne2,$nom_colonne3,$nom_colonne4,$nom_colonne5],
colModel:[
{name:'row_id',index:'row_id',width:50,hidden:true},
{name:'name1',index:'name1',width:200,editable:true,editrules:{required:true}},
{name:'name2',index:'name2',width:200},
{name:'name3',index:'name3',width:200},
{name:'name4',index:'name4',width:200},
{name:'name5',index:'name5',width:200}
],
rowNum: 2000,
pager: $('#ptreegrid'),
treeGrid: true,
treeGridModel: "nested",
ExpandColClick: true,
ExpandColumn: "name1",
caption: $nom_grid1,
autowidth:false,
gridComplete: function()
{ ...
}
}).navGrid('#ptreegrid', {refresh:true,add:true,del:true,search:false,edit:false},
{}, /*edit options */
{width: 360,modal:true,url:$url_select,reloadAfterSubmit:true,closeAfterAdd:true,
beforeShowForm: function()
{
$("#titre_element").remove();
sr = $('#treegrid').getGridParam('selrow');
if (sr == null || sr == ''){
sr = 0;
$(".ui-jqdialog-title").append("<span id='titre_element'> une nouvelle racine</span>")
}
else{
var rowData = $("#treegrid").getRowData(sr);
$(".ui-jqdialog-title").append("<span id='titre_element'> un element dans " + rowData["name1"] + "</span>");
}
},
beforeSubmit: function(){
var sr = $('#treegrid').getGridParam('selrow');
if (sr == null){
sr = 0;
}
return this.editData= {'requete' : 'ajout_noeud','id' : sr,'name1' : $("#name1").val()};
},
afterSubmit:function(result){
$('#cData').click();
return true;
}
}, /* add options */
{width: 360,modal:true,url:$url_select,
delData:{'requete':'suppression_noeud'},
reloadAfterSubmit:false,
afterSubmit:function(result){
var $tab_retour = result.responseText.split('#');
/* Test si pb */
if ($tab_retour[1] != ''){
alert($tab_retour[0] + String.fromCharCode(10) + String.fromCharCode(10) + $tab_retour[1]);
}
$('#eData').click();
return true;
}
}, /* delete options */
{modal:true,url:$url_GRID,width: 500} /* search options */
);
}
If you find everything, can you explain me where is my error.
Regards.
Missa
11:51
Moderators
30/10/2007
Hello,
Thanks. I have identify the bug. Will put a commit in GitHub later today.
Best Regrds
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:
56 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