question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

page limit with select options not working

See original GitHub issue

I’m submitting a … (check one with “x”)

[ *] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior page limit is not working when I bind limit with select option.I want to change page limit according to which limit I select using select option list like 5,10.

Expected behavior I want to bind page limit value with select option list when I change option then page limit also change.It also work with pagination

  • Table version: 0.7.x 2.2.3

  • Angular version: 2.0.x 2.0.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
iftekharulislamcommented, Jun 28, 2017

I found my mistake. The problem was with the value binding of select element. when we use [value] binding, it only works for strings. As a result page limit was setting the value as a string. On that case, internal first index calculation was working fine, but last index gets undefined, as a result it always showing all results from that page’s first index to the last data item.

the solution is to use [ngValue] binding. It works for custom objects. So onPageSizeChange event is now passed a number value for page size. So everything is working fine.

Updated plunkr

1reaction
ataliscommented, Jan 5, 2017

@rahuldev761, did you get this working? My team is evaluating this component for our application. Pagination with page size selection is a must for us, so I want to make sure this is working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Select option limit not working - WordPress.org
I was trying out the select option limit feature, but couldn't figure out how to make it work. I tried limiting each 'select'...
Read more >
Unable set the limit of visible options in the dropdown of a ...
I have nearly 1000s options in my select dropdown box. I want to limit the visible options to 10. And make the drop-down...
Read more >
Advanced - React Select
A flexible and beautiful Select Input control for ReactJS with ... Disable all options that do not have a 'safe' rating, via the...
Read more >
Excel Data Validation Tips and Troubleshooting - Contextures
This page has data validation tips, and shows how to fix Excel data validation problems, such as drop down not working, blank selected, ......
Read more >
Add a list box or combo box - Microsoft Support
This means that Access will hold the selected value until the user changes it or closes the form, but it will not write...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found