Ajaxified RadTreeList with user control CRUD combobox not dropping down

4 posts, 1 answers
  1. Kevin
    Kevin avatar
    28 posts
    Member since:
    Dec 2008

    Posted 28 Oct 2012 Link to this post

    So I have a rad tree list.  In there I am using a user control  that is getting it's data source from code behind.

    protected override void OnInit(EventArgs e)
    {
        //
        // CODEGEN: This call is required by the ASP.NET Web Form Designer.
        //
        InitializeComponent();
        base.OnInit(e);
        listOfMenuTypes = new SubCategory().SelectAllSubCategoriesBySiteNotDeleted(ThisSiteID).Where(i => i.CategoryID == new Category().SelectCategoryByDescriptionAndSiteIDNotDeleted("Menu Types", ThisSiteID).LookupCategoryID).ToList();
    }

    and then I set the combobox data source like this

    protected void HomeDocumentForm_DataBound(object sender, EventArgs e)
    {
        MenuSelectList.DataSource = listOfMenuTypes;
        MenuSelectList.DataTextField = "TypeDescription";
        MenuSelectList.DataValueField = "LookupTypeID";
        MenuSelectList.DataBind();
    }

    If I remove the ajaxification it works perfectly.  If I leave it the combo box won't drop down.

    I could use some help on this.
  2. Kevin
    Kevin avatar
    28 posts
    Member since:
    Dec 2008

    Posted 31 Oct 2012 Link to this post

    bump.  Anyone?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 01 Nov 2012 Link to this post

    Hi,

    Most probably the problem comes from a JavaScript error. Please check for JavaScript errors using some JS debugger like FireBug of F12 in IE. Additionally, you could check how to enable the Script debugging in IE in this MSDN thread.

    If this does not helps please provide your full page source code along with the code-behind file content. Thus all the people who want to help you will have better understanding of your case.

    Greetings,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  5. Kevin
    Kevin avatar
    28 posts
    Member since:
    Dec 2008

    Posted 01 Nov 2012 Link to this post

    There was an error.  It was that my function was undefined.  The problem was that I didn't wrap the <script> inside of a RadScriptBlock.  So it was showing as undefined when it was ajaxified. 
Back to Top