Giter Club home page Giter Club logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.