Help me on this.
List-Page.
Page_DataRendering()
$header = <div id="head" style="text-align:center;">(I put MyButton at the center of this div)</div>
The <div> will be 100% of screen width.
I need MyButton to be at the center of the table (which in this case is not 100% of screen width) so I put this code on Startup Script:
var a = $("div[class='box ewBox ewGrid (mytablename)']").width(); // take the value of bootstrap table width.
$("#head").width(a); // set MyButton's div width.
It works ok, MyButton is now at the center of the table.
But....
Since Startup Script was put at the very end of the ...list.php, MyButton will first draw at the center of the screen then MOVED to the center of table. This movement kinda ugly though.
Any idea how to avoid this movement?
Is there any way to take the value of bootstrap table width within server event?
Thanks.