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. #251
    Sencha User
    Join Date
    Feb 2008
    Posts
    23
    Vote Rating
    1
    Buzzwords is on a distinguished road

      0  

    Red face Found a solution in Extjs4

    Found a solution in Extjs4


    Ignore my previous question. I've found the functionality I was looking for. PagingMemoryProxy is just what I needed. It allows Ext.toolbar.Paging to control paging of local data contained in an Ext.data.Store. Very helpful! The code behind the Sliding Pager example under the Extjs4 Grid Examples clearly demonstrates usage.

  2. #252
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    51
    Vote Rating
    0
    atul.sachan@capgemini.com is on a distinguished road

      0  

    Default


    Still i am looking for answer, any one can reply???
    AS

  3. #253
    Sencha User
    Join Date
    Dec 2011
    Posts
    5
    Vote Rating
    0
    farfar is on a distinguished road

      0  

    Default Great!

    Great!


    This helped me alot. I was especially struggling with a problem that the gridpanel initially contained all records instead of just the 5 I set with pageSize : 5. Though when I started to navigate the pagingtoolbar it displayed 5 correctly. the doRefresh override took care of that though.

  4. #254
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    brprashanth is on a distinguished road

      0  

    Exclamation Trouble implenting Paging to call a webservice

    Trouble implenting Paging to call a webservice


    Hi,

    Im trying to implenting pagination. I have a webservice which returns "Total Count" and records.
    From client side, I have json store which pulls data from this service.
    I have ext grid which binds to this store. Im not been able to implement paging. Ext version used 4.0

    // Create store
    var myStore = new Ext.data.JsonStore({
    pageSize: 5,
    // Load data at once
    //autoLoad: true,
    autoLoad: {params: {start: 0, limit: 5, regionId: 1}},
    // Override default http proxy settings
    proxy: new Ext.data.HttpProxy({
    type:
    'ajax',
    url:
    'WebService1.asmx/GetNewPeopleForPaging',
    headers: {
    'Content-type': 'application/json'
    },
    reader: {
    type:
    'json',
    root:
    'd.Peoples',
    totalProperty:
    'Count',
    successProperty:
    'success'
    },
    method:
    'POST'
    }),
    fields: [
    'Id', 'Name', 'Address', 'Type'] // Simple definition of column
    });
     
     
    var grid = new Ext.grid.Panel({
    // Set store
    store: myStore,
    remoteSort :
    true,
    columns: [{
    header:
    'Id',
    dataIndex:
    'Id',
    flex: 1,
    hidden:
    true,
    hideable:
    false
    }, {
    header:
    'Name',
    dataIndex:
    'Name',
    flex: 1
    }, {
    header:
    'Address',
    dataIndex:
    'Address',
    flex: 1
    }, {
    header:
    'Type',
    dataIndex:
    'Type',
    flex: 1
    }],
    // paging bar on the bottom
    bbar: Ext.create('Ext.PagingToolbar', {
    store: myStore,
    displayInfo:
    true,
    displayMsg:
    'Displaying topics {0} - {1} of {2}',
    emptyMsg:
    "No topics to display",
    items:[
    '-', {
    }],
    }),
    // Render grid to dom element with id set to panel
    renderTo: 'district_grid'
    });

  5. #255
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    51
    Vote Rating
    0
    atul.sachan@capgemini.com is on a distinguished road

      0  

    Default


    try this:
    dockedItems: [{
    xtype: 'pagingtoolbar',
    store: 'partData',
    dock: 'bottom',
    displayInfo: false,
    items :[]
    }]
    Quote Originally Posted by brprashanth View Post
    Hi,

    Im trying to implenting pagination. I have a webservice which returns "Total Count" and records.
    From client side, I have json store which pulls data from this service.
    I have ext grid which binds to this store. Im not been able to implement paging. Ext version used 4.0

    // Create store
    var myStore = new Ext.data.JsonStore({
    pageSize: 5,
    // Load data at once
    //autoLoad: true,
    autoLoad: {params: {start: 0, limit: 5, regionId: 1}},
    // Override default http proxy settings
    proxy: new Ext.data.HttpProxy({
    type: 'ajax',
    url: 'WebService1.asmx/GetNewPeopleForPaging',
    headers: {
    'Content-type': 'application/json'
    },
    reader: {
    type: 'json',
    root: 'd.Peoples',
    totalProperty: 'Count',
    successProperty: 'success'
    },
    method: 'POST'
    }),
    fields: ['Id', 'Name', 'Address', 'Type'] // Simple definition of column
    });

    Ext.define('USERS.view.Grid', {
    extend: 'Ext.ux.LiveSearchGridPanel',
    alias: 'widget.userlist',
    title: 'All Users',
    store: 'Users',

    columns: [{
    header: 'Id',
    dataIndex: 'Id',
    flex: 1
    }, {
    header: 'Name',
    dataIndex: 'Name',
    flex: 1
    }, {
    header: 'Address',
    dataIndex: 'Address',
    flex: 1
    }, {
    header: 'Type',
    dataIndex: 'Type',
    flex: 1
    }]
    });


    var grid = new Ext.grid.Panel({
    // Set store
    store: myStore,
    remoteSort : true,
    columns: [{
    header: 'Id',
    dataIndex: 'Id',
    flex: 1,
    hidden: true,
    hideable: false
    }, {
    header: 'Name',
    dataIndex: 'Name',
    flex: 1
    }, {
    header: 'Address',
    dataIndex: 'Address',
    flex: 1
    }, {
    header: 'Type',
    dataIndex: 'Type',
    flex: 1
    }],
    // paging bar on the bottom
    bbar: Ext.create('Ext.PagingToolbar', {
    store: myStore,
    displayInfo: true,
    displayMsg: 'Displaying topics {0} - {1} of {2}',
    emptyMsg: "No topics to display",
    items:[
    '-', {
    }],

    }),

    // Render grid to dom element with id set to panel
    renderTo: 'district_grid'
    });

    AS

  6. #256
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    brprashanth is on a distinguished road

      0  

    Default


    Quote Originally Posted by atul.sachan@capgemini.com View Post
    try this:
    dockedItems: [{
    xtype: 'pagingtoolbar',
    store: 'partData',
    dock: 'bottom',
    displayInfo: false,
    items :[]
    }]
    Thank you Atul.
    In such a case, when I click on the "Next" page to pull the next page, how does the parameter go to webservice.

  7. #257
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    ash4aque is on a distinguished road

      0  

    Post Hi Condor, I am having the same problem.

    Hi Condor, I am having the same problem.


    Say if I am having 10 pages of 15 records each and if I am in page 5, and apply filter which filters out 30 records(2 page) than the below message is displaying as: page 5 of 2 which i believe should be page 1 of 2.
    Please help.

    Quote Originally Posted by Condor View Post
    Yes, that's the problem I described.

    1. Go to page 15 (shows records 71-75)
    2. Filter the records (e.g. 10 remaining)
    3. Page 15 shows as blank (technically correct)
    4. Go to page 1 (shows records 1-5)

    Filtering (and probably sorting too) should reset the page to 1.

  8. #258
    Sencha User
    Join Date
    Dec 2011
    Posts
    5
    Vote Rating
    0
    farfar is on a distinguished road

      0  

    Default


    Check out the original post by Condor again. If it is an ok solution for you (that the store resets to page 1) then do a forced reload. it works well for me.

    Quote Originally Posted by ash4aque View Post
    Say if I am having 10 pages of 15 records each and if I am in page 5, and apply filter which filters out 30 records(2 page) than the below message is displaying as: page 5 of 2 which i believe should be page 1 of 2.
    Please help.

  9. #259
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    ash4aque is on a distinguished road

      0  

    Default


    I am struggling to find out which is the right post by Condor for the solution I am looking for? As there are are couple of more solution also exist in the thread, Could you please direct me there?

    Quote Originally Posted by farfar View Post
    Check out the original post by Condor again. If it is an ok solution for you (that the store resets to page 1) then do a forced reload. it works well for me.

  10. #260
    Sencha User
    Join Date
    Dec 2011
    Posts
    5
    Vote Rating
    0
    farfar is on a distinguished road

      0  

    Default


    http://www.sencha.com/forum/showthre...gingStore-v0.5
    Code:
    Ext.override(Ext.PagingToolbar, {     
            doRefresh: function(){         
            delete this.store.lastParams;         
            this.doLoad(this.cursor);         
        } 
    });
    if you change this.cursor to 0 you will reset the page to 1. the doLoad loads records from the number you give as argument. sorry, I was a bit unclear before.

    Quote Originally Posted by ash4aque View Post
    I am struggling to find out which is the right post by Condor for the solution I am looking for? As there are are couple of more solution also exist in the thread, Could you please direct me there?

Thread Participants: 106

  1. Animal (3 Posts)
  2. galdaka (2 Posts)
  3. cgi-bin (4 Posts)
  4. tchitani (4 Posts)
  5. tobiu (1 Post)
  6. steffenk (1 Post)
  7. renaudham (1 Post)
  8. markpele (1 Post)
  9. Sesshomurai (1 Post)
  10. teddyjas (5 Posts)
  11. buergi (2 Posts)
  12. Buzzwords (2 Posts)
  13. tomcheng76 (4 Posts)
  14. kveeiv (1 Post)
  15. dhisnotnull (2 Posts)
  16. walldorff (1 Post)
  17. brizardh (2 Posts)
  18. elizard (1 Post)
  19. Remy (1 Post)
  20. renoye (8 Posts)
  21. despay (1 Post)
  22. lwexler (2 Posts)
  23. tomim (1 Post)
  24. Mjollnir26 (1 Post)
  25. allenlako (3 Posts)
  26. Andrea Gioia (1 Post)
  27. wp.joju (1 Post)
  28. genio (2 Posts)
  29. 828 (1 Post)
  30. ljschrenk (4 Posts)
  31. diablo (3 Posts)
  32. blakel (1 Post)
  33. Grolubao (2 Posts)
  34. makiavelli (2 Posts)
  35. elesel (1 Post)
  36. Capt.JackSparrow (2 Posts)
  37. ferryman (3 Posts)
  38. cwford (1 Post)
  39. 3dm (1 Post)
  40. imnilesh (1 Post)
  41. Rotterdam (2 Posts)
  42. nandubochkar (1 Post)
  43. Dustin Graham (1 Post)
  44. Boing (2 Posts)
  45. tdteti_ (8 Posts)
  46. vtulin (2 Posts)
  47. hello (1 Post)
  48. PranKe01 (2 Posts)
  49. jbusuulwa (6 Posts)
  50. cwilson (1 Post)
  51. ronaldploeger (1 Post)
  52. scblue (1 Post)
  53. saadkhan (2 Posts)
  54. subbugv (6 Posts)
  55. p3p3 (1 Post)
  56. computeraholic (1 Post)
  57. calabacita (3 Posts)
  58. aghextjs (1 Post)
  59. Arindam Das (1 Post)
  60. aw_zahid (1 Post)
  61. deister (1 Post)
  62. billprince (1 Post)
  63. amol.gaikwad (2 Posts)
  64. george4rotech (7 Posts)
  65. leonrenkema (1 Post)
  66. mvassau (1 Post)
  67. aDoF96 (2 Posts)
  68. attack11 (3 Posts)
  69. chakrics (1 Post)
  70. thangamalar (3 Posts)
  71. mayurid (1 Post)
  72. Lobo (1 Post)
  73. christian130 (3 Posts)
  74. elbino (3 Posts)
  75. eashwaranp (1 Post)
  76. atul.sachan@capgemini.com (3 Posts)
  77. Joe Kuan (1 Post)
  78. kent78 (4 Posts)
  79. dsk1962 (1 Post)
  80. Woodlander (3 Posts)
  81. msmolyak (1 Post)
  82. mond (4 Posts)
  83. anandhasubha (1 Post)
  84. David Warren (1 Post)
  85. colinm (2 Posts)
  86. sothea (1 Post)
  87. incanus (1 Post)
  88. MarceloCajr (1 Post)
  89. knackwurst (1 Post)
  90. Pattie (1 Post)
  91. parnold3 (1 Post)
  92. StanimirPanchev (1 Post)
  93. palashkumar1010 (1 Post)
  94. ash4aque (3 Posts)
  95. farfar (3 Posts)
  96. PrashanthShetty (1 Post)
  97. brprashanth (2 Posts)
  98. perseusy (3 Posts)
  99. theWalli (1 Post)
  100. hieu79vn (1 Post)
  101. Hisamitsu (1 Post)
  102. hensor (1 Post)
  103. northmh (3 Posts)
  104. parax (1 Post)
  105. PankajG (1 Post)
  106. reedcat (1 Post)