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
bug with parents and children pictures
10/01/2010
11:42
Avatar
missa
france
Member
Members
Forum Posts: 104
Member Since:
20/02/2009
sp_UserOfflineSmall Offline

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?Yell

DO you have an idea. Embarassed

Thank you for your help.

MissaKiss

10/01/2010
11:44
Avatar
missa
france
Member
Members
Forum Posts: 104
Member Since:
20/02/2009
sp_UserOfflineSmall Offline

I use last version of grid 3.6.2.

My treegrid is nested.

Regards

MissaKiss

10/01/2010
12:32
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

10/01/2010
22:48
Avatar
missa
france
Member
Members
Forum Posts: 104
Member Since:
20/02/2009
sp_UserOfflineSmall Offline

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. Kiss

MissaKiss

19/01/2010
11:51
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
21 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