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

Q3 Beta Combobox problem

5 Answers 46 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Moon
Top achievements
Rank 2
Moon asked on 31 Oct 2008, 08:15 PM
I installed Q3 beta and setup a combo box.

I set autopostback to true, but when I change the index, it doesn't fire the SelectedIndexChanged event.

Any ideas?

5 Answers, 1 is accepted

Sort by
0
Moon
Top achievements
Rank 2
answered on 31 Oct 2008, 08:46 PM

I installed Q2 ajax and the combobox still does not validate.

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td colspan="3">
                    <telerik:RadComboBox ID="cmbSkins" runat="server">
                    </telerik:RadComboBox>
                </td>
            </tr>

I populate it in codebehind and set autopostback to true:

        With cmbSkins
            .AutoPostBack = True
            cmb.LoadSkinCombo(cmbSkins)
        End With


this event never fires, but I do step through the autopostback...

    Protected Sub cmbSkins_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles cmbSkins.SelectedIndexChanged

        SkinClass.ChangeSkin(CInt(cmbSkins.SelectedValue))

    End Sub

0
Rosi
Telerik team
answered on 03 Nov 2008, 06:56 AM
Hi Moon,

Please see our online example where everything works as expected. I suggest you review it and find the differences at your side.

Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Shinu
Top achievements
Rank 2
answered on 03 Nov 2008, 07:01 AM
Hi Moon,

Please add the onselectedindexchanged="cmbSkins_SelectedIndexChanged" event in RadComboBox in order to fire the SelectedIndexChanged event.

<telerik:RadComboBox ID="RadComboBox1" Runat="server"          
        AutoPostBack="True"  
        onselectedindexchanged="cmbSkins_SelectedIndexChanged" </telerik:RadComboBox> 

Thanks,
Shinu
0
Moon
Top achievements
Rank 2
answered on 03 Nov 2008, 03:25 PM
I use codebehind for building my controls and the event already has the "handles" clause:

   Protected Sub cmbSkins_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles cmbSkins.SelectedIndexChanged

This combo box works when on a page by itself, but when added to a form, it no longer works. I will create a project and hopefully be able to submit it.
0
Moon
Top achievements
Rank 2
answered on 03 Nov 2008, 03:56 PM
I found my problem. I had a required form validator on the page and it was hitting that and not allowing a postback.

thanks.

(hangs head in shame).
;(
Tags
ComboBox
Asked by
Moon
Top achievements
Rank 2
Answers by
Moon
Top achievements
Rank 2
Rosi
Telerik team
Shinu
Top achievements
Rank 2
Share this question
or