It have an ascx with a RadAjaxManagerProxy + a RadTreeview + RadGrid
The grid disply info from the selected node in the treeview.
After first display of the page, when I select a node, I get a postback.
Then I select another node and it is an Ajax call ?
How to get rid of this initial postback ?
Could you help find my error, here is my ascx code ?
Thanks
CS
<%@ Control Inherits="AddonNice.WTPageModules.Pages.PortalPagesManager" Language="c#"
AutoEventWireup="False" CodeBehind="PortalPagesManager.ascx.cs" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat=server />
<telerik:RadCodeBlock ID="CodeBlock1" runat="server">
<script type="text/javascript">
<!--
//<![CDATA[
function ContextMenuClick(node, itemText,itemID)
{
if (itemID == "EditName")
{
node.StartEdit();
}
return true;
}
//]]>
// -->
</script>
</telerik:RadCodeBlock>
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProx1" runat="server" >
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="DeleteBtn" >
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadTree1" LoadingPanelID="AjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="AjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadTree1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadTree1" LoadingPanelID="AjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="AjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
<table cellpadding="5" cellspacing="0">
<tr>
<td colspan="3">
<table>
<tr>
<td align="left">
<asp:Literal ID="Literal1" Text="<%$ Resources:ResourcesWTCRM,AM_TREEVIEW_HELP %>"
runat="server" />
</td>
</tr>
<tr>
<td align="center">
<asp:ImageButton ID="RenameBtn" SkinID="RenameBtn" AlternateText="<%$ Resources:ResourcesWTCRM,AM_CONTEXT_EDITNAME %>"
runat="server" />
<asp:ImageButton ID="EditBtn" SkinID="EditBtn" AlternateText="<%$ Resources:ResourcesWTCRM,EDITBTN %>"
runat="server" />
<asp:ImageButton ID="DeleteBtn" SkinID="DeleteBtn" AlternateText="<%$ Resources:ResourcesWTCRM,DELETEBTN %>"
runat="server" />
<asp:ImageButton ID="addBtn" SkinID="AddPage" AlternateText="<%$ Resources:ResourcesWTCRM,ADDTAB %>"
runat="server" />
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<telerik:RadTreeView ID="RadTree1" AllowNodeEditing="True" MultipleSelect="False"
Skin="Web20" Width="400" runat="server" BeforeClientContextClick="ContextMenuClick"
DragAndDrop="True" DragAndDropBetweenNodes="True" CausesValidation="false" ShowLineImages="false"
AutoPostBack="true" />
</td>
<td align="left">
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" Skin="Web20" Width="400px"
AutoGenerateColumns="False">
<MasterTableView>
<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<Columns>
<telerik:GridBoundColumn DataField="Name" HeaderText="<%$ Resources:ResourcesWTCRM,AM_NAME %>"
ItemStyle-Width='200' UniqueName="Name">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Parameter" HeaderText="<%$ Resources:ResourcesWTCRM,AM_PARAMETER %>"
ItemStyle-Width='400' UniqueName="Parameter">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ExportSettings>
<Pdf PageBottomMargin="" PageFooterMargin="" PageHeaderMargin="" PageHeight="11in"
PageLeftMargin="" PageRightMargin="" PageTopMargin="" PageWidth="8.5in" />
</ExportSettings>
</telerik:RadGrid>
</td>
<td>
<telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel1" runat="server" Height="75px"
Width="75px" Style="position: absolute; left: 500px; top: 200px" IsSticky="True"
Transparency="50">
<asp:Image ID="Image1" runat="server" AlternateText="Loading..." SkinID="WT_LoadingProgressBarr" >
</asp:Image>
</telerik:RadAjaxLoadingPanel>
</td>
</tr>
</table>