Hi
I'm using the radchart in my application.
I need to set the height and width for the chart based on resolution of screen.
I try to on window.onload or window.resize.
But I'm getting the radchart null.
below is my code:
I'm getting null if I use the $find.
but I If I do like
I'm using the radchart in my application.
I need to set the height and width for the chart based on resolution of screen.
I try to on window.onload or window.resize.
But I'm getting the radchart null.
below is my code:
function ResizeRadChart() {
var width = screen.width;
var height = screen.height;
var chrtObject = $find("<%= trndChrt.ClientID %>");
switch (height) {
case 1024:
//here i need set the chart height and width
break;
case 960:
break;
case 864:
break;
case 768:
break;
case 720:
break;
case 600:
break;
}
}
but I If I do like
var chrtObject = $get("<%= trndChrt.ClientID %>");
I'm getting the object but not able to see height and width properties.
pls help me in this