This is werid. The page below works like a charm. Shows the data in a grid without any problem.
Then I decided to Ajaxify the grid by updating only the grid when RadPanelBar2 item is clicked.
The Grid shrinks when doing thus hiding all the rows in the grid.
To try the working page - just copy the code below.
To try the weird problem - just uncomment the code I specified below inside AjaxSetting.
Thanks
<%-- MASTER PAGE --%>
Then I decided to Ajaxify the grid by updating only the grid when RadPanelBar2 item is clicked.
The Grid shrinks when doing thus hiding all the rows in the grid.
To try the working page - just copy the code below.
To try the weird problem - just uncomment the code I specified below inside AjaxSetting.
Thanks
<%-- MASTER PAGE --%>
<telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" BorderSize=0
BorderStyle=None PanesBorderSize=0 Height="100%" Orientation=Horizontal VisibleDuringInit=false>
<telerik:RadPane Runat="server" ID="contentPane" Scrolling="None"> <telerik:RadSplitter runat="server" ID="RadSplitter2" BorderStyle="None" PanesBorderSize="0"> <telerik:RadPane runat="Server" ID="leftPane" Width="240px" MinWidth="240" MaxWidth="600" Scrolling="None"> <telerik:RadSplitter runat="server" ID="RadSplitter3" BorderStyle="None" PanesBorderSize="0" Height="100%" Orientation="Horizontal"> <telerik:RadPane runat="server" ID="topLeftPane" Height="100%"> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </telerik:RadPane> </telerik:RadSplitter> </telerik:RadPane> <telerik:RadSplitBar runat="server" ID="RadSplitBar1" CollapseMode="Forward" /> <telerik:RadPane runat="Server" ID="rightPane" CssClass="right-pane" Scrolling="None"> <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server"> </asp:ContentPlaceHolder> </telerik:RadPane> </telerik:RadSplitter>
</telerik:RadPane>
</telerik:RadSplitter>
<%-- ASPX PAGE --%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<telerik:RadPanelBar ID="RadPanelBar2" Runat="server" ExpandMode="FullExpandedItem" Width="240px" Height="100%">
<Items>
<telerik:RadPanelItem Text="Documents" Expanded="True">
<Items>
<telerik:RadPanelItem runat="server" Text="All Documents" Value="" />
<telerik:RadPanelItem runat="server" Text="My Documents" Value=""/>
</Items>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
<telerik:RadSplitter runat="server" ID="RadSplitter1" Width="100%" BorderSize="0"
BorderStyle="None" PanesBorderSize="0" Height="100%" Orientation="Horizontal">
<telerik:RadPane runat="server" ID="MainPane" >
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="DocumentsDataSource1"
AllowPaging="True" AllowSorting="True"
AllowCustomPaging="true" ShowStatusBar="true"
AllowFilteringByColumn="false" CellSpacing="0"
AllowMultiRowSelection="true" AutoGenerateColumns="true" PageSize="10" height="100%" >
<PagerStyle Mode="NextPrev" />
<MasterTableView DataKeyNames="documentid" EnableHeaderContextMenu="true" >
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"
Visible="True">
</RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
Visible="True">
</ExpandCollapseColumn>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column">
</EditColumn>
</EditFormSettings>
<Columns>
</Columns>
</MasterTableView>
<ClientSettings EnableRowHoverStyle = "true" Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true"
AllowColumnsReorder="true" ReorderColumnsOnClient="true">
<ClientEvents OnRowContextMenu="" OnRowDblClick="" OnHeaderMenuShowing="" />
<Scrolling AllowScroll="true" UseStaticHeaders="true" />
</ClientSettings>
<PagerStyle Position="Bottom" />
<FilterMenu EnableImageSprites="False">
</FilterMenu>
</telerik:RadGrid>
<asp:ObjectDataSource ID="DocumentsDataSource1" runat="server"
SelectMethod="GetDocuments" TypeName="e_Digio._Default" >
</asp:ObjectDataSource>
</telerik:RadPane>
</telerik:RadSplitter>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadPanelBar2">
<UpdatedControls>
<%--UNCOMMENT THE NEXT LINE--%>
<%-- <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> --%>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1">
</telerik:RadAjaxLoadingPanel>
</asp:Content>
