1. #1
    Ext User LouisArquie's Avatar
    Join Date
    Nov 2008
    Location
    Silicon Valley
    Posts
    20
    Vote Rating
    0
    LouisArquie is on a distinguished road

      0  

    Default Validation QuickTips to replace 'hint' QuickTips

    Validation QuickTips to replace 'hint' QuickTips


    First post here.
    Thanks for a fantastic framework that I have been using for now more than 3 months.

    I have a 'hint' QuickTips over a DateField:
    Ext.QuickTips.register({
    target: 'prc_startdate',
    title: 'm/d/Y format, e.g. 5/17/09'
    });

    My problem is that these blocks any automatic validation QuickTips that comes on an invalid field.
    How can I overwrite the 'hint' QuickTips with the 'invalid' QuickTips?

    Thanks in advance!

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Instead of registering a QuickTip you could also mark the field invalid with the hint message, e.g.
    Code:
    Ext.getCmp('prc_startdate').markInvalid('m/d/Y format, e.g. 5/17/09');
    Or you could change the msgTarget to side, so the error is displayed as an icon with a QuickTip instead of a QuickTip on the element itself.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar