Show alert message while validating data in RadComboSelectedIndexChanged event

3 posts, 0 answers
  1. Pams
    Pams avatar
    61 posts
    Member since:
    Sep 2010

    Posted 24 Aug 2011 Link to this post

    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.

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 25 Aug 2011 Link to this post

    Hello Pams,

    You could use the new server methods RadAlert, RadConfirm and RadPrompt of the RadWindowManager to call the dialog prompt.
    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.

  3. Pams
    Pams avatar
    61 posts
    Member since:
    Sep 2010

    Posted 22 Sep 2011 Link to this post

    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.

Back to Top