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

[Solved] Using RadCombobox in RadGrid

2 Answers 183 Views
Grid
This is a migrated thread and some comments may be shown as answers.
314
Top achievements
Rank 1
314 asked on 27 May 2008, 03:33 AM
I would like to add two radcombobox in the RadGrid to do the Edit and Add function, when I click the first radcomobox, the second radcomobox will bind other data depend on the first radcomobox input value. I attempt to try


  Protected Sub RadComboBox1_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles RadComboBox1.SelectedIndexChanged
        Me.RadComboBox2.DataSource = "SqlDataSource3"
        Me.RadComboBox2.DataBind()
    End Sub

But nothing happen when the system after autopost
How can I do?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 May 2008, 04:52 AM
0
314
Top achievements
Rank 1
answered on 27 May 2008, 05:35 AM
For the example, it use the dropdownlist, if I change to RadCombobox, that's something error on it.
I change to 
Dim list As DropDownList = CType(CType(e.Item, GridEditableItem)("ddlOrderID").Controls(0), DropDownList)

to 
Dim list As RadCombobox= CType(CType(e.Item, GridEditableItem)("ddlOrderID").Controls(0), RadCombobox)

And the error is Error 
Method 'Private Sub list_SelectedIndexChanged(sender As Object, e As System.EventArgs)' does not have the same signature as delegate 'Delegate Sub RadComboBoxSelectedIndexChangedEventHandler(o As Object, e As Web.UI.RadComboBoxSelectedIndexChangedEventArgs)

How can I fix it? As I am a dummy in ASP.NET

Tags
Grid
Asked by
314
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
314
Top achievements
Rank 1
Share this question
or