Html Bug?
Html Bug?
Raven
Posts: 28Questions: 0Answers: 0
i have a tabcontainer on the first page the repeater is fine but on the second tab The columns become squashed up next to eachother instead of filling my page.
[code]
DocReq
Created Date
Name
<%# DataBinder.Eval(Container.DataItem, "CreatedDate", "{0:dd/MM/yyyy}")%>
<%# DataBinder.Eval(Container.DataItem, "DocumentName")%>
<%# DataBinder.Eval(Container.DataItem, "CreatedDate", "{0:dd/MM/yyyy}")%>
<%# DataBinder.Eval(Container.DataItem, "DocumentName")%>
[/code]
[code]
DocReq
Created Date
Name
<%# DataBinder.Eval(Container.DataItem, "CreatedDate", "{0:dd/MM/yyyy}")%>
<%# DataBinder.Eval(Container.DataItem, "DocumentName")%>
<%# DataBinder.Eval(Container.DataItem, "CreatedDate", "{0:dd/MM/yyyy}")%>
<%# DataBinder.Eval(Container.DataItem, "DocumentName")%>
[/code]
This discussion has been closed.
Replies
Doc Req 2
Created Date
[/code]
The second tab has basicaly exactly the same coding but the repeater gets squashed.
[code]
<!--This is coding for the repeater -->
$(document).ready(function () {
$('#tblDocReq1').dataTable({ "oLanguage": { "sSearch": "Search:" },
"iDisplayLength": 10,
"aaSorting": [[0, "asc"]],
});
});
$(document).ready(function () {
$('#tblDocReq2').dataTable({ "oLanguage": { "sSearch": "Search:" },
"iDisplayLength": 10,
"aaSorting": [[0, "asc"]]
});
});
[/code]
okay so what i did was apply "bAutoWidth": false
which works. Thank you thank you.
Note that the example uses jQuery UI tabs - you are obviously using something else, but the principle applies - when he element is shown, you need to call the function to adjust the column sizing.
Allan
im having a styling issue with the fontsize, when it comes to tabs.
Yes im using AjaxControlToolkit tabs.
On a normal repeater the style is fine, but a repeater inside a tab, has rather big font size.
[code]
$(document).ready(function () {
$('#tblCourtOrderTrace').dataTable({ "oLanguage": { "sSearch": "Search:" },
"iDisplayLength": 10,
"aaSorting": [[0, "asc"]],
"bAutoWidth": false,
"bStateSave": true
});
});
[/code]
my idea for a solution is to adjust the fontsize in the jquery coding example
[code]
$(document).ready(function () {
$('#tblCourtOrderTrace').dataTable({ "oLanguage": { "sSearch": "Search:" },
"iDisplayLength": 10,
"aaSorting": [[0, "asc"]],
"bAutoWidth": false,
"bStateSave": true
"aAdjustFont": 10px //apply fontsize
});
});
[/code]
can i do this? and do you know the syntax for it?
[code]
$(document).ready(function () {
$('#tblLegalDetTrace').dataTable({ "oLanguage": { "sSearch": "Search:" },
"iDisplayLength": 10,
"aaSorting": [[0, "asc"]],
"bAutoWidth": false,
"bStateSave": true
});
$("#tblLegalDetTrace").css({ "font-size": "10px" });
});
[/code]