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

Multiple RadComboBoxes in Popup Edit form

3 Answers 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 2
Steve asked on 13 Nov 2008, 06:00 AM
I have a pretty simple scenario where I have 2 RadComboBox controls in a RadGrid EditMode="Popup".  Changing the value of one comboBox enables/disables the other, so I handle the server-side OnSelectedIndexChanged event handler (w/ AutoPostBack="true") of the primary combo.  This works just fine, but the small problem is that the popup temporarily disappears, similar to a screen flash on a regular postback.  Exact same code with EditMode="EditForms" worked with no screen flash.  Any way around this?

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 17 Nov 2008, 12:06 PM
Hi Steve,

I suggest you to perform the same on the client in order to avoid the postback (enable()/disable() methods). Please check this article for more info:
http://www.telerik.com/help/aspnet-ajax/combo_clientsideradcombobox.html

Greetings,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Steve
Top achievements
Rank 2
answered on 18 Nov 2008, 09:27 PM
Client-side won't work in this scenario because the dependent comboBox is enabled/disabled based on a database check (which means I need to goto the server).  I'd really like to use this "popup" edit form functionality built into RadGrid (as opposed to using RadWindow), but this little screen flash thing might make it unusable.  Any help is appreciated.
0
Vlad
Telerik team
answered on 19 Nov 2008, 07:15 AM
Hello Steve,

Unfortunately in case of traditional post-back (or ajax request) the grid will be disposed (and recreated) which cause this screen flash. You can invoke on the client for example a static page or web service method to check desired field value in your data-base to avoid traditional post-back or ajax request.

Greetings,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Steve
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Steve
Top achievements
Rank 2
Share this question
or