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
setCell cannot reference to the new grid
01/10/2010
07:39
Avatar
omg_trojans
Member
Members
Forum Posts: 7
Member Since:
07/06/2010
sp_UserOfflineSmall Offline

Hi,

I'm having problem with setting cell value when deleting particular rows without reloading a page. So for example: coumn emp_no has  10 rows and when i deleted 3 rows, the total rows then becomes 7. However when i'm trying to set the value of cell based on the new total number of rows (after I deleted 3 rows) set cell method still refers to the old data i.e before deletion which means (accoridng to my example below) the rowid is still referring to the old index. Please help...

$("#order").click(function(){
        var sq = jQuery("#grid").jqGrid('getCol','emp_no');
        var cell = jQuery("#grid").jqGrid('getCell','emp_no');
        var num = 0;
        //alert(sq.length);
        for (x=0; x<=sq.length; x++)
        {
            num++;
            //alert(sq[x]);
            if(sq[x] != num){
                //var tem = jQuery("#omg").jqGrid('getCell',x,'seq_no');
                //alert(tem);
                jQuery("#omg").jqGrid('setCell',x,'emp_no',num);
            }
           
        }
       
    });

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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