Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6557541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:05:12+00:00 2026-05-25T13:05:12+00:00

Distinct error: The name ‘ExpandMode’ does not exist in the current context Code: protected

  • 0

Distinct error:

The name ‘ExpandMode’ does not exist in the current context

Code:

  protected void Page_Load(object sender, EventArgs e)
  {
     if (!this.IsPostBack && !this.sectionTree.IsCallBack)
     {
        //populate the first level of tree nodes
        foreach (SiteSection section in SiteSectionCollection.GetRootSections())
        {
           RadTreeNode node = new RadTreeNode(section.Name, section.AssetId.ToString());
           node.ExpandMode = ExpandMode.ServerSideCallBack;
           this.sectionTree.Nodes.Add(node);
        }
     }
  }

Background:

When upgrading from “RadControls for ASP.NET” to “RadControls for ASP.NET AJAX”, I ran into several issues. The web.config file was converted by the Upgrade Wizard. I started with 233 .NET compilation errors (28 distinct errors) which I quickly resolved, but I still have 36 errors (13 distinct issues) left from drastic API changes that I still haven’t resolved. I will post these 13 errors as questions on stack overflow to save me some time. While I’m waiting I will try downloading their control demos and understand how the controls work for their newest release and answer them myself for those others haven’t answered.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:05:13+00:00Added an answer on May 25, 2026 at 1:05 pm

    One thing to keep in mind is that the RadControls for ASP.NET AJAX are different from the RadControls for ASP.NET. The later (non-AJAX controls) are quite old at this time, and lack a lot of the functionality that the new controls (ASP.NET AJAX) will contain. This can cause some API calls to be different, as you have seen above, but taking a look over the demos or documentation to look at the functionality you currently have implemented is a good step for figuring out how to implement them in this new product.

    As for the issue at hand here, you should just be able to use the TreeNodeExpandMode property which is part of the RadControls for ASP.NET AJAX, as opposed to the ExpandMode which is a part of the RadControls for ASP.NET. For more information about the various expand modes you can look into this demo.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Or are they two distinct applications that are not related?
What column does DISTINCT work with in JPA and is it possible to change
Error i m getting is:- mohit@mohit-laptop ~/Desktop/code $ rake thinking_sphinx:index (in /home/mohit/Desktop/code) Generating Configuration
I have the following query SELECT * FROM ( select distinct r1.rep_code, r1.contact_id, c1.Name,
syntax error at BCHF_VOU_NUM +' '+ BCHF_VOU_DTE set @m_sql = 'Select distinct BCHF_VOU_NUM, BCHF_VOU_DTE,
I can not figure out what is wrong with this syntax: $categorynameresult='SELECT DISTINCT cat_name
I have the following query: SELECT wm_concat(DISTINCT NAME) as Methods FROM TPM_TRAININGPLAN JOIN TPM_DELIVERYMETHODS
select distinct constraint_type from user_constraints; C - C P R U Seems P means
SELECT DISTINCT group_id , supplier_id , supplier_name , site_division_id , site_division_name FROM view_supplier_site WHERE
SELECT DISTINCT wposts.* FROM wp_2_posts wposts, wp_2_postmeta wpostmeta, wp_2_postmeta wpostmeta1, wp_2_term_taxonomy, wp_2_terms, wp_2_term_relationships WHERE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.