Forum
09:20
Moderators
30/10/2007
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.
02:12
Moderators
30/10/2007
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.
17:52
18/11/2008
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!
04:30
Moderators
30/10/2007
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.
01:13
Moderators
30/10/2007
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.
09:24
18/11/2008
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" />
<input type="button" id="button_edit" value="Edit Page Name" />
<input type="button" id="button_delete_row" value="Delete Page" />
</div>
Thanks!
K
01:40
Moderators
30/10/2007
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.
09:05
18/11/2008
Tony,
I checked, it's there
and IE7 CSS Validator gives me next errors for 'themes/jqModal.css':
Value Error : top Parse error - Unrecognized }
Thanks,
K
02:04
Moderators
30/10/2007
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.
03:47
Moderators
30/10/2007
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.
02:24
Moderators
30/10/2007
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.
06:57
Moderators
30/10/2007
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.
06:07
Moderators
30/10/2007
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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66