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

Cascading combobox in RadGrid Edit Form

3 Answers 200 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sanjay
Top achievements
Rank 1
Sanjay asked on 10 Dec 2010, 03:27 PM
I have the following aspx code:
<telerik:RadComboBox ID="rcbEditProject" runat="server" SkinID="ddRegular" Width="375px" AutoPostBack="True" OnSelectedIndexChanged="rcbEditProject_SelectedIndexChanged">
</telerik:RadComboBox>

And I have this code in code behind:

 

 

 

Protected Sub rcbEditProject_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)
Dim editedItem As GridEditableItem = CType(CType(o, RadComboBox).NamingContainer, GridEditableItem)
Dim rcbEditObstacle As RadComboBox = CType(editedItem.FindControl("rcbEditObstacle"), RadComboBox)
Dim rcbEditProject As RadComboBox = CType(editedItem.FindControl("rcbEditProject"), RadComboBox) rcbEditObstacle.Items.Clear()
Dim dtEditObstacle As Data.DataTable = Nothing
If rcbEditProject.SelectedValue = "" Then
Else
' I have the code to populate the child radcombo box .....

End
Sub

Problem:
My RadGrid is in RadAjax panel. In the Item data bound for Grid I am able to populate the values fine.
My problem is when I change the value in the Parent 'rcbEditProject' combo box the selected index changed EVENT IS NOT FIRED.
If I have a break in the grid item data bound procedure it DOES trigger the Break point!
The other strange thing is that when I click the 'Cancel' button (see code below) the selected index changed event is FIRED?

 

 

 

 

 

 

 

<asp:LinkButton runat="server" ID="lnkCancel" Text="Cancel" SkinID="lnkGvEditText" Font-Bold="true" CommandName="Cancel" CausesValidation="False" />

Please help?
Thanks Sanjay


 

 

 

3 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 11 Dec 2010, 01:46 PM
Hi Sanjay,

Please check out the following code library which demonstrates how to use cascade RadComboBoxes into the RadGrid Insert/Edit form
http://www.telerik.com/community/code-library/aspnet-ajax/grid/using-cascading-radcomboboxes-into-the-radgrid-insert-edit-form.aspx

Kind regards,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Mark
Top achievements
Rank 1
answered on 16 Dec 2010, 05:34 PM
That link is Broken. Does someone have another link?
0
Radoslav
Telerik team
answered on 16 Dec 2010, 06:01 PM
Hi Mark,

Could you please try using this link.

All the best,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Sanjay
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Mark
Top achievements
Rank 1
Share this question
or