Comments (5)
Hi,
I don't understand what is the error you have notices. For ajax datasources you should set bServerSide to true and in this case is pushed _fnAppyEditable the aoDrawCallback stack. In any oher case it should not be used.
bProcessing is used only to show processing message and it do not have to be
reated to ajax data source. As example on the page
http://jquery-datatables-editable.googlecode.com/svn/trunk/customization.html
is set bProcessing to true although DataTables is not used with ajax data
source (It is just used to show procesing dialog while the row is deleted). I
cannot see any error in this example (original code is still there).
If I apply you patch in the customization page should be applied
_fnApplyEditable each time page is refreshed and this should not happen if
table works with static data (or I'm wrong?).
Could you please clarify me what was the problem in your example?
Thanks,
Jovan
Original comment by [email protected]
on 4 May 2011 at 4:56
from jquery-datatables-editable.
Hey,
I get your point about bProcessing, so nevermind that.
But should one use bServerSide when using a regular JSON ajax source? As far
as I can tell, one should only use bServerSide when using the server for
processing the data, which is not my case with just the json source.
I think in that case, the table needs to be redrawn, and _fnApplyEditable
should be pushed onto the aoDrawCallback stack. That's what I've found on
the datatables forums atleast.
But yes, using bProcessing to check for that is stupid. Perhaps if
bServerSide == true or sAjaxSource == true is better, depending on
sAjaxSource's initial value.
Lars Kristian Dahl
On Wed, May 4, 2011 at 6:57 PM,
<[email protected]>wrote:
Original comment by [email protected]
on 4 May 2011 at 5:07
from jquery-datatables-editable.
I'm referring to a situation like this:
http://www.datatables.net/examples/data_sources/ajax.html
<http://www.datatables.net/examples/data_sources/ajax.html>Where data is
fetched asynch from an ajax source, but all processing is still client-side.
:)
Original comment by [email protected]
on 4 May 2011 at 5:12
from jquery-datatables-editable.
You are right editable does not work in ajax source mode when bServerSide is
not set. I have created this example on the
http://jquery-datatables-editable.googlecode.com/svn/trunk/ajax.html and cells
are not editable.
I will add if(sAjaxSource == null) or something similar because both in the
serverside mode and plain ajax source mode this variable is set.
Thank you for noticin this I completetly missed this case of usage for
dataTable.
Regards,
Jovan
Original comment by [email protected]
on 4 May 2011 at 9:02
- Changed state: Started
from jquery-datatables-editable.
In the version 1.1.5. this is changed. You can check it on the
http://jquery-datatables-editable.googlecode.com/svn/trunk/ajax.html.
Thanks,
Jovan
Original comment by [email protected]
on 4 May 2011 at 10:37
- Changed state: Fixed
from jquery-datatables-editable.
Related Issues (20)
- issue with inline delete redrawing with pagination, only 1st page worksrest ( including searches ) do not redraw table
- Not compatible with jquery higher than 1.9
- Add new row: after first insert, the Cancel button not shown
- Error on Deleted Row
- Only first page of mult-page table is editable. HOT 1
- Delete Button problem HOT 2
- makeEditable() is undefined HOT 1
- Unable to customize buttons HOT 1
- How I can make Editable more of one table
- Patch for /trunk/media/js/jquery.dataTables.editable.js
- Editing AJAX sourced data in the popup window
- Patch for /trunk/media/js/jquery.dataTables.editable.js
- Delete behaving as Post call
- Refresh the table after delete a record
- Refresh the table after delete a record HOT 1
- Missing images for demo_table.css HOT 1
- vgfdzvfz
- editable with responsive HOT 1
- makeEditable() on two tables in the same page HOT 1
- sNewCellDisplayValue is undefined. Typo in variable declaration
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-datatables-editable.