I set RadGrid Height and it set correctly but the footer of radgrid is not set as per its height.
see the image.
see the image.
4 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 24 Apr 2012, 03:24 PM
Hi Sagar,
Please make sure that you didn't set FooterStyle-Height property of RadGrid. I could replicate the problem when i set FooterStyle-Height.
If you want to set the height of RadGrid based on the number of Rows try the following code.
C#:
Thanks,
Princy.
Please make sure that you didn't set FooterStyle-Height property of RadGrid. I could replicate the problem when i set FooterStyle-Height.
If you want to set the height of RadGrid based on the number of Rows try the following code.
C#:
int
c = radgrid1.Items.Count;
RadGrid1.Height =Unit.Pixel(20 * c);
Thanks,
Princy.
0
Sagar
Top achievements
Rank 1
answered on 25 Apr 2012, 06:49 AM
I didn't set ragrid footer style height. But I set the height of radgrid and i want radgrid footer adjust as per height of the radgrid.
0
Princy
Top achievements
Rank 2
answered on 25 Apr 2012, 09:35 AM
Hi Sagar,
Please try setting the Height of the MasterTableView.
ASPX:
Please provide the code if it doesn't help.
Thanks,
Princy.
Please try setting the Height of the MasterTableView.
ASPX:
<
MasterTableView
TableLayout
=
"Fixed"
PageSize
=
"3"
Height
=
"600"
></
MasterTableView
>
Please provide the code if it doesn't help.
Thanks,
Princy.
0
Sagar
Top achievements
Rank 1
answered on 25 Apr 2012, 10:16 AM
Hi princy,
I didn't help for me. If I set Matertableview height it diaplay like image..see the image
function OnResizeBrowser() {
var gridDiv = document.getElementById("<%= RadGridUnlinkedProduct.ClientID %>");
resizeObj(gridDiv, 240);
}
function resizeObj(obj, intCompensate) {
var documentObj = document.documentElement;
if ((window.opera) || (document.all && (!(document.compatMode && document.compatMode == "CSS1Compat")))) {
documentObj = document.body;
}
obj.style.height = (parseInt(documentObj.clientHeight) - intCompensate) + "px";
}
this funcation resizes radgrid that I want. but it only run when I resize the browser.
I want it when page is loaded. My page in mater page that why i write this function in jquery ready() function.
thanks in advance.
I didn't help for me. If I set Matertableview height it diaplay like image..see the image
function OnResizeBrowser() {
var gridDiv = document.getElementById("<%= RadGridUnlinkedProduct.ClientID %>");
resizeObj(gridDiv, 240);
}
function resizeObj(obj, intCompensate) {
var documentObj = document.documentElement;
if ((window.opera) || (document.all && (!(document.compatMode && document.compatMode == "CSS1Compat")))) {
documentObj = document.body;
}
obj.style.height = (parseInt(documentObj.clientHeight) - intCompensate) + "px";
}
this funcation resizes radgrid that I want. but it only run when I resize the browser.
I want it when page is loaded. My page in mater page that why i write this function in jquery ready() function.
thanks in advance.