1. #351
    Sencha User
    Join Date
    Aug 2008
    Posts
    110
    Vote Rating
    0
    Rothariger is on a distinguished road

      0  

    Default


    ok... i will make it locally... and post it again...

    thanks saki!

  2. #352
    Sencha User
    Join Date
    Aug 2008
    Posts
    110
    Vote Rating
    0
    Rothariger is on a distinguished road

      0  

    Default


    saki, i cant make it work with local data....

    here i pass you the array of data... may be you make it work faster than me...
    and i also send to you the reader...

    Code:
    var myData = [[1,58000000001,'DUMMY OUTLET FOR CF...                       ','031   ','031999','DUMMY FOR CF                                                 ','SALES DISTRIBUTION SERVICE    ','1,'],[2,58000000002,'EXTRA PRODUCT FOR 703703                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ','1,'],[3,58000000003,'EXTRA PRODUCT FOR 704704                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ','1,6,'],[4,58000000004,'EXTRA PRODUCT FOR 705705                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[5,58000000005,'EXTRA PRODUCT FOR 706706                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[6,58000000006,'EXTRA PRODUCT FOR 707707                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[7,58000000007,'EXTRA PRODUCT FOR 708708                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[8,58000000008,'EXTRA PRODUCT FOR 713713                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[9,58000000009,'EXTRA PRODUCT FOR 714714                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[10,58000000010,'EXTRA PRODUCT FOR 715715                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[11,58000000011,'EXTRA PRODUCT FOR 716716                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[12,58000000012,'EXTRA PRODUCT FOR 717717                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[13,58000000013,'EXTRA PRODUCT FOR 721721                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[14,58000000014,'EXTRA PRODUCT FOR 722722                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[15,58000000015,'EXTRA PRODUCT FOR 723723                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[16,58000000016,'EXTRA PRODUCT FOR 724724                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[17,58000000017,'EXTRA PRODUCT FOR 725725                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[18,58000000018,'EXTRA PRODUCT FOR 733733                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[19,58000000019,'EXTRA PRODUCT FOR 734734                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[20,58000000020,'EXTRA PRODUCT FOR 735735                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[21,58000000021,'EXTRA PRODUCT FOR 736736                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[22,58000000022,'EXTRA PRODUCT FOR 737737                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[23,58000000023,'EXTRA PRODUCT FOR 743743                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[24,58000000024,'EXTRA PRODUCT FOR 744744                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ',''],[25,58000000025,'EXTRA PRODUCT FOR 745745                     ','031   ','031903','N/A                                                          ','SALES DISTRIBUTION SERVICE    ','']];
    Code:
                var reader =  new Ext.data.ArrayReader({}, Ext.data.Record.create([
                                                                         {name: 'colSelection', type: 'auto'},
                                                                         {name: 'cust_id', type: 'string'},
                                                                         {name: 'route_id', type: 'string'},
                                                                         {name: 'presale_route_id', type: 'string'},
                                                                         {name: 'cust_name', type: 'string'},
                                                                         {name: 'Address', type: 'string'},
                                                                         {name: 'description', type: 'string'},
                                                                         {name: 'pos_type_ids', type: 'string'},
                                                                         {name: 'fnViewData', type: 'auto'}]));
    thanks

  3. #353
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,527
    Vote Rating
    379
    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


    What I have meant was a complete application that I can copy to Ext tree and run locally. I could compile it from bit and pieces you posted, if I had some time, however I wouldn't be same as you have. Help me to help you, please.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  4. #354
    Sencha User
    Join Date
    Aug 2008
    Posts
    110
    Vote Rating
    0
    Rothariger is on a distinguished road

      0  

    Default


    ok,when i have some time free in my work, i will try to get a working example...

    thanks saki...

  5. #355
    Sencha User
    Join Date
    Aug 2008
    Posts
    110
    Vote Rating
    0
    Rothariger is on a distinguished road

      0  

    Default


    saki...

    yesterday i tryed (just a little) to break you working sample of recordform, today i will make a more robust test... i will let you know the results later...


    bye

  6. #356
    Sencha User
    Join Date
    Aug 2008
    Posts
    110
    Vote Rating
    0
    Rothariger is on a distinguished road

      0  

    Default


    hi saki...

    i found a solution if someone has the same problem...

    i see in your example that the div for all the header has a width of 10000px i added this property to the following style...

    .x-grid3-header-offset

    and thats all, now works like a charm...

    thanks anyway saki.

  7. #357
    Sencha User
    Join Date
    May 2007
    Posts
    191
    Vote Rating
    0
    temporary is on a distinguished road

      0  

    Default


    Hi Jozef,

    would it be possible to add a showIndex to the RowActions? Just the opposite of hideIndex (both of course exclude each other). This is very useful if you have a flag that should show an action instead of hiding it.

    Two times in a row i had to add another field in my php logic for this, would be nice to have it.

    [Additional]

    Hmm thinking about this, it would be even better if there was a hideByFn or something, a callback this is called to determine wether or not to hide the action. users would be free to use own anonymous functions for the hide logic...

  8. #358
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,527
    Vote Rating
    379
    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


    You already have showIndex in fact and it is ! hideIndex. Also, you can override getData to implement more complex show/hide logic.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  9. #359
    Ext User
    Join Date
    Sep 2008
    Posts
    206
    Vote Rating
    1
    randomuser01 is on a distinguished road

      0  

    Default Unable to hide icon

    Unable to hide icon


    I've hooked up Ext.ux.grid.RowActions plugin to a grid but am unable to prevent the icon from being displayed.

    What config/value do I need to pass to hideIndex field? I've tried null, false/true etc but it's always displayed.

    Thanks
    Code:
    var allStore = new Ext.data.Store({
     //....
     }, [
     'From', 'Contract', 
     {name: 'Quantity', type: 'float' }, 
     {name: 'Price', type: 'float' },
     'HideFlag'
     ])
    });
    allStore.on({
           'load': {
        fn: function(store) {
        if (allGrid.rendered == false)
         return;
        var cnt = allGrid.getStore().getTotalCount();
        for(var i = 0; i < cnt; i++) {
         var rec = allGrid.getStore().getAt( i );
         // set whether action needs to be visible or not
         if (rec.data.Type == 'INCOMING' && rec.data.Price != '')  
          rec.data.HideFlag = null;
         else
          rec.data.HideFlag = 'false';
        }
        allGrid.getStore().commitChanges();
        // remove highlight from all rows currently loaded
        for(var i = 0; i < cnt; i++) {    
         var row = allGrid.getView().getRow(i);
         if (row) {
          var element = Ext.get(row);
             var record = allStore.getAt(i);
             if (record.data.AlreadySeen == 1)
          element.removeClass('highlight-grid-row');
             else
          element.addClass('highlight-grid-row');
         }
        } 
        }, 
        scope: this
           }
    });
    var actions = new Ext.ux.grid.RowActions({
     header: 'Actions',
     actions: [{
      iconCls:'indIcon',
      tooltip:'Click here to accept',
      hideIndex: 'HideFlag'
     }]
    });

  10. #360
    Sencha User
    Join Date
    Oct 2008
    Posts
    9
    Vote Rating
    0
    dasnk is on a distinguished road

      0  

    Default


    its a good plugin but I don't like how the data from the server is polluted with interface information

    Code:
    array("company"=>'3m Co',                                       "hide2"=>true,"action1"=>"icon-open","action2"=>"icon-cross","action3"=>"icon-key","qtip1"=>"Click to Open","qtip2"=>"Click to Delete","qtip3"=>"Click to Lock", "lastChange"=>'8/1 12:00am', "industry"=>'Manufacturing'),
    I like to think of the server side as a kind of web service that I could write the interface for in any programming language, having stuff being spent back that is specific to an extjs plugin is unattractive

Thread Participants: 227

  1. franklt69 (10 Posts)
  2. Condor (3 Posts)
  3. Enrico (1 Post)
  4. Dumbledore (2 Posts)
  5. mystix (1 Post)
  6. riets003 (2 Posts)
  7. KRavEN (3 Posts)
  8. sfwalter (1 Post)
  9. Taurus (3 Posts)
  10. fshort (5 Posts)
  11. tchitani (2 Posts)
  12. temporary (1 Post)
  13. pantarhei (2 Posts)
  14. Specks (5 Posts)
  15. spotk (1 Post)
  16. cmendez21 (2 Posts)
  17. anjelika (3 Posts)
  18. askar (3 Posts)
  19. 6epcepk (1 Post)
  20. lkasdorf (1 Post)
  21. Gunmen (1 Post)
  22. mjlecomte (7 Posts)
  23. Nam (2 Posts)
  24. rekam (4 Posts)
  25. ZooKeeper (3 Posts)
  26. cking (1 Post)
  27. JEBriggs (1 Post)
  28. Yossi (9 Posts)
  29. border9 (2 Posts)
  30. justinfalk (1 Post)
  31. Spirit (6 Posts)
  32. gounis (1 Post)
  33. .andy (1 Post)
  34. robin30 (2 Posts)
  35. knt (2 Posts)
  36. Shmoo (2 Posts)
  37. Strati (1 Post)
  38. jerrybrown5 (12 Posts)
  39. KevinChristensen (1 Post)
  40. jon (2 Posts)
  41. BigTitus (2 Posts)
  42. elDub (4 Posts)
  43. fgerneth (2 Posts)
  44. elnove (2 Posts)
  45. vendiddy (1 Post)
  46. ray007 (6 Posts)
  47. dizelland (1 Post)
  48. donssmith (1 Post)
  49. horrikhalid (5 Posts)
  50. wasp (1 Post)
  51. cblin (1 Post)
  52. ncx5 (3 Posts)
  53. mask_hot (1 Post)
  54. teddyjas (2 Posts)
  55. Zolcsi (1 Post)
  56. PTG (5 Posts)
  57. yaroslav (2 Posts)
  58. Yoris (3 Posts)
  59. DhakouaniM (1 Post)
  60. lobo-tuerto (12 Posts)
  61. angelflaree (3 Posts)
  62. skhan (3 Posts)
  63. ibaniski (3 Posts)
  64. achebe (1 Post)
  65. svdb (1 Post)
  66. emily (6 Posts)
  67. jezmck (3 Posts)
  68. SAnDAnGE (1 Post)
  69. eliezerreis (4 Posts)
  70. nutflakes (2 Posts)
  71. RoDush (1 Post)
  72. tonig84 (2 Posts)
  73. kpmonroe (1 Post)
  74. KJedi (1 Post)
  75. javaeedeveloper (2 Posts)
  76. razvanioan (3 Posts)
  77. jla (2 Posts)
  78. max52 (1 Post)
  79. seppy (5 Posts)
  80. adz08 (1 Post)
  81. chalu (10 Posts)
  82. sekaijin (2 Posts)
  83. jimkan (1 Post)
  84. joao_candido (3 Posts)
  85. fanta2k (1 Post)
  86. nctag (3 Posts)
  87. yhwh (2 Posts)
  88. zmijanow (3 Posts)
  89. brizardh (3 Posts)
  90. zxyth (6 Posts)
  91. johnstontrav (2 Posts)
  92. dalad (2 Posts)
  93. niaz (4 Posts)
  94. armandoxxx (8 Posts)
  95. nojutsu (3 Posts)
  96. lfelican (2 Posts)
  97. DamienValentine (2 Posts)
  98. NoahK17 (10 Posts)
  99. shay2501 (2 Posts)
  100. sdileep (1 Post)
  101. pokerking400 (19 Posts)
  102. lacco (2 Posts)
  103. medley (8 Posts)
  104. archmisha (3 Posts)
  105. rizjoj (2 Posts)
  106. thephatp (2 Posts)
  107. descheret (1 Post)
  108. macedge (6 Posts)
  109. ttbgwt (2 Posts)
  110. allistar (3 Posts)
  111. emredagli (1 Post)
  112. Nadril (2 Posts)
  113. mbajema (1 Post)
  114. wwwtd (1 Post)
  115. Besessener (6 Posts)
  116. Chrissu (3 Posts)
  117. pavanextjs (6 Posts)
  118. javauser (2 Posts)
  119. AmitOlsys (7 Posts)
  120. afei (1 Post)
  121. kurtis (6 Posts)
  122. DamianHartin (2 Posts)
  123. kimmking (1 Post)
  124. jollyca (2 Posts)
  125. Rothariger (10 Posts)
  126. ThunderZtorm (3 Posts)
  127. Stephan Schrade (1 Post)
  128. groyk (2 Posts)
  129. bwhitehall (2 Posts)
  130. neteor (2 Posts)
  131. saipkjai (1 Post)
  132. randomuser01 (1 Post)
  133. kisjonnk (1 Post)
  134. divad (2 Posts)
  135. fxmisticat (2 Posts)
  136. dasnk (1 Post)
  137. klascano (1 Post)
  138. sarav (1 Post)
  139. ringfas (1 Post)
  140. iBeb (1 Post)
  141. kjleng (1 Post)
  142. resonante (4 Posts)
  143. wki01 (1 Post)
  144. quen567 (2 Posts)
  145. nightwatch (2 Posts)
  146. SunWuKung (2 Posts)
  147. nar (1 Post)
  148. mnc (1 Post)
  149. wgpubs (3 Posts)
  150. Stju (1 Post)
  151. d4rk knight (2 Posts)
  152. igor_vlad (1 Post)
  153. lassaad (1 Post)
  154. Dumas (5 Posts)
  155. s.m.srinivas (2 Posts)
  156. whodat (7 Posts)
  157. Kudzu (1 Post)
  158. nathanblogs (1 Post)
  159. leonardodaza (2 Posts)
  160. The Edge (1 Post)
  161. tahseen.ur.rehman (1 Post)
  162. Andrelmp (2 Posts)
  163. dfa (1 Post)
  164. cybersys (5 Posts)
  165. flylaputa (3 Posts)
  166. Tawez (2 Posts)
  167. Fred Seyffert (2 Posts)
  168. Jangla (7 Posts)
  169. agent29 (1 Post)
  170. vinaykurudi (1 Post)
  171. Jim.Barrows (2 Posts)
  172. PV-Patrick (1 Post)
  173. jakeext (2 Posts)
  174. quicksilver_in (12 Posts)
  175. dewoob (2 Posts)
  176. gelgoogho (1 Post)
  177. andyatmiami (1 Post)
  178. rat (1 Post)
  179. Margusja (6 Posts)
  180. charcalcado (1 Post)
  181. realjax (2 Posts)
  182. kartikayg (4 Posts)
  183. sanantone (1 Post)
  184. iryndin (2 Posts)
  185. Joel (2 Posts)
  186. jsemmanuel (2 Posts)
  187. jeffcirceo (1 Post)
  188. boldt (1 Post)
  189. schoonmoeder (2 Posts)
  190. kr1pton (2 Posts)
  191. 29er (1 Post)
  192. return1.at (1 Post)
  193. extjsnewb (1 Post)
  194. frrogoy (1 Post)
  195. hotdesc (2 Posts)
  196. a.bongardt (1 Post)
  197. King_Aero (1 Post)
  198. daiei27 (3 Posts)
  199. jasmina (3 Posts)
  200. winsent (1 Post)
  201. hsomesun (2 Posts)
  202. max.bertolini (1 Post)
  203. Dmoney (1 Post)
  204. maxazan (1 Post)
  205. cyChop (2 Posts)
  206. pipiet06 (2 Posts)
  207. asafm (2 Posts)
  208. adetogni (4 Posts)
  209. rebeccapeltz (10 Posts)
  210. enoal (3 Posts)
  211. rrpero (3 Posts)
  212. test45 (1 Post)
  213. kevDawg (3 Posts)
  214. anacab (1 Post)
  215. travin (1 Post)
  216. bidibule (1 Post)
  217. JimR (5 Posts)
  218. apurva_mistry (1 Post)
  219. pramodkhare (3 Posts)
  220. dm7777 (1 Post)
  221. extjs-dev (2 Posts)
  222. aveltens (1 Post)
  223. carlosgoias (1 Post)
  224. oeginc (2 Posts)
  225. schusco (3 Posts)
  226. katxeus (1 Post)
  227. ashetti (2 Posts)