1. #881
    Ext User
    Join Date
    Aug 2010
    Posts
    2
    Vote Rating
    0
    Coil is on a distinguished road

      0  

    Default


    D'oh, obviously, sorry for the retard question :P
    I'll ask this tho, is it possible to specify the timeout for the typing in the search box? Something like if you dont type for 3 seconds then do actual request? it seems a bit fast right now, like if i type a bit slow i get multiple ajax requests... All i saw on the documentation are options for minchar and minlenght.

    Thanks for the quick response btw

  2. #882
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,133
    Vote Rating
    322
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    The buffer time is currently hardcoded (300 ms) - I'll make it configurable in the next version. It is this line:
    PHP Code:
                if(this.minChars) {
                    
    this.field.el.on({scope:thisbuffer:300keyup:this.onKeyUp});
                } 

  3. #883
    Ext User
    Join Date
    Sep 2010
    Posts
    13
    Vote Rating
    0
    Samuel.reed is on a distinguished road

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    (Regarding highlighting search terms in the grid)Good idea, however, I didn't try to do it. It calls for a custom renderer(s) that would highlight the search term, probably with the help of RegExp.
    Hey Jozef,

    I got it going. It makes a nice visual improvement to the search.

    For all those who want to give it a try, add this renderer to your grid:

    PHP Code:
    searchHighlightRenderer : function(value) {
            var 
    gridSearch this._getGridSearch();
            var 
    search gridSearch.field.getValue().toString();
            var 
    pos value.toLowerCase().indexOf(search.toLowerCase());
            
    // If there's a match, highlight it
            
    if (pos>=&& search != ""){
                var 
    retVal value.substring(0,pos) + "<font style='background-color: yellow'>"  
                           
    value.substring(pospos search.length) +
                           
    "</font>" value.substring(pos search.lengthvalue.length);
                return 
    retVal;
            }
            
    // Otherwise do nothing
            
    return value;
        } 
    Our js is a little strange, thus the odd syntax, but those of you who are somewhat experienced with extjs should get the picture. I had to call the renderer in this way, however:

    PHP Code:
        rendererthis.searchHighlightRenderer.createDelegate(this), 
    This makes sure that it can get your gridSearch object because JS is a little funny with "this" scope. Replace this._getGridSearch() with however you get your object, or just a reference to the object itself.

  4. #884
    Ext User
    Join Date
    Sep 2010
    Posts
    13
    Vote Rating
    0
    Samuel.reed is on a distinguished road

      0  

    Default TwinTriggerField spacing in IE8

    TwinTriggerField spacing in IE8


    Also, IE8 with old versions of Ext has trouble with the placement of the TwinTriggerField. I am using Ext 2.1 (old codebase) so it may be unique to me but I got the spacing going like this:

    PHP Code:
            // install event handlers on input field
            
    this.field.on('render', function() {
                
    this.field.el.dom.qtip this.minChars String.format(this.minCharsTipTextthis.minChars) : this.searchTipText;

                if(
    this.minChars) {
                    
    this.field.el.on({scope:thisbuffer:300keyup:this.onKeyUp});
                }
                
                
    // IE8 fix, replace with Ext.isIE8 if we ever upgrade Ext past 2.2.1
                
    var ver = -1;
                if (
    navigator.appName == 'Microsoft Internet Explorer')
                {
                    var 
    ua navigator.userAgent;
                    var 
    re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
                    if (
    re.exec(ua) != null)
                      
    ver parseFloatRegExp.$);
                }
                
                if (
    ver >= 8.0){
                    
    this.field.el.setTop.defer(10this.field.el, ['1px']);
                }
                
                
    // End IE fix 
    Of course, like in the comment, if you have above Ext 2.2 you can just use Ext.isIE8. The key line is "this.field.el.setTop.defer(10, this.field.el, ['1px']);". Be aware it will slightly mess up spacing on pre-IE8. And I believe that if you have Ext 3 or above the spacing issue no longer exists, so this is a fringe case. But I figured it would be useful to put this out there.

    An alternative way to fix this problem is to change the TwinTriggerField into a TriggerField, and renaming trigger1Class and onTrigger1Click to triggerClass and onTriggerClick. Considering the second trigger is always hidden, there is only a little loss in functionality - I have been unable to get a tooltip working on a TriggerField, at least in my app. So for now I'm using the above (ugly) fix.

  5. #885
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,133
    Vote Rating
    322
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Perfect! I'll try it to see how it looks. Meanwhile, could you post a screenshot?

    Re IE: I personally am not interested at all. I set "minimum system requirements" of my applications that say Safari or Firefox, no IE.

  6. #886
    Ext User
    Join Date
    Sep 2010
    Posts
    13
    Vote Rating
    0
    Samuel.reed is on a distinguished road

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    Perfect! I'll try it to see how it looks. Meanwhile, could you post a screenshot?

    Re IE: I personally am not interested at all. I set "minimum system requirements" of my applications that say Safari or Firefox, no IE.
    I can't post a screenshot, but it looks exactly as you'd think. Just yellow highlighting at every instance of the search term, in every column and row, even partial. So if you searched "foo", you would see wofoo, foobar, etc. Of course highlighted, not bold.

    As for IE, I wish I had that luxury. Unfortunately 90%+ of our users use it. Figuring out that IE8 bug was one of the head-smashingest times I've had all month. There are few things more frustrating than IE compatibility!

  7. #887
    Ext User
    Join Date
    Sep 2010
    Posts
    10
    Vote Rating
    0
    zoja is on a distinguished road

      0  

    Default


    Something's wrong with the download server. I keep getting errors like this one :

    Code:
    Duplicate entry '4386513' for key 1
    
    Query : INSERT INTO phpmv_link_vp (idvisit, idpage, idpage_ref, total_time_page_ref) VALUES ('1103364', '214', '214', '179')

  8. #888
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,133
    Vote Rating
    322
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Fixed - you can download now.

  9. #889
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,636
    Vote Rating
    400
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Saki,

    Nice plugin ... thanks.

    Question: What is the best way to setup a search if my grid field is rendered? The field value is numeric, the display value is text.

    The user would like to search on the text value.

    I saw there was reference to 'searchUsingRenderer' in your earlier posts, but I was unable to determine the final outcome.

    Regards,
    Scott.

  10. #890
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,133
    Vote Rating
    322
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    I don't use it in grids with renderers, however, I believe that it can be done. You need to back-translate the rendered value to the real value before you send it to the server. It can get quite complicate so I prefer the server to deliver final data that wouldn't need these tricks.

Thread Participants: 244

  1. franklt69 (5 Posts)
  2. galdaka (2 Posts)
  3. thameema (1 Post)
  4. Dumbledore (3 Posts)
  5. JeffBurr (1 Post)
  6. berend (1 Post)
  7. mystix (1 Post)
  8. salvi (1 Post)
  9. cobnet (1 Post)
  10. dawesi (2 Posts)
  11. mysticav (3 Posts)
  12. mike1993 (3 Posts)
  13. JorisA (1 Post)
  14. cricri (5 Posts)
  15. apaa (1 Post)
  16. mbstroz (5 Posts)
  17. notjoshing (1 Post)
  18. MeDavid (1 Post)
  19. AlxH (1 Post)
  20. pantarhei (5 Posts)
  21. DeeZ (3 Posts)
  22. NBRed5 (2 Posts)
  23. zoq (2 Posts)
  24. ajaxE (4 Posts)
  25. cmendez21 (1 Post)
  26. Ronaldo (1 Post)
  27. mjlecomte (25 Posts)
  28. smokeman (11 Posts)
  29. Nam (4 Posts)
  30. keithnlarsen (2 Posts)
  31. rednix (2 Posts)
  32. expertmo (4 Posts)
  33. cking (1 Post)
  34. jelt (4 Posts)
  35. bcamp1973 (2 Posts)
  36. grgur (2 Posts)
  37. dwt11 (1 Post)
  38. michiel (3 Posts)
  39. Shmoo (3 Posts)
  40. evilized (1 Post)
  41. fangstern (1 Post)
  42. vishalg (3 Posts)
  43. Strati (1 Post)
  44. ArtBuilders (6 Posts)
  45. dax (5 Posts)
  46. thatcoder (7 Posts)
  47. jcar98 (1 Post)
  48. derbbre (3 Posts)
  49. wm003 (1 Post)
  50. garraS (3 Posts)
  51. kenshin (1 Post)
  52. ByteLess (2 Posts)
  53. Lobos (1 Post)
  54. a4 (1 Post)
  55. durlabh (3 Posts)
  56. elDub (1 Post)
  57. rstuven (1 Post)
  58. crpatrick (4 Posts)
  59. zedisdead (1 Post)
  60. vector4711 (1 Post)
  61. oanimashaun (1 Post)
  62. donssmith (3 Posts)
  63. sanjshah (5 Posts)
  64. nielsendev (2 Posts)
  65. Jika (2 Posts)
  66. Cooldream (2 Posts)
  67. iTzAngel (1 Post)
  68. franck34 (2 Posts)
  69. paubach (2 Posts)
  70. stewart (1 Post)
  71. teknaut (4 Posts)
  72. pjesus (2 Posts)
  73. NotChris (5 Posts)
  74. juicymedia (2 Posts)
  75. v496820 (2 Posts)
  76. hazooma (1 Post)
  77. obbakilla (1 Post)
  78. BlueCamel (1 Post)
  79. feodor (1 Post)
  80. w3bbuilder (1 Post)
  81. johnsbrn (1 Post)
  82. razor (1 Post)
  83. seppy (3 Posts)
  84. stefanorg (3 Posts)
  85. jimkan (1 Post)
  86. kenja (2 Posts)
  87. sandy (1 Post)
  88. eri.TsingTao (1 Post)
  89. rainydays (1 Post)
  90. iLiketoGrid (1 Post)
  91. Shaguar (8 Posts)
  92. AMS949 (3 Posts)
  93. moegal (3 Posts)
  94. aleczapka (2 Posts)
  95. Stripeman (6 Posts)
  96. abhaysingh (5 Posts)
  97. mango (1 Post)
  98. NoahK17 (3 Posts)
  99. Remy (1 Post)
  100. medley (11 Posts)
  101. stevchen (1 Post)
  102. abraxxa (28 Posts)
  103. Efex (3 Posts)
  104. Rotomaul (2 Posts)
  105. miihiir (4 Posts)
  106. nebbian (1 Post)
  107. Riri (6 Posts)
  108. catalina (1 Post)
  109. Bing Qiao (1 Post)
  110. juferoto (2 Posts)
  111. bk1 (2 Posts)
  112. sami_user (1 Post)
  113. dmcclean (2 Posts)
  114. Pink.ME (3 Posts)
  115. sebrand (1 Post)
  116. charak (2 Posts)
  117. charleshimmer (16 Posts)
  118. patrosmania (4 Posts)
  119. rosecorp (1 Post)
  120. johrisd (1 Post)
  121. aomadevelopers (1 Post)
  122. nicola_java (1 Post)
  123. BitPoet (1 Post)
  124. OliverT (3 Posts)
  125. randomuser01 (2 Posts)
  126. schone (3 Posts)
  127. perdar (1 Post)
  128. ajain (3 Posts)
  129. getindas (1 Post)
  130. giega (1 Post)
  131. ryanyoungsma (1 Post)
  132. ph0enix (1 Post)
  133. italianboy (1 Post)
  134. LutzAlbers (3 Posts)
  135. Ajish (2 Posts)
  136. christophe67 (1 Post)
  137. jmariani (4 Posts)
  138. wki01 (4 Posts)
  139. wemerson.januario (1 Post)
  140. viciuascuns (4 Posts)
  141. JohnnyWheels (1 Post)
  142. nar (3 Posts)
  143. shab (2 Posts)
  144. mystik (1 Post)
  145. unnamed_dev (1 Post)
  146. ScottLoney (3 Posts)
  147. whodat (4 Posts)
  148. Alex84 (7 Posts)
  149. mjmonserrat (3 Posts)
  150. andy_ghg (2 Posts)
  151. knappy (1 Post)
  152. bareflix (2 Posts)
  153. makiavelli (1 Post)
  154. daniel_82 (1 Post)
  155. peteryjk (2 Posts)
  156. michael.pedrotti (1 Post)
  157. elona (3 Posts)
  158. chinnapandu (1 Post)
  159. jsundquist (6 Posts)
  160. feo (1 Post)
  161. dubito (2 Posts)
  162. Georgioa (1 Post)
  163. SchattenMann (4 Posts)
  164. Relleum (1 Post)
  165. ivan.kristianto (3 Posts)
  166. yeyepot (1 Post)
  167. raydeen (1 Post)
  168. easycodes (4 Posts)
  169. rockinrandall (5 Posts)
  170. redcs (3 Posts)
  171. hatsu1119 (1 Post)
  172. surendra_leo (1 Post)
  173. ssawchenko (11 Posts)
  174. Sigma (3 Posts)
  175. Lmouse (1 Post)
  176. Spongerusher (1 Post)
  177. ValiBOSS (1 Post)
  178. joe123 (3 Posts)
  179. scooter (3 Posts)
  180. harsha_velicheti (1 Post)
  181. ivanleblanc (9 Posts)
  182. m4v0 (3 Posts)
  183. jbusuulwa (1 Post)
  184. seedeg (6 Posts)
  185. Z24_2000 (3 Posts)
  186. markw (2 Posts)
  187. atutus (2 Posts)
  188. luke82 (3 Posts)
  189. rameshkt (2 Posts)
  190. elgalle (2 Posts)
  191. Vepe (2 Posts)
  192. barser (2 Posts)
  193. metra (5 Posts)
  194. hotdesc (4 Posts)
  195. chrislovecnm (1 Post)
  196. King_Aero (1 Post)
  197. idefix (5 Posts)
  198. daiei27 (3 Posts)
  199. LostSoul (2 Posts)
  200. tumbochka (3 Posts)
  201. Dipish (7 Posts)
  202. mcafee (1 Post)
  203. alexpotemkin (1 Post)
  204. ruperty (5 Posts)
  205. Rbn_3d (2 Posts)
  206. rxopt (1 Post)
  207. mayurid (1 Post)
  208. jeroen_syntux (2 Posts)
  209. aminaq (4 Posts)
  210. sosy (3 Posts)
  211. asafm (2 Posts)
  212. extjs1111_user (4 Posts)
  213. scottmartin (2 Posts)
  214. clements (1 Post)
  215. wavedan (3 Posts)
  216. jizhang88 (2 Posts)
  217. Coil (2 Posts)
  218. Samuel.reed (6 Posts)
  219. sense.nda12 (1 Post)
  220. zoja (1 Post)
  221. andyproxis (1 Post)
  222. baldeep_bhatia (1 Post)
  223. stevwinata (1 Post)
  224. Patrick86 (1 Post)
  225. dumpf (3 Posts)
  226. parimala (3 Posts)
  227. vicvolk (4 Posts)
  228. preichow (1 Post)
  229. shaoming (1 Post)
  230. Ixtinkt (7 Posts)
  231. jadiagaurang (1 Post)
  232. Juanyong (1 Post)
  233. venkateshns (1 Post)
  234. panpur (3 Posts)
  235. codeart.ch (2 Posts)
  236. hieu79vn (1 Post)
  237. mvsrekha (2 Posts)
  238. aislan (1 Post)
  239. buhari (1 Post)
  240. extjsquicklearner (1 Post)
  241. shankar8rajah1 (1 Post)
  242. jacinth_1215 (2 Posts)
  243. venkikodakirthi (1 Post)
  244. bwgv (1 Post)

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