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

[Solved] DropDown not working when clicking text or image

3 Answers 202 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 27 Mar 2009, 01:52 PM

Hi Telerik.

I have added a RadComboBox to a sharepoint editorpart. The combobox is rendered correctly but when clicking the arrow image or text nothing happens the list of items is not rolling down. !! i can't even select the first item in the list. its like the combox is disabled!!

the combox is added at runtime and so are the items. !!

Ajax is enabled on the sharepoint site

it looks something like this:

 

 

 

combo.EnableViewState =

true;

 

combo.ShowDropDownOnTextboxClick =

true;

 

 


foreach
(SPListItem item in locationList.Items)

 

    {

    Telerik.Web.UI.

RadComboBoxItem comboItem = new Telerik.Web.UI.RadComboBoxItem();

 

    comboItem.BackColor = System.Drawing.

Color.Gold;

 

 

        foreach (SPListItem webpartLocation in webPartLocationItems)

 

        {

 

            if (webpartLocation["LocationsID"].ToString().ToUpper().Equals(item.UniqueId.ToString().ToUpper()))

 

            {

                comboItem.BackColor = System.Drawing.

Color.Green;

 

            }

        }

 

        
        comboItem.Value = item.UniqueId.ToString();

        comboItem.Text = item[

"Title"].ToString();

 

 

        
        combo.Items.Add(comboItem);

 

    }

 

 

 

 

Controls.Add(

new LiteralControl("Combo:<br/>"));

 

Controls.Add(combo);

Do you have any idea on whate im doing wrong?

 

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 31 Mar 2009, 08:24 AM
Hello Martin ,

It is possible that the scripts of ComboBox do not load properly.

Could you verify whether the appearance of the control changes when you move the mouse cursor over it?

Additionally, do you receive any JavaScript errors? Are there other AJAX controls on the page and are they working properly?

All the best,
Simon
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Martin
Top achievements
Rank 1
answered on 03 Apr 2009, 08:50 AM
Hi Simon.

No javascript errors is appearing.

and the appearence of the control does not changes when moving the mouse over it.

Maybe you are rigth that the control isn´t loaded correctly i tried adding some other javascript control and it isn´t loaded as well. !!

Martin l


0
Simon
Telerik team
answered on 06 Apr 2009, 12:56 PM
Hi Martin ,

Thank you for the additional information.

This confirms that the scripts, associated with the control are not properly loaded on the page.

Could you open a formal support ticket and send us your WebPart there, so that we try integrating it in a test Sharepoint site and reproduce the error? This will give us the possibility to inspect the WebPart in detail and hopefully provide a solution or a workaround.

Kind regards,
Simon
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Martin
Top achievements
Rank 1
Answers by
Simon
Telerik team
Martin
Top achievements
Rank 1
Share this question
or