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

Show alert message while validating data in RadComboSelectedIndexChanged event

2 Answers 141 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Pams
Top achievements
Rank 1
Pams asked on 24 Aug 2011, 04:20 PM
Hi,
I am using RadComboBox.
It has server SelectedIndexCHangedEvent and is in RadAjaxSetting.
Inside the event, based on the value selected, i will do some valildations and if validation is passed will update some other controls in the page
If the validation fails, i should return and throw a confirm message.
The problem here is , If the Combo is not inside AjaxManager the alert message is shown properly, but if it is inside AjaxManager, then it is not throwing alert message.
I observed one thing, if I use RadAjaxManager.Alert("Validation failed") it works correctly.
But we are using customized window for throwing alert and confirm messages.
RadAjaxManager.Alert() is throwing with the default alert window style.
Could u pls suggest a way to throw alert messages with our customized window and return from the event if the validation fails.

Thanks
AV

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Aug 2011, 05:01 AM
Hello Pams,

You could use the new server methods RadAlert, RadConfirm and RadPrompt of the RadWindowManager to call the dialog prompt.
C#:
RadWindowManager1.RadAlert("RadAlert is called from the server", 330, 100, "Server RadAlert", "alertCallBackFn");

Also check the following demo for more on this.
Window / Alert, Prompt, Confirm.

Thanks,
Princy.
0
Pams
Top achievements
Rank 1
answered on 23 Sep 2011, 03:43 AM
Hi,
Thanks for your reply. Yes I  am able to user RadWindowManager.RadAlert which is throwing messages in a RadAlert window
Actually we are using one jquery window for all alert notifications.
How can I use our customized window and throw alert messages when the control is in the RadAjaxManager.

Thanks,
Anu
Tags
ComboBox
Asked by
Pams
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Pams
Top achievements
Rank 1
Share this question
or