Hello,
This is the first time I use DataTables and it's awesome. Great work. I have a couple of questions. I'm setting up a table and load the data into it with sAjaxSource. I'm also defining the columns with the table initialization. So:
- Can I define a static table and then use it with DataTable? kind of like a table template of how I want it coded and then DT will use this template to build the table with sorting, filtering and the whole nine yard. something like this:
I'm using bootstrap as well, I followed the posts on your site and got it to work and display fine.
Second question is with the column defs. I have one of the colums as an account that uses the fnRender method to build an href link. Something like this:
- Why the links are disappearing when I hit the back button?
- Is there a work around?
Thank you in advance
This is the first time I use DataTables and it's awesome. Great work. I have a couple of questions. I'm setting up a table and load the data into it with sAjaxSource. I'm also defining the columns with the table initialization. So:
- Can I define a static table and then use it with DataTable? kind of like a table template of how I want it coded and then DT will use this template to build the table with sorting, filtering and the whole nine yard. something like this:
I'm using bootstrap as well, I followed the posts on your site and got it to work and display fine.
<table id="example"> <thead> <tr> <td>Id</td> <td>Account</td> <td>Status</td> <td>Action</td> </tr> </thead> <tbody> <tr> <td ??binding??></td> <td ??binding??></td> <td ??binding??></td> <td ??binding??></td> </tr> </tbody> </table>
Second question is with the column defs. I have one of the colums as an account that uses the fnRender method to build an href link. Something like this:
fnRender: function (o) { var code = $.trim(o.aData.Account); return "<a href='/Account/" + code + "' title='" + code + "'>" + code + "</a>"; }everything works fine and the lines are generated but when i click on one account and go to the account page to look at that account and then I hit the back button, the table is displayed without the links. I have to refresh the page for the links to show up again. so:
- Why the links are disappearing when I hit the back button?
- Is there a work around?
Thank you in advance