This is a migrated thread and some comments may be shown as answers.

Ajaxified RadTreeList with user control CRUD combobox not dropping down

3 Answers 50 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 28 Oct 2012, 04:38 PM
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.

3 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 1
answered on 31 Oct 2012, 08:21 PM
bump.  Anyone?
0
Accepted
Andrey
Telerik team
answered on 01 Nov 2012, 07:40 AM
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.
0
Kevin
Top achievements
Rank 1
answered on 01 Nov 2012, 06:31 PM
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. 
Tags
TreeList
Asked by
Kevin
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 1
Andrey
Telerik team
Share this question
or