1. #1
    Ext User
    Join Date
    Jul 2007
    Posts
    20
    Vote Rating
    0
    marimuthup is on a distinguished road

      0  

    Default How to add the qtip to show error messages and tool tips

    How to add the qtip to show error messages and tool tips


    Hi,

    Could Some one help me to show the error messages thru the tool tip.

    If I type incorrect date it shows the red mark on the display field but not the error on qtip

    I am setting the property msgTarget : 'qtip'

    Following is the code snippet I am using.

    var startDate = new Ext.form.DateField({
    format:'m/d/Y',
    msgTarget : 'qtip',
    emptyText : "MM/DD/YYYY",
    maxValue : new Date()
    });
    startDate.setValue(new Date());
    startDate.applyTo('startDate');
    g_start_date = startDate.value;
    startDate.on('change', startDateChanged);
    function startDateChanged(record,index){
    g_start_date = startDate.value;
    }


    Thanks in advance.

    With regards
    P.Marimuthu

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    Did you include these 2 lines in your code?
    Code:
    Ext.QuickTips.init();
    Ext.form.Field.prototype.msgTarget = 'side';

  3. #3
    Ext User
    Join Date
    Jul 2007
    Posts
    20
    Vote Rating
    0
    marimuthup is on a distinguished road

      0  

    Default Qtip

    Qtip


    thanks a lot,

    It work cool on mouse over.

Thread Participants: 1