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
This topic is locked No permission to create posts
sp_Feed Topic RSS sp_TopicIcon
A new Tree Grid component
29/09/2008
09:20
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Try to set another unique column for the rowid and accept this server side.

I will think how we can post additional data when we click to expand row.

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.

30/09/2008
02:14
Avatar
dekoo
Member
Members
Forum Posts: 5
Member Since:
23/09/2008
sp_UserOfflineSmall Offline

Yes, I'll try to stick together parent item ID and children item ID and than i'll parse this data on the server side script... but I hope you'll find another solution 🙂

Thanks again.

05/11/2008
18:46
Avatar
axilucian
Member
Members
Forum Posts: 9
Member Since:
18/10/2008
sp_UserOfflineSmall Offline

Hi,

Is there any way to refresh the tree grid (reloadGrid is not working for me) ?

Thx!

06/11/2008
02:12
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Currently no. Good idea instead.

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.

19/11/2008
17:52
Avatar
KG
Member
Members
Forum Posts: 6
Member Since:
18/11/2008
sp_UserOfflineSmall Offline

Hello

I am doing add, edit and delete rows in tree grid with editGridRow()/delGridRow(). It works fine. But there is a problem: when I add row it put back it as first one in table - not at the place where it should be. if I reload the whole thing with browser refresh it puts it in a correct place on a tree.

I do know that reload control doesn’t work for now, but is there any other way to put my new row in a right place without doing browser reload. Or how can I set up 'lft', 'rhg' and 'level' properties for new row in 'clientArray' without taking them from a callback to server?

Thanks!

21/11/2008
04:30
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

As of the last version notes adding treenodes is not suported to this

time. Will make all possible to finish this.

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.

21/11/2008
09:08
Avatar
KG
Member
Members
Forum Posts: 6
Member Since:
18/11/2008
sp_UserOfflineSmall Offline

Tony Thanks!

Great stuff anyway!

Other thing here is that if I put  .editGridRow()  and use it with tree grid, IE 7 doesn't render a  form correctly

Best of luck,

K

24/11/2008
01:13
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

What you mean with IE7 does not render it correctly?

Does this happen when you try to resize a form or move it

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.

24/11/2008
09:24
Avatar
KG
Member
Members
Forum Posts: 6
Member Since:
18/11/2008
sp_UserOfflineSmall Offline

Tony,

When I click Edit or Add button that assigned to editGridRow() method

the form appears on top of the page, grid moves down and page is complete flat, so basically it just inserts form before grid.

I put chunk of my code below, in case if I did something wrong:

jQuery("#list").jqGrid({url:'mysql_xml_tree.php?nd='+new Date().getTime(),
    datatype: 'xml',
    mtype: 'POST',
    colNames:['ID','Name', 'URL', 'Comments'],
    colModel :[           
      {name:'id', index:'id', hidden:false, key:true, width:55, sortable:true},
      {name:'name', index:'name', width:300, editable:true, editoptions:{size:20}, sortable:true, required:true},
      {name:'url', index:'url', width:200, editable:true, editoptions:{size:20}, sortable:false},
      {name:'comments', index:'comments', width:200, editable:true, edittype:"textarea", editoptions:{rows:"5",cols:"20"}, sortable:false}
       ],
    rowNum:20,
    rowList:[20,30],
    sortname: 'id',  
    sortorder: "asc",    
    imgpath: 'themes/basic/images',
    treeGrid: true,
    ExpandColumn : 'name',
    caption: "   ", 
    editurl:'jqgrid_to_mysql.php',
    height:'auto',
    width:550
 
    });
   
   
   
    // Add New Row
        jQuery("#button_add").click( function(){
        var id = jQuery("#list").getGridParam('selrow');              
        if (id)    {       
        jQuery("#list").editGridRow('new', {reloadAfterSubmit:false, closeAfterAdd:true, editData:{myname:id}, recreateForm:true});       
            } else { alert("Please select row");}
            });
   
   
    // Edit New Row   
        jQuery("#button_edit").click( function(){ 
        var id = jQuery("#list").getGridParam('selrow');              
        if (id)    {       
        jQuery("#list").editGridRow(id, {reloadAfterSubmit:true, closeAfterEdit:true, editData:{myname:id}, recreateForm:true});           
            } else { alert("Please select row");}
            });           

   
    //Delete row
    jQuery("#button_delete_row").click( function(){
    var id = jQuery("#list").getGridParam('selrow');      
    if (id)    {
    jQuery("#list").delGridRow(id, {reloadAfterSubmit:false} );   
        } else { alert("Please select row");}
        });
   
   
    // jqGrid Form tune   
    jQuery.jgrid.edit = {
    addCaption: "Add Record",
    editCaption: "Edit Record",
    bSubmit: "Submit",
    bCancel: "Cancel",   
    msg: {
        required:"Field is required",
        number:"Please enter valid number",
        minValue:"value must be greater than or equal to ",
        maxValue:"value must be less than or equal to"
        },
    processData: "Processing...",
    editData:{myname:"myvalue"},
    top:40,
    left:30  
     };

HTML:

<table id="list" class="scroll"></table>
<div style="margin:5px 0 0 200px">
<input type="button"  id="button_add" value="Add Page" />&nbsp;
<input type="button" id="button_edit" value="Edit Page Name" />&nbsp;
<input type="button" id="button_delete_row" value="Delete Page" />&nbsp;
</div>

Thanks!

K

25/11/2008
01:40
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

be a sure that jqModal.css 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.

25/11/2008
09:05
Avatar
KG
Member
Members
Forum Posts: 6
Member Since:
18/11/2008
sp_UserOfflineSmall Offline

Tony,

I checked, it's there

and  IE7 CSS Validator gives me next errors for 'themes/jqModal.css':

21 * iframe.jqm Value Error : width Parse Error this.parentNode.offsetWidth+&apos;px&apos;) 22 * iframe.jqm Value Error : height Parse Error this.parentNode.offsetHeight+&apos;px&apos;) 30 * html .jqmWindow Value Error : top Lexical error at line 30, column 59. Encountered: "|" (124), after : "|" document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight | document.body.clientHeight) / 100) + &apos;px&apos;); 31 * html .jqmWindow

Value Error : top Parse error - Unrecognized }

Thanks,

K

26/11/2008
02:04
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

To be a sure to include jqModal.js and jqDnR.js

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.

26/11/2008
15:59
Avatar
KG
Member
Members
Forum Posts: 6
Member Since:
18/11/2008
sp_UserOfflineSmall Offline

Tony,

Both of them are here and it  works well for all browers but not in IE7.

Thanks,

K

27/11/2008
03:47
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

It seems that IE7 can not interpred this. In my IE7 all works.

I think that this is a problem of IE7 settings, but I'm unable to tell you

which.

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.

04/03/2009
11:07
Avatar
ALkyD
New Member
Members
Forum Posts: 1
Member Since:
04/03/2009
sp_UserOfflineSmall Offline

Hello,

I would like to know if it is possible, in a tree grid, to change the image row and set a custom image dependant to the row. By default, it is a blue book for a no leaf row and a dot for a leaf row.

Thanks

11/03/2009
02:24
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Currently this is not supported, but I will make all possible this to happen in next major release.

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.

16/08/2009
06:11
Avatar
Dark Preacher
Guest
Guests

I've tryed to implement treeGrid in my backend and like it much, but I miss pager elements - will they be enabled in future releases?

17/08/2009
06:57
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Little hard to do and not in the near future plans.

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.

02/09/2009
15:48
Avatar
Steven Harman
Guest
Guests

tony said:

Hello,

Little hard to do and not in the near future plans.

Regards

Tony


I'm curious, what makes it so difficult? My default expectation would be that all paging is based on the root level rows, with the grid expanding in size when child level rows are loaded.

04/09/2009
06:07
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

If this is the case it will be quite easy.

Suppose we have only one or two roots and the rest of the hunderts elments is in child nodes and so on?!?

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.

This topic is locked No permission to create posts
Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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