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
need help please cell editing
09/12/2013
18:05
Avatar
jemz
Member
Members
Forum Posts: 4
Member Since:
09/12/2013
sp_UserOfflineSmall Offline

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+'&param2='+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

10/12/2013
12:37
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

11/12/2013
18:59
Avatar
jemz
Member
Members
Forum Posts: 4
Member Since:
09/12/2013
sp_UserOfflineSmall Offline

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.

14/12/2013
13:00
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

14/01/2014
18:15
Avatar
jemz
Member
Members
Forum Posts: 4
Member Since:
09/12/2013
sp_UserOfflineSmall Offline

Hi tony,

I dont't have online example i am just working in my localhost...can i ask is my code correct ?....can you please show me example how would you do the cell editing or the inline editing.

Best Regards,

15/01/2014
15:53
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You can look at our demo

Of cource you should start with documentation too

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/01/2014
16:05
Avatar
jemz
Member
Members
Forum Posts: 4
Member Since:
09/12/2013
sp_UserOfflineSmall Offline

Hi Tony,

It's working now inline editing :)...

Thanks a lot!

20/01/2014
15:36
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

Forum Timezone: Europe/Sofia

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

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information