| <?xml version="1.0" encoding="utf-8" ?> |
| <Tree > |
| <Node PostBack="false" Text="Project Data" > |
| <Node Text="SingleProject Data" Expanded="False" PostBack="false" > |
| <Node Text="Home" NavigateURL="#" Value="Home.aspx"></Node> |
| <Node PostBack="false" Text="Project Management" > |
| <Node Text="Configuration" NavigateURL="#" Value="Configuration.aspx"></Node> |
| </Node> |
| <Node PostBack="false" Text="Project Detail"> |
| <Node Text="Shipping" NavigateURL="#" Value="Shipping.aspx" /> |
| <Node Text="Building" NavigateURL="#" Value="Building.aspx" /> |
| </Node> |
| </Node> |
| </Node> |
| </Tree> |
| protected void NodeClick(object sender, RadTreeNodeEventArgs e) |
| { |
| if (e.Node.NavigateUrl == "#") |
| RadAjaxManager1.Redirect(e.Node.Value); |
| } |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True"> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadTreeView1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="pHeaderAjax" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| <telerik:AjaxUpdatedControl ControlID="pContentAjax" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |

Hi,
I am writing a Telerik asp.net web site and having a problem I haven't seen before.
Start VS2008, open first aspx file. I can add Telerik controls. Switch to another aspx document attempt to add a Telerik control and a huge amount of mark up is inserted rather than the control (and does not function). Doesn't matter which aspx file I start with, when I switch to another one, I get the gibberish if I insert a control.
Could be unrelated: I recently "moved" my Documents folder to another drive.
This is a snippet of the load of text inserted rather than a valid control.
| <soap-env:envelope soap-env:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <soap-env:body> |
| <a1:webcontroltoolboxitem id="ref-1" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/System.Web.UI.Design/System.Design%2C%20Version%3D2.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db03f5f7f11d50a3a"> |
| <locked>true</locked> |
| <filter href="#ref-5"> |
| </filter> |
| <bitmap href="#ref-6"> |
| </bitmap> |
| <assemblyname href="#ref-7"> |
| </assemblyname> |
| <displayname id="ref-8">RadTextBox</displayname> |
| <dependentassemblies href="#ref-9"> |
| </dependentassemblies> |
| <description id="ref-10">Telerik RadInput</description> |
| <typename id="ref-11">Telerik.Web.UI.RadTextBox</typename> |
| <company id="ref-12">Telerik</company> |
| <propertynames href="#ref-13"> |
| </propertynames> |

I have radPanel bar on a page to which I am adding panel items dynamically with user controls. I want to Ajaxify the radpanel item. When user clicks on Save button on the user control I just want to post that current PanelItem. I am trying to do this by following code. I get Error Assertion failed length of elements and json must be the same.
This is the code to Add item dynamically:
With radPanelNew
.Text = account.Name.ToString
.Value = account.Id.ToString
.Font.Italic = True
.Font.Underline = True
.Font.Size = 10
'.ID = account.Id.ToString
End With
Select Case account.Type.Text
Case Entities.Account.AccountType.Bank.ToString
If account.SubType.Text = Entities.Account.SubAccountType.Savings.ToString Then
Dim ucSavings As SubscriberSetupPages_UserControls_SavingsAccount = CType(LoadControl("~/SubscriberSetupPages/UserControls/SavingsAccount.ascx"), SubscriberSetupPages_UserControls_SavingsAccount)
ucSavings.AccountID = account.Id
ucSavings.ID = "SA" & account.Id.ToString
acct = DirectCast(ucSavings.FindControl("acct1"), SubscriberSetupPages_UserControls_Account)
radPanelNewChild.Controls.Add(ucSavings)
radPanelNew.Items.Add(radPanelNewChild)
With radParentItem
.Items.Add(radPanelNew)
.DataBind()
.Expanded = True
End With
This is the code to Ajaxify radpanelitem:
Private Sub pnlBarAccounts_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles pnlBarAccounts.ItemCreated
' Following code is to Ajaxify RadPanelItem
Dim acct As UserControl
If e.Item.Controls.Count > 0 Then
If Not IsNothing(e.Item.Controls(0)) Then
If Not IsNothing(e.Item.Controls(0).ID) Then
Select Case (e.Item.Controls(0).ID.ToString).Substring(0, 2)
Case "SA"
acct = DirectCast(e.Item.Controls(0), SubscriberSetupPages_UserControls_SavingsAccount)
End Select
End If
End If
End If
If Not IsNothing(acct) Then
Dim btnSave As ImageButton = DirectCast(acct.FindControl("btnSave"), ImageButton)
If Not IsNothing(btnSave) Then
RadAjaxManagerProxyAcctSetup.AjaxSettings.AddAjaxSetting(btnSave, e.Item)
End If
End If
End Sub
