?
Solved

datapagesize property is not working

Posted on 2008-10-27
6
Medium Priority
?
552 Views
Last Modified: 2012-05-05
The following code will not increase the number of records in the table staffTable:
The table ID is "staffTable" with an attribute of datapagesize="3". Trying to increase the size of the table to include all the records in a table. The functions staffTable.firstPage() works, but not setting the property datapagesize=999999.

 <p>
        <button onclick="staffTable.datapagesize=999999;
                           staffTable.firstPage()">Show All</button>
        <button onclick="staffTable.datapagesize=3">Show Pages</button>
</p>
0
Comment
Question by:jbotts
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 7

Expert Comment

by:bluV11t
ID: 22819648
Could you try alert dataPageSize first? BTW do you get a JavaScript error?

<button onclick="alert(staffTable.dataPageSize); staffTable.datapagesize=999999;
                           staffTable.firstPage()">Show All</button>
0
 
LVL 7

Accepted Solution

by:
bluV11t earned 1000 total points
ID: 22819650
Try changing datapagesize to dataPageSize...
0
 

Author Comment

by:jbotts
ID: 22823559
bluV11t:
Neither of the suggestions worked.
jbotts
0
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 
LVL 7

Expert Comment

by:bluV11t
ID: 22843712
How many records are there? Have you tried setting it to f.ex. 20? Maybe you cannot set it higher than max number of records...
0
 
LVL 7

Expert Comment

by:bluV11t
ID: 22843825
You could also try

document.getElementById('staffTable').datapagesize=999;
0
 

Author Closing Comment

by:jbotts
ID: 31510617
Actually I tried this again and it worked.
Thanks,
Jim Botts
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question