0

明確なエラー:

「Telerik.Web.UI.RadTreeNodeEventArgs」には「SourceDragNode」の定義が含まれておらず、タイプ「Telerik.Web.UI.RadTreeNodeEventArgs」の最初の引数を受け入れる拡張メソッド「SourceDragNode」が見つかりませんでした (using ディレクティブがありませんか?またはアセンブリ参照?)

コード:

  protected void rtvContainers_NodeDrop(object o, Telerik.Web.UI.RadTreeNodeEventArgs e)
  {
     // Update the parent container for the source node
     this.EditObject = OrganizationContainer.Get(new Guid(e.SourceDragNode.Value));
     ViewState["EditId"] = this.EditObject.OrganizationContainerId;
     this.EditObject.ParentOrganizationContainerId = new Guid(e.DestDragNode.Value);
     this.BindForm();
     this.EditObject.EndEdit();
     this.EditObject.Save();

     // Rebind the tree
     if (rtvContainers.SelectedNode != null)
        rtvContainers.SelectedNode.Selected = false;
     e.SourceDragNode.Selected = true;
     BindContainersTreeview();
     BindParentContainerCombobox();
  }

明確なエラー:

「Telerik.Web.UI.RadTreeNodeEventArgs」には「DestDragNode」の定義が含まれておらず、タイプ「Telerik.Web.UI.RadTreeNodeEventArgs」の最初の引数を受け入れる拡張メソッド「DestDragNode」が見つかりませんでした (using ディレクティブがありませんか?またはアセンブリ参照?)

コード:

  protected void rtvContainers_NodeDrop(object o, Telerik.Web.UI.RadTreeNodeEventArgs e)
  {
     // Update the parent container for the source node
     this.EditObject = OrganizationContainer.Get(new Guid(e.SourceDragNode.Value));
     ViewState["EditId"] = this.EditObject.OrganizationContainerId;
     this.EditObject.ParentOrganizationContainerId = new Guid(e.DestDragNode.Value);
     this.BindForm();
     this.EditObject.EndEdit();
     this.EditObject.Save();

     // Rebind the tree
     if (rtvContainers.SelectedNode != null)
        rtvContainers.SelectedNode.Selected = false;
     e.SourceDragNode.Selected = true;
     BindContainersTreeview();
     BindParentContainerCombobox();
  }

明確なエラー:

「Telerik.Web.UI.RadTreeNodeEventArgs」には「NodeClicked」の定義が含まれておらず、タイプ「Telerik.Web.UI.RadTreeNodeEventArgs」の最初の引数を受け入れる拡張メソッド「NodeClicked」が見つかりませんでした (using ディレクティブがありませんか?またはアセンブリ参照?)

コード:

  protected void sectionTree_NodeExpand(object o, RadTreeNodeEventArgs e)
  {
     Guid? parentId = NullableParser.GetNullable<Guid>(e.NodeClicked.Value);
     if (parentId.HasValue)
     {
        foreach (SiteSection section in SiteSectionCollection.GetChildrenOf(parentId.Value))
        {
           RadTreeNode node = new RadTreeNode(section.Name, section.AssetId.ToString());
           node.ExpandMode = ExpandMode.ServerSideCallBack;
           e.NodeClicked.Nodes.Add(node);
        }
     }
  }

明確なエラー:

「Telerik.Web.UI.RadTreeNodeEventArgs」には「NodeEdited」の定義が含まれておらず、タイプ「Telerik.Web.UI.RadTreeNodeEventArgs」の最初の引数を受け入れる拡張メソッド「NodeEdited」が見つかりませんでした (using ディレクティブがありませんか?またはアセンブリ参照?)

コード:

  protected void rtvContainers_NodeEdit(object o, RadTreeNodeEventArgs e)
  {
     // Update the parent container for the source node
     this.EditObject = OrganizationContainer.Get(new Guid(e.NodeEdited.Value));
     ViewState["EditId"] = this.EditObject.OrganizationContainerId;
     this.EditObject.Name = e.NodeEdited.Text;
     this.BindForm();
     this.EditObject.EndEdit();
     this.EditObject.Save();
  }

明確なエラー:

「Telerik.Web.UI.RadTreeNodeEventArgs」には「NewText」の定義が含まれておらず、タイプ「Telerik.Web.UI.RadTreeNodeEventArgs」の最初の引数を受け入れる拡張メソッド「NewText」が見つかりませんでした (using ディレクティブがありませんか?またはアセンブリ参照?)

コード:

  protected void RadTreeView1_NodeEdit(object o, RadTreeNodeEventArgs e)
  {
     // Load the folder being edited
     RadTreeNode nodeEdited = e.NodeEdited;
     Guid currentFolderId = new Guid(nodeEdited.Value);

     try
     {
        // Try to change the folder's name
        UpdateFolder(currentFolderId, e.NewText);
        nodeEdited.Text = e.NewText;
     }
     catch (Exception ex)
     {
        errorValidator.IsValid = false;
        errorValidator.ErrorMessage = "Unable to update folder name: " + e.NodeEdited.Text;
        LogHelper.Log(ex);
     }
  }

バックグラウンド:

「RadControls for ASP.NET」から「RadControls for ASP.NET AJAX」にアップグレードする際、いくつかの問題に遭遇しました。web.config ファイルは、アップグレード ウィザードによって変換されました。最初に 233 の .NET コンパイル エラー (28 の個別のエラー) をすぐに解決しましたが、まだ解決していない大幅な API の変更により 36 のエラー (13 の個別の問題) が残っています。時間を節約するために、これらの 13 個のエラーをスタック オーバーフローに関する質問として投稿します。待っている間、彼らのコントロール デモをダウンロードして、最新リリースでコントロールがどのように機能するかを理解し、他の人が回答していないものについては自分で回答します。

4

1 に答える 1

0

これらのエラーはすべて古いデモ プロジェクトからのものであることがわかりました...これらすべてのメソッドで [すべての参照を検索] をクリックしましたが、何も表示されませんでした。そのため、最新リリースの API には含まれていないため、それらをコメントアウトして忘れています。

于 2011-08-31T19:40:59.467 に答える