Forum

July 12th, 2025
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
How to add "infinite" 'localdata'?
08/11/2009
01:42
Avatar
tecozc
Member
Members
Forum Posts: 4
Member Since:
28/07/2009
sp_UserOfflineSmall Offline

Hi,

Well, I'm having ploblems to add datas (by local mode, clientside) in my grid, the problem appears in pager and autoscroll.

…

On pager, it does not show correctly the value of “View”…

Sample:

  It would have to show: 'View 1 – 12 of 12'

  But, it show: 'View -9 – 2 of 12'

And, on autoscrool…
When the last row to be selected, and when I use setSelection('1', false)… It does not show first row (scroll do not jump)…

Somebody know why?

I'm trying add data in this way…

//Create
jQuery(”#t_historic_list”).jqGrid({
            scrollrows : true,
            datatype: 'local',
            colNames:['Contador', 'Nome'],
            colModel :[
              {name:'counter', index:'counter'},
              {name:'name', index:'name'},
            ],
            width: 780,
            height: 110,
            viewrecords: true,
            pager: jQuery('#t_historic_list_pager')
        });

var myRowData = new Array();
//Set values in myRowData… (The length of myRowData is variable, it can be 1, 2, 100, 1000 or more.
…
//Adddata in grid
for (index = 0; index < myRowData.length; index++ ) {
        jQuery(”#t_historic_list”).addRowData(index+1, myRowData[index]);
}

Thanks!

08/11/2009
06:37
Avatar
tecozc
Member
Members
Forum Posts: 4
Member Since:
28/07/2009
sp_UserOfflineSmall Offline

Hi,

The problem with addRowData it was solved...

I only add this options: numRows: 0

But, the problem with the scrollbar not yet...

It has some way to use the jQuery-scrollTo plugin(http://plugins.jquery.com/proj.....t/ScrollTo) with jqGrid?

I tried use it but he did not work:  $('#jqGridElement_IDName').scrollTo(0,0);

...

09/11/2009
10:15
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks for the second. Will check it.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 1536

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