locked
ValidatorCalloutExtender does not work with MaskedEditExtender1 RRS feed

  • Question

  • User-1925511585 posted

    hi

     my problem is when i used ValidatorCalloutExtender with MaskedEditExtender, it does not display error message correctly. It display message "This Control is invalid" instead of the error message specify in MaskedEditExtender as EmptyValueMessage.

     i think this is problem occured due to MaskedEditExtender does not have ErrorMessage property.

     I need solution immediately. send me ur suggetion or solution as soon as possible.

     thanx in advance.

    PRATIk

    Thursday, April 5, 2007 2:37 AM

All replies

  • User1942332929 posted

    Hi,

    The ValidatorCallout get errormessage  at initialize and the MaskEditValidator modifies errormessage during the execution.  For correct behavior for work  together  the MaskEditValidator  is necessary a small adjustment  in ValidatorCallout  to get errormessage at runtime. 

    I made a test with the code below and functioned OK:

    FILE : ValidatorCalloutBehavior.js

    At line ~167 insert ID of cell :

    errorMessageCell.id = "vldcalloutErrMsg" + this.get_element().id;

    At line ~275 Show Popup  function changed  to

    show : function(force) {
    if (force || !this._isOpen) {
       this._isOpen = true;
       if(force && AjaxControlToolkit.ValidatorCalloutBehavior._currentCallout) {
          AjaxControlToolkit.ValidatorCalloutBehavior._currentCallout.hide();
       }
       if(AjaxControlToolkit.ValidatorCalloutBehavior._currentCallout != null) {
          return;
       }

       // get erro message aty runtime here
       // *****************************************
       var errorMessageCell = $get("vldcalloutErrMsg" + this.get_element().id);
       errorMessageCell.innerHTML = this._getErrorMessage();
       // *****************************************

       AjaxControlToolkit.ValidatorCalloutBehavior._currentCallout =
    this
       this._popupBehavior.set_x(CommonToolkitScripts.getSize(this._elementToValidate).width);
      
    this._popupBehavior.show();
    }

    },

    Thursday, April 5, 2007 9:26 AM
  • User-709061315 posted

    Hi,

    Am not able to under stand your code. Can you explain briefly.

    Thanks 

    Warm Regards,

    Deva

    Thursday, December 13, 2007 4:50 AM
  • User1701475643 posted

    I think u have to use MaskedEditExtenderValidator to solve your problem

     

    I hope it can solve your problem.

    Thursday, December 13, 2007 10:53 PM
  • User-709061315 posted
    I used same MaskedEditExtenderValidator, but am not able to use Validatorcallout for this MaskedEditExtenderValidator control. Do u have any idea in this?
    Tuesday, December 18, 2007 6:33 AM