in
Forums
Blogs
DevExpress.com
Client Center
Support Center
DevExpress Channel

Validation Error Messages showing on CallbackPanel Callback event

Last post 11/20/2008 4:36 AM by Kyaw Thurein. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 9/8/2008 12:17 PM

    Validation Error Messages showing on CallbackPanel Callback event

     I have a Grid at the top of my page and a form below with several input fields. Some of the input fields are using Validation for the onSumbit event on the button. This work fines. However, I do have a feature where the user can look up an item by click the Look Up button. This button has this attribute and value in it:

    Click="function(s, e) {cbp.PerformCallback('Bind');}"

    This do works fine. But when this event is fired all of my validation error messages show up on the page, even though the user is not submitting the data, just looking up the data. How can I prevent the validaion errors from showing when the user clicks the Look Up button? I know it probably has something to do with the PostBack, Callback methods, but I am not sure what to do.

    Thanks.

     

     

     

     

     

     

  • 9/9/2008 6:46 AM In reply to

    Re: Validation Error Messages showing on CallbackPanel Callback event

    Hi Jooe,
    Make sure, that your ASPxButton has these attributes:

    AutoPostBack="False" CausesValidation="False"

    Victor
    R&D, ASP.NET Team, DevExpress Inc.

    P.S. If you wish to receive direct assistance from our Support Team, use Support Center.
  • 11/20/2008 4:36 AM In reply to

    Re: Validation Error Messages showing on CallbackPanel Callback event

    Hi Victor,

             I encountered the same problem but my case is slightly different.

             Inside EditForm template of ASPxGridView, I put two ASPxCombobox(es) which the first combobox has the following client side event to trigger CustomCallback event on the server.

              <ClientSideEvents SelectedIndexChanged="function(s, e) {                                                   
                                                                  ComboBox2.ClearItems();                                                   
                                                                  GridView1.PerformCallback(s.GetValue());
                                                    }" />

              The CustomCallback event is merely used to assign session variable which will be consumed by the ObjectDataSource of ComboBox2 to populate the items based on the value selected from ComboBox1. The problem is that whenever I choose an item from ComboBox1, the validation event of Combox2 is fired. So how could I prevent PerformCallback() from causing the validation of all controls inside the EditForm template.

    P.S/ Both ComboBoxes have required validators.

    Regards,

    Thurein

Page 1 of 1 (3 items)
Copyright © 1998-2009 Developer Express Inc.
ALL RIGHTS RESERVED