Forum
18:05
09/12/2013
Hi, can i ask some help in cell editing,why is it after i press F5 or refresh the jqgrid table,the records will turns to zero exept the one that i edited...here is my code
[CODE]
<script type="text/javascript">
$(function(){
jQuery("#mygrid").jqGrid({
url:'loaddata.php?param='+p1+'¶m2='+p2,
datatype: 'json',
colNames:['STDID','NAME','DEPT','YEAR','ADDRESS','AGE'],
colModel:[
{name:'std_id',index:'std_id',width:50,sortable:true},
{name:'firstname',index:'firstname',width:100,sortable:true},
{name:'dept',index:'dept',width:100,sortable:true,editable:true},
{name:'year',index:'year',width:100,sortable:true,editable:true},
{name:'address',index:'address',width:100,sortable:true,editable:true},
{name:'age',index:'age',width:100,sortable:true,editable:true}
],
rowNum:10,
rowList:[10,20,30],
pager: '#pager2',
sortname: 'std_id',
viewrecords: true,
sortorder: "desc",
rowid:'std_id',
cellEdit: true,
id: 'std_id',
caption:"Student Info",
cellsubmit: 'remote',
cellurl: 'update.php'
});
jQuery("#mygrid").jqGrid('navGrid','#pager2',{edit:false,add:false,del:false,search:false,refresh:false});
</script>
[/CODE]
please help me
Thank you in advance
12:37
Moderators
30/10/2007
Hello,
Ususlly if you refrech the grid and pref F5 you refrech the page and the grid is loaded with the new data.
I sugestu you to check your server side code when you refresh the grid.
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.
18:59
09/12/2013
Hi tony,
Thank you for the quick reply…i checked my server side code and it works okay…but i don't understand if i will edit one cell,.and then press enter key so that it will be save to the server and this will be save, but again when i edit another cell and press enter key then refresh it.now the other cells are becomes zero or null.and the newly edited cell will be remain…
Can you please help me on this.
Thank you in advance.
13:00
Moderators
30/10/2007
Hello,
It is really dificult to me to understand the problem.
Can you please prepare a online example and describe a step by step what to do.
in order to reproduce the problem.
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.
15:53
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:36
Moderators
30/10/2007
Hello,
Glad to help.
Best 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.
Most Users Ever Online: 715
Currently Online:
38 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