Comments (9)
If you want to use it that way, you could use the responseHandler
to parse it to what the component understand or in other words to fulfill the contract between your application and jQuery Bootgrid. But in my opinion it is kind a dirty. Sorry for the latency between your request and my answer - I'm a bit busy at the moment.
from jquery-bootgrid.
Appreciate the prompt response! I am using a Codeigniter as a backend and I am not sure how I can jsfiddle it for you. Like I said the problem is the the prev and next links. << (<) 1 2 3 (>) >>. The server-side processing pretty much returns a JSON as specified in the Documentation. Can you please see if you can recreate the issue or perhaps share the server-side code used in the examples.
from jquery-bootgrid.
At the library jquery.bootgrid.js, you need to change two few lines:
prev: that.current - 1,
next: that.current + 1,
change it to:
prev: parseInt(that.current) - 1,
next: parseInt(that.current) + 1,
from jquery-bootgrid.
Please create a jsfiddle with your code for me! I think you migth have an issue in your code.
from jquery-bootgrid.
Please have a look at the this pull request. It solved my problem.
from jquery-bootgrid.
Could you please provide me your exact JSON response. I guess the current
property of your JSON response is of type string
instead of numeric
. To fix your issue just switch to numeric
.
Right:
{
"current": 1,
...
}
Wrong:
{
"current": "1",
...
}
I hope this is going to help you.
from jquery-bootgrid.
You are most definitely right but server side response should be parsed to an Integer value before being used by the plugin. Can you please check this pull request and merge in the integer parsing. I think this would make it a full proof solution.
from jquery-bootgrid.
i try v1.3.1 to use server-side ,But this Issue not Fixed!!! :(
For Example We have <1|2|3|4>
On Ajax
When We click on page 2 Directly bootgrid sending
{
current:2,
...
}
But When page 1 is active And We click on > (Next Button) it send
{
current:11
.
.
.
}
to Server And ,
'1'+'1' = 11
!= 2
maybe This bug happend.
it's very very bad ;~\
from jquery-bootgrid.
biglidio that it work.
from jquery-bootgrid.
Related Issues (20)
- Get all rows (ajax: true)
- Wrong page calculation for linkes "next" and "prev" pages HOT 1
- How to use with local language?
- Any solution for natural sorting?
- Problems deleting in bootgrid / Problemas al eliminar en bootgrid
- Bootgrid and .Net Core Ajax Posting not working ...
- 关于初始化的问题
- Filtering between dates
- How to customize row background based on a field value? HOT 1
- Any plan to update? HOT 2
- Bootstrap 4 HOT 1
- thead fixed and tbody scrollable
- Jquery bootgrid icon is not displaying in web app HOT 1
- how to load static columns and data to jQuery-bootgrid HOT 1
- how to delete row in Jquery boot grid
- Jquery Bootgrid Header Checkbox(Hide/Show) Table columns Customize and place in userdefined Dropdown?
- individual Column Search on top of each column in bootgrid?
- How to use styling in bootgrid? HOT 1
- Passing json variable to bootgrid table
- Tooltip in cell
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-bootgrid.