Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #771
    Ext User
    Join Date
    Oct 2010
    Posts
    11
    Vote Rating
    0
    nickelj is on a distinguished road

      0  

    Default


    K....I replaced my ext-base.js and ext-all-debug.js with the versions found here: http://www.ext-livegrid.com/ext/extjs/ext-3.1.0/ext-all-debug.js and now it all works. Must be something different with the version of EXT JS I downloaded.

  2. #772
    Ext User
    Join Date
    Oct 2010
    Posts
    11
    Vote Rating
    0
    nickelj is on a distinguished road

      0  

    Default


    I tried the 3.2.1 versions and they also work....just the 3.3 version of EXT JS are broken for use with the livegrid.

    Also...maybe this is really obvious to everyone else, but I had trouble figuring out what format the grid expected the data back in, so I thought I would post my PHP code to save someone else the trouble.

    Here is the PHP MySQL code (for this example should be named data-proxy.php):

    PHP Code:
    <?php
    /**
     * Basic PHP code to retrieve data in the format that the EXT JS Livegrid expects.
     *
     * Modified by Jim Nickel <jim@yournickelsworth.com>
     * Original code was by Thorsten Suckow-Homberg <ts@siteartwork.de>
     *
     * Change the user, password and database as appropriate for your environment
     *
     */

    // +----------------------------------------------------------------------------
    // | Connection settings. Adjust the following lines (see "livegrid.sql").
    // +----------------------------------------------------------------------------
        
    $host     'localhost';
        
    $user     'user';
        
    $password 'password';
        
    $database 'database';
        
    $table    'livegrid';

    // +----------------------------------------------------------------------------
    // | Query stuff. As long as everything works fine, you can ignore the following
    // | lines. Scroll down to the part where the json encoding happens...
    // +----------------------------------------------------------------------------
        
    $conn mysql_connect($host$user$password);
        
    mysql_select_db($database$conn);
        
    $sql2 "SELECT COUNT(id) AS count_id FROM $table";
        
    $res2 mysql_query($sql2);
        
    $row2 mysql_fetch_assoc($res2);
        
    $length $row2['count_id'];
        
    $feeds = array();
        
    $sql "SELECT * FROM $table ORDER BY ".$_POST['sort']." ".$_POST['dir'].
               
    " LIMIT ".$_POST['start'].",".$_POST['limit'];
        
    $res mysql_query($sql);
        while ((
    $row mysql_fetch_assoc($res))) {
            
    $feeds['data'][] = array(
               
    'id'            => $row['id'],
               
    'number_field'  => $row['number_field'],
               
    'string_field'  => $row['string_field'],
               
    'date_field'    => $row['date_field']
            );
        }
        if (!isset(
    $feeds['data'])) {
            
    $feeds['data'] = array();
        }
        
    $feeds['version']     = 1;
        
    $feeds['totalCount'] = $length;

    // +----------------------------------------------------------------------------
    // | You need to json_encode the array. If your PHP installation does not support
    // | json_encode, go and get the Zend Framework at http://framework.zend.com,
    // | which provides userland json encoding/decoding logic.
    // +----------------------------------------------------------------------------
        
    if (function_exists('json_encode')) {
            
    $json json_encode($feeds);
        } else {
            require_once 
    'Zend/Json.php';
            
    $json Zend_Json::encode($feeds);
        }
        echo 
    $json;
    ?>
    Here is the HTML (you need to modify the locations of the css and js files - also I found that it DID NOT WORK with 3.3 of EXT JS):

    HTML Code:
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Ext.ux.Livegrid &raquo; Simple Grid Example</title>
    <link rel="stylesheet" type="text/css" href="../../../resources/css/ext-all.css" />
    <link rel="stylesheet" type="text/css" href="../../build/resources/css/ext-ux-livegrid.css" />
    </head>
    <body>
    <div id="content_1" style="margin:100px"></div>
    <script type="text/javascript" src="ext-base.js"></script>
    <script type="text/javascript" src="ext-all.js"></script>
    <script type="text/javascript" src="livegrid-all-debug.js"></script>
    <script type="text/javascript">
    Ext.onReady(function() {
        var myView = new Ext.ux.grid.livegrid.GridView({
            nearLimit : 100,
            loadMask  : {
                msg :  'Buffering. Please wait...'
            }
        });
        var livegrid = new Ext.ux.grid.livegrid.GridPanel({
            enableDragDrop : false,
            cm             : new Ext.grid.ColumnModel([
                new Ext.grid.RowNumberer({header : '#', width: 60 }),
                {header: "Number", align : 'left',   width: 160, sortable: true, dataIndex: 'number_field'},
                {header: "String", align : 'left',   width: 160, sortable: true, dataIndex: 'string_field'},
                {header: "Date",   align : 'right',  width: 160, sortable: true, dataIndex: 'date_field'}
            ]),
            loadMask       : {
                msg : 'Loading...'
            },
            title      : 'Large table',
            height     : 400,
            stripeRows : true,
            width      : 600,
            store      : new Ext.ux.grid.livegrid.Store({
                autoLoad : true,
                url      : 'data-proxy.php',
                bufferSize : 300,
                reader     : new Ext.ux.grid.livegrid.JsonReader({
                    root            : 'data',
                    versionProperty : 'version',
                    totalProperty   : 'totalCount',
                    id              : 'id'
                  }, [ {
                     name : 'number_field', sortType : 'int'
                  },{
                     name : 'string_field', sortType : 'string'
                  },{
                     name : 'date_field',   sortType : 'int'
                }]),
                sortInfo   : {field: 'number_field', direction: 'ASC'}
            }),
            selModel : new Ext.ux.grid.livegrid.RowSelectionModel(),
            view     : myView,
            bbar     : new Ext.ux.grid.livegrid.Toolbar({
                view        : myView,
                displayInfo : true
            })
        });
        livegrid.render('content_1');
    });
    </script>
    </body>
    </html>
    Then, you just need to create a MySQL table called livegrid that has this structure:

    PHP Code:
    CREATE TABLE IF NOT EXISTS `livegrid` (
      `
    idint(10unsigned NOT NULL auto_increment,
      `
    number_fieldint(10unsigned NOT NULL,
      `
    string_fieldvarchar(255NOT NULL,
      `
    date_fielddatetime NOT NULL,
      
    PRIMARY KEY  (`id`)
    ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5001 
    Then fill it with some data:

    PHP Code:
    INSERT INTO `livegrid` (`id`, `number_field`, `string_field`, `date_field`) VALUES
    (10'A''1972-05-20 22:49:03'),
    (
    21'B''2007-07-29 00:01:55'),
    (
    32'C''1971-07-01 00:46:13'),
    (
    43'D''1978-01-15 12:07:04'),
    (
    54'E''1976-04-12 21:11:17'),
    (
    65'F''1970-10-27 04:16:47'),
    (
    76'G''1999-08-10 12:03:48'),
    (
    87'H''1987-07-16 03:48:15'),
    (
    98'I''1991-08-21 17:42:46'); 
    And you should be good to go!

    Jim

  3. #773
    Ext User
    Join Date
    Oct 2010
    Posts
    11
    Vote Rating
    0
    nickelj is on a distinguished road

      0  

    Default


    Has anyone gotten this to work with either the FilterRow or the GridHeaderFilters?

    Basically a search/filter that is in the columns or headers of the grid itself.

    Any help would be appreciated!

    Jim

  4. #774
    Ext User
    Join Date
    Sep 2010
    Posts
    1
    Vote Rating
    0
    dp814082 is on a distinguished road

      0  

    Default


    THX for your sharing!

  5. #775
    Sencha User
    Join Date
    Aug 2010
    Posts
    45
    Vote Rating
    0
    daddie888 is on a distinguished road

      0  

    Default


    I got livegrid to work with 3.3 and Filterrow wit 3.3 also but still need to combine the two
    http://www.sencha.com/forum/showthre...grid.FilterRow
    http://www.sencha.com/forum/showthre...637#post527637

    Peter

  6. #776
    Sencha User
    Join Date
    Sep 2007
    Posts
    23
    Vote Rating
    1
    marcoas is on a distinguished road

      0  

    Default


    there is possible have left column blocked, like Excel?

  7. #777
    Ext User
    Join Date
    Nov 2010
    Posts
    1
    Vote Rating
    0
    wifi4psp is on a distinguished road

      0  

    Default


    Hi, I am trying to use live-grid to present data with 5000 rows and 100 cols.
    My project is using EXT JS 2.0.2.

    When I set the store's buffer size as 300, the live-grid works pretty well.
    However, when I set it as 5000, the page is about to hang.
    I wonder if the page is trying to render all the 5000 rows at the beginning..
    since when I tried to scroll down, there was no "Loading/ Buffering" message prompted.

    As I dun want the grid keeps connecting to the database,
    is it possible to load all data once to the Ext.ux.grid.livegrid.Store,
    and then make the grid to render and show only those data within the grid's viewable area?

    I tried to change the BufferSize property in GridPanel/ GridView and also the Store's one, but didn't work.
    Could anyone helps?
    Thanks a lot.

  8. #778
    Sencha Premium Member karlsnyder0's Avatar
    Join Date
    Mar 2010
    Location
    Maryland, USA
    Posts
    82
    Vote Rating
    12
    karlsnyder0 is on a distinguished road

      0  

    Cool To get LiveGrid working with Ext 3.3

    To get LiveGrid working with Ext 3.3


    There's been many different versions of a LiveGrid patch but none of them worked for me. It was a headache tracing this down through the stack. I went back to the previous version of ExtJs (3.2) and 3.3, compared the two and realized that LiveGrid is broken because in (Ext.grid.GridView) renderUI has changed (there's afterRenderUI now). renderUI now returns the HTML for GridView and afterRenderUI builds the DOM. After the patch below I haven't found anything else that is broken in LiveGrid (yet!).

    Add this override code to your base JS object (or stuff the code between a script tag after loading the extjs and livegrid library files):

    Code:
    Ext.override(Ext.ux.grid.livegrid.GridView, {
    	afterRenderUI : function()
        {
            var g = this.grid;
            var dEnabled = g.enableDragDrop || g.enableDrag;
    
            g.enableDragDrop = false;
            g.enableDrag     = false;
    
            this._gridViewSuperclass.afterRenderUI.call(this);
    
            var g = this.grid;
    
            g.enableDragDrop = dEnabled;
            g.enableDrag     = dEnabled;
    
            if(dEnabled){
                this.dragZone = new Ext.ux.grid.livegrid.DragZone(g, {
                    ddGroup : g.ddGroup || 'GridDD'
                });
            }
    
            if (this.loadMask) {
                this._loadMaskAnchor = Ext.get(this.mainBody.dom.parentNode.parentNode);
                Ext.apply(this.loadMask,{
                    msgCls : 'x-mask-loading'
                });
                this._loadMaskAnchor.mask(
                    this.loadMask.msg, this.loadMask.msgCls
                );
                var dom  = this._loadMaskAnchor.dom;
                var data = Ext.Element.data;
                data(dom, 'mask').addClass('ext-ux-livegrid');
                data(dom, 'mask').setDisplayed(false);
                data(dom, 'maskMsg').setDisplayed(false);
            }
        },
        renderUI : function()
        {
        	return this._gridViewSuperclass.renderUI.call(this);
        }
    });
    I hope this works for you.
    Last edited by karlsnyder0; 23 Nov 2010 at 5:04 AM. Reason: spelling

  9. #779
    Sencha User
    Join Date
    Nov 2008
    Location
    Currently Mexico
    Posts
    133
    Vote Rating
    0
    jmariani is on a distinguished road

      0  

    Default


    Works!
    Thank you KarlSnyder0

  10. #780
    Ext JS Premium Member
    Join Date
    Mar 2009
    Posts
    62
    Vote Rating
    0
    pibree is on a distinguished road

      0  

    Default


    I use a live grid.
    Now I would that the grid load not from start = 0 but from start = 100 so I have setted this in my option's store:
    PHP Code:
    store.load({params:start:100 ..... }..... ); 
    But I get that the store starts always from 0.
    What must I do to have that the store load 100 and not from 0?
    Many Thanks

Thread Participants: 248

  1. JeffHowden (1 Post)
  2. Animal (4 Posts)
  3. rodiniz (1 Post)
  4. galdaka (2 Posts)
  5. mdissel (1 Post)
  6. Wolfgang (1 Post)
  7. zzo (2 Posts)
  8. Frank (1 Post)
  9. herve (2 Posts)
  10. ericd (2 Posts)
  11. RWaters (5 Posts)
  12. Digital God (1 Post)
  13. Dumbledore (11 Posts)
  14. KimH (1 Post)
  15. pjordan (1 Post)
  16. cpantel (1 Post)
  17. mystix (3 Posts)
  18. wanclark (1 Post)
  19. MD (3 Posts)
  20. drew (1 Post)
  21. jheid (15 Posts)
  22. tsprague (1 Post)
  23. Confused (2 Posts)
  24. thesilentman (1 Post)
  25. andreas.linde (1 Post)
  26. violinista (1 Post)
  27. redxiii (1 Post)
  28. akannu (1 Post)
  29. theo (1 Post)
  30. Troy Wolf (3 Posts)
  31. chh (4 Posts)
  32. Phenothiasine (1 Post)
  33. danh2000 (1 Post)
  34. tobiu (1 Post)
  35. badgerd (1 Post)
  36. mlarese (1 Post)
  37. pluesch0r (1 Post)
  38. krycek (1 Post)
  39. gtaylor (4 Posts)
  40. ftftft (1 Post)
  41. hallikpapa (7 Posts)
  42. tech-nova (1 Post)
  43. provagino (1 Post)
  44. mjlecomte (2 Posts)
  45. iancmcc (1 Post)
  46. andrei.neculau (7 Posts)
  47. zieli1 (1 Post)
  48. meteorbites (1 Post)
  49. brookd (3 Posts)
  50. alexpetri (1 Post)
  51. urskipfer (1 Post)
  52. JEBriggs (1 Post)
  53. magunes117 (6 Posts)
  54. shiweiwei97 (3 Posts)
  55. vpell (1 Post)
  56. gelleneu (4 Posts)
  57. ohhowihateie (2 Posts)
  58. Andrewd2 (1 Post)
  59. Jacob (1 Post)
  60. cherbert (2 Posts)
  61. DragonFist (1 Post)
  62. marcoas (1 Post)
  63. Shmoo (1 Post)
  64. GraemeBryce (1 Post)
  65. w011117 (1 Post)
  66. luxxxian (1 Post)
  67. loverofdream (1 Post)
  68. lvanderree (1 Post)
  69. robw (1 Post)
  70. SeaSharp (1 Post)
  71. xpressive (1 Post)
  72. jeremia (1 Post)
  73. wm003 (21 Posts)
  74. miti (1 Post)
  75. sfrancolla (1 Post)
  76. Blob (1 Post)
  77. WoLpH (5 Posts)
  78. khatuido (3 Posts)
  79. zacware (3 Posts)
  80. mepfuso (2 Posts)
  81. wasp (1 Post)
  82. sharpguy (1 Post)
  83. stevets (1 Post)
  84. fred (1 Post)
  85. eliasp (3 Posts)
  86. h0tzenpl0tz (1 Post)
  87. tonedeaf (1 Post)
  88. Zolcsi (3 Posts)
  89. dearsina (1 Post)
  90. efattal (3 Posts)
  91. franck34 (3 Posts)
  92. tyr (1 Post)
  93. cybertaz (1 Post)
  94. zergworld (8 Posts)
  95. sekundek (1 Post)
  96. cs_alpha (3 Posts)
  97. Sultanalifezar (3 Posts)
  98. emily (7 Posts)
  99. jwendt@iscinternational.com (1 Post)
  100. sinma (1 Post)
  101. ItsMee (3 Posts)
  102. Nic (1 Post)
  103. sksoft (4 Posts)
  104. mjhaston (1 Post)
  105. mattb (4 Posts)
  106. jenner (1 Post)
  107. 2le (1 Post)
  108. bluefeet (1 Post)
  109. PremiereGlobal (2 Posts)
  110. rtozati (1 Post)
  111. KirkOlson (4 Posts)
  112. False Maria (1 Post)
  113. jbd007 (5 Posts)
  114. c.barca (1 Post)
  115. nctag (34 Posts)
  116. kfironit123 (1 Post)
  117. Emt (1 Post)
  118. ub3rn00b (12 Posts)
  119. Ballsacian1 (1 Post)
  120. mprice (1 Post)
  121. srikanthnukala (2 Posts)
  122. Mots (2 Posts)
  123. yhwh (1 Post)
  124. el777 (1 Post)
  125. JoomlaMan (1 Post)
  126. sanjivank (1 Post)
  127. sdetweil (1 Post)
  128. Snakehit (1 Post)
  129. msynovic (2 Posts)
  130. Snuyt (1 Post)
  131. as (2 Posts)
  132. pkmiec (2 Posts)
  133. epoks (2 Posts)
  134. NoahK17 (1 Post)
  135. praneeth528 (2 Posts)
  136. bemn (1 Post)
  137. Remy (1 Post)
  138. Daniel_Brazil_Campinas (1 Post)
  139. freddyk (4 Posts)
  140. dshorthouse (1 Post)
  141. dahman7 (1 Post)
  142. Canard64 (1 Post)
  143. dkuz (2 Posts)
  144. xsuniwov (1 Post)
  145. neha.chopra (1 Post)
  146. Eric24 (2 Posts)
  147. Mandeep (2 Posts)
  148. ttbgwt (6 Posts)
  149. suzan (1 Post)
  150. tenthcup (5 Posts)
  151. excelsis (5 Posts)
  152. DaveBrewster (6 Posts)
  153. rusty124 (1 Post)
  154. bcmatz (3 Posts)
  155. bjcullinan (1 Post)
  156. sstratton (4 Posts)
  157. Scorpie (1 Post)
  158. supercharge2 (3 Posts)
  159. Bing Qiao (6 Posts)
  160. tmaung (1 Post)
  161. xenon (4 Posts)
  162. sureaintme (5 Posts)
  163. animeshsingh (2 Posts)
  164. NicoP (29 Posts)
  165. cyfl (2 Posts)
  166. simplessus (1 Post)
  167. imnphd (1 Post)
  168. mono blaine (5 Posts)
  169. Kango_V (5 Posts)
  170. cain06 (1 Post)
  171. charak (2 Posts)
  172. vayumahesh (1 Post)
  173. Gabor Turi (1 Post)
  174. daeghran (2 Posts)
  175. maceido (5 Posts)
  176. sgoswami (1 Post)
  177. rubaiz (1 Post)
  178. Jabe (1 Post)
  179. ecarrenho (1 Post)
  180. mpereira (1 Post)
  181. changhua (4 Posts)
  182. alexw23 (1 Post)
  183. fxmisticat (5 Posts)
  184. extjssiva (1 Post)
  185. f1xxx3r (1 Post)
  186. SimoAmi (1 Post)
  187. aj3423 (1 Post)
  188. kkothari (2 Posts)
  189. jmariani (28 Posts)
  190. ibet (3 Posts)
  191. SunWuKung (1 Post)
  192. micgala (2 Posts)
  193. inptisto (1 Post)
  194. TheColonel (1 Post)
  195. cdeguzman (1 Post)
  196. ektanit (6 Posts)
  197. James Wang (1 Post)
  198. PCBingoB (1 Post)
  199. flylaputa (1 Post)
  200. MacSimon (1 Post)
  201. pibree (2 Posts)
  202. Markus (1 Post)
  203. aleister999 (2 Posts)
  204. adamli (2 Posts)
  205. jmaisel (4 Posts)
  206. pdugas (1 Post)
  207. plaak (1 Post)
  208. coriolis (2 Posts)
  209. weazil (4 Posts)
  210. fwiethof (1 Post)
  211. meroy (19 Posts)
  212. lxf1101 (2 Posts)
  213. stephen.friedrich (3 Posts)
  214. vinepod (1 Post)
  215. yuriy (2 Posts)
  216. completej (1 Post)
  217. dan_jf (1 Post)
  218. harel (2 Posts)
  219. veenvliet.morion (2 Posts)
  220. yura620310 (1 Post)
  221. barncat (1 Post)
  222. DmitrySistor (2 Posts)
  223. pclovec (3 Posts)
  224. Ranma13 (1 Post)
  225. swang (4 Posts)
  226. calugaru.cristian (5 Posts)
  227. mohan_b (1 Post)
  228. karlsnyder0 (2 Posts)
  229. JimmyInMD (2 Posts)
  230. tolitius (1 Post)
  231. a.labeau (2 Posts)
  232. benjixx (1 Post)
  233. psm1963 (1 Post)
  234. sosy (1 Post)
  235. nosferatum (10 Posts)
  236. daddie888 (1 Post)
  237. ixvivxi (1 Post)
  238. dp814082 (1 Post)
  239. nickelj (4 Posts)
  240. wifi4psp (1 Post)
  241. drian (1 Post)
  242. su-aska (1 Post)
  243. SebTardif (1 Post)
  244. danceric (1 Post)
  245. DTSman (1 Post)
  246. brian.moeskau (1 Post)
  247. Neethi (2 Posts)
  248. sango (1 Post)