Search
18958 results 661-670
Forum
- 9th Jun 2013How to create a drop down list from a JSON object array item - UpdatedIf you want the select list in the table, then yes, that looks like a good way of doing it to me, and probably what I would have suggested. Arrays might be slightly faster that string concatenation when building the string (and use join ) in older IE versions, and save you a line or two, but likely not a noticeable amount if the table is relative small. Allan
- 9th Apr 2013SOLVED - What is the best way to create a datatable for a table with dynamic structure?I was hiding the DIV that contained the datatable before manipulating it's structure and data. Once I stopped hiding the datatable, it worked well. Looks like datatable needs the table to be visible in the first place for proper redraw to work.
- 27th Nov 2012why is this trying to create a column called '0'?My fault - typo on data
- 30th Jul 2012Can't create a custom sorting functionSee, it's a testament to how ignorant of JS I am that it took me a good 15 minutes to figure what and where the console was. Turns out that there's two stupid syntax errors in the ?: statements (namely I actually have a '?' and a ':' right next to each other, without an expression between them). I then managed to work out the rest of the problems myself, thanks to the newfound console. :) Sorry to bother you with such trivialities, but at least it won't happen again. :P
- 3rd Jul 2012How to create only one filter for one column?hello megetron, i suppose you could use the column filter plugin by jovan popavic, there you can make all the adjustment on which rows need to be fileterd and which to be not. following is the link: http://jquery-datatables-column-filter.googlecode.com/svn/trunk/index.html Arjun
- 23rd May 2012How do you create a table with automatic column width sizingI should add that in my above example code I have listed "bAutoWidth" as being set to "treu". That is just a cut-and-paste error, in my code it is actually set to "true". Perhaps I should have added that I only want the table to be as wide as it "needs to be".
- 12th Apr 2012Scrolling datatables create unexpected behavior.Hi Allan, Thanks for the info, but I actually figured that out (my solution was using .eq(1)). Using a id is not easy for me because I have multiple datatables, accros tabs, that requere the same behavior. So it's a lot easier when I can just rever to the .datatable in the current tab.
- 26th Mar 2012take too much time to create Data Table objectYou are going to have to provide a while lot more information than that if we are to be able to offer any help whatsoever. See also: http://datatables.net/faqs#speed Allan
- 24th Mar 2012Create and remove DataTable dynamicallyHave you looked at the bDestroy or fnDestroy options to remove the old DataTable, and then you can initialise a new one in its place? Allan
- 23rd Feb 2012Moving rows between datatables. Can't create jQuery generated row added by fnAddTrHi Allan, After I posted this, I realized I was also having some weird indexing issues, where if I added rows from more than one page of the pre-populated table (which only shows 5 entries at a time) using fnAddTr, and then deleted them, fnDeleteRow(pos) would delete rows from actTable (their current table) based on the position of that row before it had been deleted from availTable (the original table) relative to pagination. So, for example, if I added the first row off of each page of availTable, and then went and deleted one of them from actTable, they would all be removed. But only one would reappear in availTable. So, last night, after I posted I went back and reworked my code to use fnAddData instead of fnAddTr. And that took care of all my issues. So I will probably stick with that for the time being, but next time I'm moving things back and forth I will take a look at the updated fnAddTr plugin. Otherwise this has been a fantastic product for me. Thank you!