Hello Friends,
I need to remove width of particular radpane when resolution in not 1024*768. means when resolution is 1024*768 than i need contentpane width is : 1089px otherwise i want to remove width property of contentPane.
my aspx page code is.
<telerik:RadSplitter ID="RadSplitter1" runat="server" Height="560" Width="100%" OnClientLoaded="setclasswidth" >
<telerik:RadPane ID="navigationPane" runat="server" Width="163">
<div>
This is header
</div>
</telerik:RadPane>
<telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward" />
<telerik:RadPane ID="contentPane" Scrolling="None" runat="server" Width="1089px">
<div>
This is content
</div>
</telerik:RadPane>
</telerik:RadSplitter>
i made one function setclasswidth and call it on OnClientLoaded event.
my javascript function is,
function setclasswidth(sender, Args)
{
if ((screen.width==1024) && (screen.height==768))
{
alert('something');
}
else
{
var splitter = sender;
var endPane = splitter.getPaneById("contentPane");
alert(endPane.get_width());
}
}
by using alert(endPane.get_width()); i get the contentPane width but how i will remove width on that case.
Pls help me.
Thanks & Regards
Jignesh Patel
I need to remove width of particular radpane when resolution in not 1024*768. means when resolution is 1024*768 than i need contentpane width is : 1089px otherwise i want to remove width property of contentPane.
my aspx page code is.
<telerik:RadSplitter ID="RadSplitter1" runat="server" Height="560" Width="100%" OnClientLoaded="setclasswidth" >
<telerik:RadPane ID="navigationPane" runat="server" Width="163">
<div>
This is header
</div>
</telerik:RadPane>
<telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward" />
<telerik:RadPane ID="contentPane" Scrolling="None" runat="server" Width="1089px">
<div>
This is content
</div>
</telerik:RadPane>
</telerik:RadSplitter>
i made one function setclasswidth and call it on OnClientLoaded event.
my javascript function is,
function setclasswidth(sender, Args)
{
if ((screen.width==1024) && (screen.height==768))
{
alert('something');
}
else
{
var splitter = sender;
var endPane = splitter.getPaneById("contentPane");
alert(endPane.get_width());
}
}
by using alert(endPane.get_width()); i get the contentPane width but how i will remove width on that case.
Pls help me.
Thanks & Regards
Jignesh Patel