1. #931
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,552
    Vote Rating
    382
    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


    First of all, replicate the example at your site w/o changes. Then adjust it to your needs.
    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


  2. #932
    Ext User
    Join Date
    Aug 2010
    Posts
    40
    Vote Rating
    0
    wavedan is on a distinguished road

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    First of all, replicate the example at your site w/o changes. Then adjust it to your needs.
    I am including these files from your plugin:
    <link rel="stylesheet" type="text/css" href="css/gridsearch.css">
    <link rel="shortcut icon" href="./img/extjs.ico">
    <script type="text/javascript" src="./js/WebPage.js"></script>
    <script type="text/javascript" src="./js/Ext.ux.ThemeCombo.js"></script>
    <script type="text/javascript" src="./js/Ext.ux.IconMenu.js"></script>
    <script type="text/javascript" src="./js/Ext.ux.Toast.js"></script>
    <script type="text/javascript" src="./js/Ext.ux.grid.Search.js"></script>
    <script type="text/javascript" src="./js/Ext.ux.grid.RowActions.js"></script>

    But when I reload the site, I get this error:
    p.ptype is undefined
    http://www.mossekortet.no/extjs/ext-all-debug.js
    Line 9740

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


    Check if paths are correct and if you're really loading all above files from the server. No 404 error?
    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. #934
    Ext User
    Join Date
    Aug 2010
    Posts
    40
    Vote Rating
    0
    wavedan is on a distinguished road

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    Check if paths are correct and if you're really loading all above files from the server. No 404 error?
    No 404 error.
    I am now including the following files:

    <link rel="stylesheet" type="text/css" href="./css/icons.css">
    <link rel="stylesheet" type="text/css" href="./css/Ext.ux.grid.RowActions.css">
    <link rel="stylesheet" type="text/css" href="./css/empty.css" id="theme">
    <link rel="stylesheet" type="text/css" href="./css/webpage.css">
    <link rel="stylesheet" type="text/css" href="./css/gridsearch.css">
    <link rel="shortcut icon" href="./img/extjs.ico">

    <script type="text/javascript" src="./js/WebPage.js"></script>
    <script type="text/javascript" src="./js/Ext.ux.ThemeCombo.js"></script>
    <script type="text/javascript" src="./js/Ext.ux.IconMenu.js"></script>
    <script type="text/javascript" src="./js/Ext.ux.Toast.js"></script>
    <script type="text/javascript" src="./js/Ext.ux.grid.Search.js"></script>
    <script type="text/javascript" src="./js/Ext.ux.grid.RowActions.js"></script>


    The following code is what gives me the error, that is, including the plugins: part gives me the error:

    var grid = new Ext.grid.GridPanel({
    plugins:[new Ext.ux.grid.Search({
    //iconCls:'icon-zoom'
    //,readonlyIndexes:['note']
    //,disableIndexes:['pctChange']
    minChars:3
    ,autoFocus:true
    // ,menuStyle:'radio'
    }), this.rowActions],

    store: store,
    //title:'test',
    width:500,
    columns: [
    {header: "Butikknavn", width: 270, dataIndex: 'butikk_navn', sortable: true},
    {header: "Internettside", width: 215, dataIndex: 'www', sortable: true},
    {header: "Addresse", width: 270, dataIndex: 'butikk_addresse', sortable: true},
    {header: "Telefon", width: 145, dataIndex: 'butikk_telefon', sortable: true},
    {header: "Bransje", width: 390, dataIndex: 'bransje', sortable: true}

  5. #935
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,552
    Vote Rating
    382
    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


    Just continue finding the error. Use Firebug, set "Stop on all errors", put some console.log statements in your code until you find where's problem.
    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


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

      0  

    Default


    I have an interesting IE issue. Unfortunately I have to support IE so this is pretty critical.

    You can see this even on the example on your page, jsakalos:

    Use IE7/8 and click on the search menu that brings down the list of columns. Then click on the search box. Type something, no event fires. Hit enter, no event fires. Ext doesn't seem to "snap out of it" until you click somewhere else then back into the search box. It's like the menu is somehow holding onto focus? Notice that if you click the search dropdown twice, that is, once to open and once to close, everything behaves normally. So there's something about closing the menu by clicking on the text box (the natural thing to do IMO) that causes IE to lose its head.

    Any ideas on this one?

  7. #937
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,552
    Vote Rating
    382
    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 have no IE for development so it's hard to test. Somebody else?
    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


  8. #938
    Sencha User
    Join Date
    Jul 2010
    Location
    India
    Posts
    18
    Vote Rating
    0
    extjs1111_user is on a distinguished road

      0  

    Default


    Hi,

    Do search plugin doesnt work for date fields.
    I am using the latest devel version

    thanks.

  9. #939
    Ext User
    Join Date
    Nov 2010
    Posts
    19
    Vote Rating
    0
    baldeep_bhatia is on a distinguished road

      0  

    Default


    hi guys, how can i use this with my work.... i need the same functionality for my grid..

    I have two grids on my page, from which I drag and drop items from one grid to another.

    I needed the same functionality to do a search from the grid1. If the item in grid1 exists then onEnter, it will put that item into grid2 and remove it from grid1.

    My current code is below:

    /*!
    * Ext JS Library 3.2.1
    */
    Ext.onReady(function () {
    var myData = {
    records: [
    { name:
    "Rec 0", column1: "0", column2: "0" },
    ]
    };
     
    // Generic fields array to use in both store defs.
    var fields = [
    { name:
    'StockId', mapping: 'StockId' },
    { name:
    'Fidessa', mapping: 'Fidessa' },
    { name:
    'BloombergCode', mapping: 'BloombergCode' },
    { name:
    'ReutersRic', mapping: 'ReutersRic' },
    { name:
    'StockName', mapping: 'StockName' }
    ];
    // create the data store
    var firstGridStore = new Ext.data.JsonStore({
    fields: fields,
    data: _stock1,
    root:
    'rows'
    });
     
    // Column Model shortcut array
    var cols = [
    { header:
    "Bloomberg Code", width: 110, sortable: true, dataIndex: 'BloombergCode' },
    { header:
    "Reuters Ric", width: 90, sortable: true, dataIndex: 'ReutersRic' },
    { header:
    "Fidessa", width: 90, sortable: true, dataIndex: 'Fidessa' },
    { id:
    'name', header: "Stock Name", width: 130, sortable: true, dataIndex: 'StockName' }
    ];
    // declare the source Grid
    var firstGrid = new Ext.grid.GridPanel({
    width: 480,
    height: 295,
    ddGroup:
    'secondGridDDGroup',
    store: firstGridStore,
    columns: cols,
    enableDragDrop:
    true,
    stripeRows:
    true,
    autoExpandColumn:
    'name',
    title:
    'Stock list',
    sm:
    new Ext.grid.RowSelectionModel({singleSelect:true})
    });
    var secondGridStore = new Ext.data.JsonStore({
    fields: fields,
    data: _stock2,
    root:
    'rows'
    });
    // create the destination Grid
    var secondGrid = new Ext.grid.GridPanel({
    width: 480,
    height: 295,
    ddGroup:
    'firstGridDDGroup',
    store: secondGridStore,
    columns: cols,
    enableDragDrop:
    true,
    stripeRows:
    true,
    autoExpandColumn:
    'name',
    title:
    'Your portfolio',
    sm:
    new Ext.grid.RowSelectionModel({ singleSelect: true })
    });
     
    //Simple 'border layout' panel to house both grids
    var displayPanel = new Ext.Panel({
    width: 960,
    height: 295,
    layout:
    'hbox',
    renderTo:
    'panel',
    defaults: { flex: 1 },
    //auto stretch
    layoutConfig: { align: 'stretch' },
    items: [
    firstGrid,
    secondGrid
    ],
    bbar: [
    '->', // Fill
    {
    height: 50,
    text:
    'Save',
    handler:
    function () {
    secondGridStore.each(
    function (Records) {
    var stockId = $("input[name=StockId]:first").clone();
    stockId.val(Records.data.StockId);
    stockId.appendTo(
    "#portfolioform");
    });
    $(
    "input[name=StockId]:first").remove();
    $(
    "#portfolioform").submit();
    //refresh source grid
    //firstGridStore.loadData(myData);
    //purge destination grid
    //secondGridStore.removeAll();
    }
    }
    ]
    });
    // used to add records to the destination stores
    var blankRecord = Ext.data.Record.create(fields);
    /****
    * Setup Drop Targets
    ***/
    // This will make sure we only drop to the view scroller element
    var firstGridDropTargetEl = firstGrid.getView().scroller.dom;
    var firstGridDropTarget = new Ext.dd.DropTarget(firstGridDropTargetEl, {
    ddGroup:
    'firstGridDDGroup',
    notifyDrop:
    function (ddSource, e, data) {
    var records = ddSource.dragData.selections;
    Ext.each(records, ddSource.grid.store.remove, ddSource.grid.store);
    firstGrid.store.add(records);
    //firstGrid.store.sort('name', 'ASC');
    returntrue
    }
    });
     
    // This will make sure we only drop to the view scroller element
    var secondGridDropTargetEl = secondGrid.getView().scroller.dom;
    var secondGridDropTarget = new Ext.dd.DropTarget(secondGridDropTargetEl, {
    ddGroup:
    'secondGridDDGroup',
    notifyDrop:
    function (ddSource, e, data) {
    var records = ddSource.dragData.selections;
    Ext.each(records, ddSource.grid.store.remove, ddSource.grid.store);
    secondGrid.store.add(records);
    // secondGrid.store.sort('name', 'ASC');
    returntrue
    }
    });
    });

    Any suggestions will help guys,

    Thanks

    Kind Regards

  10. #940
    Ext User
    Join Date
    Mar 2010
    Location
    Usually not at home :)
    Posts
    1
    Vote Rating
    0
    chrislovecnm is on a distinguished road

      0  

    Default


    Has anyone had a problem where the waitMsg image and message does not appear with the search plugin? I was able to fix the same problem with this.getForm().waitMsgTarget = this.getEl(); with a form, but of course the grid's base class is panel ....

Thread Participants: 245

  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)
  245. nckenn (1 Post)

Tags for this Thread