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

[Solved] Loading panel not showing triggered by treeview inside combobox

1 Answer 123 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
taeho
Top achievements
Rank 1
taeho asked on 29 Mar 2009, 03:55 PM
Hi there,

I add nodes dynamically to a treeview inside radcomboBox.

if (CountryComboBox.Items.Count == 0)
            {
                CountryComboBox.Items.Add(new RadComboBoxItem());
            }

            RadTreeView CountryTree = (RadTreeView)CountryComboBox.Items[0].FindControl("CountrySelector");
            CountryTree.Nodes.Clear();

            // communicate the tree's clientside via the attributes collection
            CountryComboBox.Items[0].Attributes["TreeID"] = CountryTree.ClientID;

            CountryTree.DataTextField = "Title";
            CountryTree.DataFieldID = "ID";
            CountryTree.DataValueField = "ID";
            CountryTree.DataSource = Countries;
            CountryTree.DataBind();

When I run it, it doesn't display loading image.

I tried

<telerik:RadAjaxManager runat="server" ID="MyAjaxManager" EnableAJAX="true" DefaultLoadingPanelID="LoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="CountryComboBox">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="CourseFinderSearchResults" />
                    <telerik:AjaxUpdatedControl ControlID="BrandSelector" />
                    <telerik:AjaxUpdatedControl ControlID="PriceSliderPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>

OR 

<telerik:RadAjaxManager runat="server" ID="MyAjaxManager" EnableAJAX="true" DefaultLoadingPanelID="LoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="CountrySelector">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="CourseFinderSearchResults" />
                    <telerik:AjaxUpdatedControl ControlID="BrandSelector" />
                    <telerik:AjaxUpdatedControl ControlID="PriceSliderPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>

OR 

if (CountryComboBox.Items.Count == 0)
            {
                CountryComboBox.Items.Add(new RadComboBoxItem());
            }

            RadTreeView CountryTree = (RadTreeView)CountryComboBox.Items[0].FindControl("CountrySelector");
            CountryTree.Nodes.Clear();

            // communicate the tree's clientside via the attributes collection
            CountryComboBox.Items[0].Attributes["TreeID"] = CountryTree.ClientID;

            CountryTree.DataTextField = "Title";
            CountryTree.DataFieldID = "ID";
            CountryTree.DataValueField = "ID";
            CountryTree.DataSource = Countries;
            CountryTree.DataBind();

            MyAjaxManager.AjaxSettings.AddAjaxSetting(CountryTree, CourseFinderSearchResults);
            MyAjaxManager.AjaxSettings.AddAjaxSetting(CountryTree, BrandSelector);


None of them works.

My client side code is like that
<telerik:RadComboBox
                          Width="200"
                          DropDownWidth="200"
                          Height="100"
                          ID="CountryComboBox"
                          Skin="Telerik"
                          Runat="server"
                          EmptyMessage="All Countries"
                          OnClientDropDownOpened="OnCountryComboClientDropDownOpenedHandler"
                          AllowCustomText="true">
                                <ItemTemplate>
                                    <div id="div2">
                                        <telerik:RadTreeView ID="CountrySelector"
                                            runat="server"
                             Height="100"
                             Width="200"
                             OnNodeCheck="CountrySelected"
                             ShowLineImages="false"
                             OnClientNodeChecked="onCountryNodeChecked"
                                OnClientNodeClicking="CountryNodeClicking" CheckBoxes="true">
                                        </telerik:RadTreeView>
                                    </div>
                                </ItemTemplate>
                            </telerik:RadComboBox>

Appreciate your help,

Toby

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 01 Apr 2009, 12:09 PM
Hi taeho,

Could you please be more specific - is the loading panel missing at all, or it is just not showing over the TreeView? Can you confirm that postback happens when a TreeView node is clicked?

Pasting your client code might be of help.

Looking forward your reply,
Iana
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
taeho
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or