Theraze
Active member
The tutorial page on their source code site is rather useful, but most of their data bits aren't sinking into my head too well.
Edit: Meh, maybe I'm completely off here. That does make the links clickable, but it's supposed to import and convert your current table properly. It just isn't working well to figure out the width, etc...
Edit2: Still mucking about. Seems that the header/column problem is a known issue, but not one that anyone has posted any ideas to yet though...
http://code.google.com/p/flexigrid/issues/detail?id=105
In the case of your override, it APPEARS that the header row is losing about 50 pixels or so off the left edge. Not sure why...
Edit3: Removed my garbage above, but have made some minor progress in the Flexigrid bits... namely that adding a title does actually make it so you can compress the table, and singleSelect makes more sense in terms of highlighting options when you'll only ever get to use one. So this:
is my current (for who knows how long) flexigrid line. Interestingly, the useRp property displays that apparently, your data rows are never being considered as data, because even though it defaults to showing 15 items per page, it still shows everything and only has a single page...
Edit4: One more tiny thing. Above, when you initialize the table, it displays briefly and then refreshes to become a Flexigrid table. If you set its initial style to not display, it immediately shows as Flexigrid instead of needing to refresh. Like this:
Anyways, I think I've hit my semi-useful point for today, but... oh yeah, last bit. Trying to hardcode useful column widths, to try to get them working properly. If I can ever get it to realize there's data, that would help, but... Currently using these as my column headers. Changed the graphics for HP/MP to just use letters in case that was part of the problem. Wasn't, but... eh.
Widths seem roughly right to me, but some of the longer entries that should wrap or have resizable columns aren't fully visible.
Edit: Meh, maybe I'm completely off here. That does make the links clickable, but it's supposed to import and convert your current table properly. It just isn't working well to figure out the width, etc...
Edit2: Still mucking about. Seems that the header/column problem is a known issue, but not one that anyone has posted any ideas to yet though...
http://code.google.com/p/flexigrid/issues/detail?id=105
In the case of your override, it APPEARS that the header row is losing about 50 pixels or so off the left edge. Not sure why...
Edit3: Removed my garbage above, but have made some minor progress in the Flexigrid bits... namely that adding a title does actually make it so you can compress the table, and singleSelect makes more sense in terms of highlighting options when you'll only ever get to use one. So this:
Code:
"$('.battable').flexigrid({height:'280', singleSelect:true, showTableToggleBtn:true, title: 'BatBrain Combat Options', striped:false }); }); </script>\n"+
Edit4: One more tiny thing. Above, when you initialize the table, it displays briefly and then refreshes to become a Flexigrid table. If you set its initial style to not display, it immediately shows as Flexigrid instead of needing to refresh. Like this:
Code:
acttable.append("<table class='battable' style='display:none'>"+
Code:
"<thead><tr><th width=240>Action</th><th width=210>Damage</th><th width=100>Delevel</th><th width=55>Stun</th><th width=45>HP</th>"+
"<th width=45>MP</th><th width=80>Profit</th></tr></thead><tbody>");
Last edited: