Yann SAMAMA
Top achievements
Rank 1
Yann SAMAMA
asked on 28 Feb 2012, 04:13 PM
Hi Telerik,
I have a gridview with 2 cascading radComboBox inside.
I'm having some problems to DataBind and Populate these radComboBox in Forms Edit Mode In Place.
I turn autopostback to true and call the SelectedIndexChanged method on the first radComboBox. After finishing the event my radcombobox is unchanged.
I use LinqDataSource to populate my grid and my radcombobox.
How can i achieve this?
Many Thanks
Julien
I have a gridview with 2 cascading radComboBox inside.
I'm having some problems to DataBind and Populate these radComboBox in Forms Edit Mode In Place.
I turn autopostback to true and call the SelectedIndexChanged method on the first radComboBox. After finishing the event my radcombobox is unchanged.
I use LinqDataSource to populate my grid and my radcombobox.
How can i achieve this?
Many Thanks
Julien
6 Answers, 1 is accepted
0
Yann SAMAMA
Top achievements
Rank 1
answered on 01 Mar 2012, 12:18 PM
Please any help on that problem?
I tried many solutions these days and no one work fine.
I follow this thread : http://www.telerik.com/community/forums/aspnet-ajax/grid/cascading-comboboxes-in-radgrid-edit-form.aspx
and i still have problem with databinding on comboBox on postback.
I tried many solutions these days and no one work fine.
I follow this thread : http://www.telerik.com/community/forums/aspnet-ajax/grid/cascading-comboboxes-in-radgrid-edit-form.aspx
and i still have problem with databinding on comboBox on postback.
0
Hello Yann,
You could implement the desired functionality by following the help article and the code library resource shown below:
Greetings,
Antonio Stoilkov
the Telerik team
You could implement the desired functionality by following the help article and the code library resource shown below:
Greetings,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Tim
Top achievements
Rank 1
answered on 20 May 2013, 03:13 PM
The first link's example does not work, as the "SelectedIndexChanged" never fires for a ComboBox that is in a Grid (at least with in-line editing).
0
Hello Tim,
In order for the RadComboBoxSelectedIndexChanged event to fire the AutoPostBack property should be set to true. Additionally, I have downloaded the code library in the link below and only modified the EditMode by setting it to InPlace and the RadComboBox successfully fired its SelectedIndexChaged event.
Regards,
Antonio Stoilkov
Telerik
In order for the RadComboBox
Regards,
Antonio Stoilkov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Tim
Top achievements
Rank 1
answered on 23 May 2013, 01:26 PM
My issue was two-fold.
- You cannot use validators with their "EnableClientScript" set to true when you want to do AutoPostBack. It just won't work because Validators will intercept the PostBack and cancel it because the Row isn't valid.
- I had a RadDatePicker column and had set it's "Required" validation to be enabled. This was causing the above issue in #1 even though one would never see the validation error. Quite confusing, but once you understand #1, it makes sense. I had to use ALL Templated columns to accomplish the task and manually add validators and turn off their Client Script.
The above issue with validators might work fine with Client Script enabled if we could set the ValidationGroup on the Update button of the Row (in Inline Edit mode). I haven't found a way to do this yet. If all the controls had a different ValidationGroup than the default Blank one, then validation wouldn't fire while doing an AutoPostBack, but WOULD fire when a user clicks the Update button on a row. Any thoughts of how to do that?
0
Hi Tim,
You could achieve your scenario by subscribing to RadGrid ItemCreated event and finding the UpdateButton control. If the FindControl method returns a LinkButton you could set its ValidationGroup value as shown below.
Regards,
Antonio Stoilkov
Telerik
You could achieve your scenario by subscribing to RadGrid ItemCreated event and finding the UpdateButton control. If the FindControl method returns a LinkButton you could set its ValidationGroup value as shown below.
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e){ LinkButton button = e.Item.FindControl("UpdateButton") as LinkButton; if (button != null) { button.ValidationGroup = "YourCustomValidationGroup"; }}Regards,
Antonio Stoilkov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.