KnockoutJS
KnockoutJS
Hello,
great work Allan, DTs are really good. We are using them extensively in our project, so I persuaded my company to donate :)
Has anyone combined DT and knockoutJS?! Here is an example http://jsfiddle.net/6Uf9S/15/
Is this maybe the way to go forward? Altough its too late for me to change my project, I played with it, and got some simple behavior like add, delete...
Since there is no thread about this, maybe we could share our experience combining these two.
great work Allan, DTs are really good. We are using them extensively in our project, so I persuaded my company to donate :)
Has anyone combined DT and knockoutJS?! Here is an example http://jsfiddle.net/6Uf9S/15/
Is this maybe the way to go forward? Altough its too late for me to change my project, I played with it, and got some simple behavior like add, delete...
Since there is no thread about this, maybe we could share our experience combining these two.
This discussion has been closed.
Replies
@mirkec: Great to hear that you are enjoying using DataTables! And thanks for convincing your company to make a donation! Let us know how you get on with the integration with knockoutJS.
Allan
I'm sure there are improvements to be made, so traffic coming from this site with suggestions or requests would be useful.
Interesting comment in your post:
> Today, I needed a table widget. There isn’t currently one available in jQuery UI, though one is being developed, so I searched for an alternative.
Would you have searched for an alternative if jQuery UI did have their table control available just now? Obviously when it is available it is going to attract a lot of attention away from DataTables, so I'm curious to know view points!
Regards,
Allan
Honestly, I probably wouldn't have. My (current) needs for a data table are fairly simple, so any jQuery UI table widget would probably suffice, as I would imagine it to be fairly simple.
However, DataTables does offer a lot of customisation, which I think may be its USP. Once the jQUI version is out, it may be worth releasing a jQUI->DataTables guide, or even a wrapper so DataTables can accept the jQUI's api, so people can "upgrade" easily.
[quote]Would you have searched for an alternative if jQuery UI did have their table control available just now?[/quote]
That really depends on users needs, we have complete DevExpress controls, but I didn't like their MVC controls(mind that, WinForms are excellent), so I was trying to find controls that suit my needs, and are good for development and later upgrade/support. Currently, I'm working with jQuery UI + DataTables, and I'm very satisfied.
In some scenarios DT and Knockout are overlapping(example from past project: I have form with list of objects (in DT1), when I click add connection, modal dialog opens with list of all available objects (in DT2 for search/page...), in that DT i have add link in first column and after I click it, that row is added to first list of objects (DT1) ). -> Both simple and effective to implement in DataTables alone and also combining DT & KO.
But now I have more complex scenario with other controls using same data, so I'm going with KO + DT, and I'll post my experience here.
Keep up the good work.
Tough position..
I've just published a pretty fully featured Knockout JS data binding that integrates with DataTables pretty nicely.
You can check out the source here: https://github.com/CogShift/Knockout.Extensions
And the Demos here: http://jsfiddle.net/ducka/haq2y/ and here: http://jsfiddle.net/ducka/fPaQs/
Cheers!
"malicious HTTP object ... detected: Trojan program:'HEUR:Trojan.Script.Iframer' (modification)".
i just checked out your work on github and its a great idea
but while fiddling with it on jsfiddle i found no way to set the option for datatable like
"sScrollY": 200,
"bJQueryUI": true,
"sPaginationType": "full_numbers"
can u suggest some thing
Allan