React Ag-Grid Tutorial: Server-Side Pagination, Filtering, Search, and Sorting | Codenemy Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ธ.ค. 2024

ความคิดเห็น • 75

  • @Codenemy
    @Codenemy  3 ปีที่แล้ว +2

    If you are getting startRow and endRow as undefined
    then add this property to agGrid serverSideStoreType="partial"
    This feature has been added to latest version.
    Thanks for watching.

    • @MrDevarasu
      @MrDevarasu ปีที่แล้ว

      Hi, I am using version 28 and facing issue startRow and endRow as undefined

    • @AnkurSharma-hf9jn
      @AnkurSharma-hf9jn 10 หลายเดือนก่อน

      same I also get the undefined for the startRow and endRow

  • @manishbachani7247
    @manishbachani7247 2 ปีที่แล้ว +2

    Wow Good Explaination solved my issues in my production project

    • @Codenemy
      @Codenemy  2 ปีที่แล้ว

      Good to hear that, Thanks

  • @hos7012
    @hos7012 หลายเดือนก่อน +1

    You are a legend

  • @MsPrakhar12
    @MsPrakhar12 10 หลายเดือนก่อน +1

    Very nice explanation.

  • @abhilashm5236
    @abhilashm5236 3 ปีที่แล้ว +2

    Great content, very informative.
    Keep up the good work. 👍👍

    • @Codenemy
      @Codenemy  3 ปีที่แล้ว +1

      Glad to hear that, Thanks for watching :)

  • @SM-yx1vp
    @SM-yx1vp ปีที่แล้ว +1

    Thanks, Do you have example for server side grouping? I am not able to achieve it

  • @ankitavibhandik5740
    @ankitavibhandik5740 2 ปีที่แล้ว +2

    Hi, I just upgraded aggrid to version 27. Since then, on filter change using setFilterModel no api call is being made to server and hence filtered data is not rendered in grid. What changed between v25 and v27 in terms of setfiltermodel on filterchange?

    • @apurvpatil3786
      @apurvpatil3786 ปีที่แล้ว

      Facing same issue did you got any solution

  • @vivekmanthri8723
    @vivekmanthri8723 ปีที่แล้ว

    How do I define the startRow and endRow, because the default is set to 100, but I want it to be 10. So that for pagination when I click the next page, it makes an API call and fetches the next 10 data.

  • @maciejmarciniak6915
    @maciejmarciniak6915 ปีที่แล้ว +2

    Hello, How can I set startRow and endRow. Problem is that callBack to backend is being sent after every each 100 rows. Thank You.

    • @Codenemy
      @Codenemy  ปีที่แล้ว

      I didn't get you, can you pls explain a bit

    • @ParuldotJain
      @ParuldotJain 10 หลายเดือนก่อน

      Did you get any solution for this. I'm also facing this issue

    • @ParuldotJain
      @ParuldotJain 10 หลายเดือนก่อน

      Got the answer we can do via cache block size . for egg We can define cacheBlockSize=50 , startRow =0 endRow=50

  • @mudassarkazi7200
    @mudassarkazi7200 3 ปีที่แล้ว +1

    getting confused about params on onGridReady. from where they are passing the value to params?. isn't it params are same as props. ??

    • @Codenemy
      @Codenemy  3 ปีที่แล้ว

      Whenever onGridReady event trigger, it will call onGridReady function what we have defined. and this event is gonna to give you a parameter, that can be use as two way
      1.
      onGridReady={onGridReady} and function definition is
      onGridReady=(params)=>{
      //here params will be passes automatically
      }
      2.
      function definition remains same but calling gonna to change
      onGridReady={(params)=>onGridReady(params)} and function definition is
      onGridReady=(params)=>{
      //here we are passing params in function call
      }
      I hope this will help you to understand, Thanks for your question :)

  • @dileepnagendra8199
    @dileepnagendra8199 ปีที่แล้ว +1

    Awesome !!!

  • @pradeepkmauryaa
    @pradeepkmauryaa 3 ปีที่แล้ว +1

    how we will acess react states inside framework components of aggrid, Like drop-down, checkbox
    for me every time undefined and In another handler aprt from aggrid it's coming

    • @Codenemy
      @Codenemy  3 ปีที่แล้ว

      If you are trying custom component then you should look for their props( suppose filter, there is filterProps property).

  • @aakashsharma3801
    @aakashsharma3801 8 หลายเดือนก่อน

    After setting up the application and server, when i try to run the application, it is give below error.
    TypeError: params.successCallback is not a function
    TypeError: params.failCallback is not a function
    how to fix it?

  • @sabirkhandarbhanga
    @sabirkhandarbhanga 3 ปีที่แล้ว +1

    Nice content, have you made video on show/hide the floatingFilter and column.

    • @Codenemy
      @Codenemy  3 ปีที่แล้ว

      Yeah have a look here th-cam.com/video/Kp017zPwtvY/w-d-xo.html

  • @ketan19911
    @ketan19911 2 ปีที่แล้ว

    if we want to go directly to "N"th page, how we can do on server side pagination

  • @windzordave2411
    @windzordave2411 3 ปีที่แล้ว +1

    Great video as always man. Can I ask if I can implement this on your Ag-grid video in exporting through excel?

    • @Codenemy
      @Codenemy  3 ปีที่แล้ว

      Have a look here th-cam.com/video/Kp017zPwtvY/w-d-xo.html

  • @jithureddy
    @jithureddy 2 ปีที่แล้ว

    I am trying to set the filterModel from browser URL query params like api.setFilterModel(filters) and trying to access filter model using getRows request param but SSRM getRows method is not triggered.

    • @apurvpatil3786
      @apurvpatil3786 ปีที่แล้ว

      I am also facing same issue looking for solution did you got any solution

  • @rishnavya
    @rishnavya 2 ปีที่แล้ว +1

    How to perfom client-side filtering & sorting for a serverside row-model ?

    • @Codenemy
      @Codenemy  2 ปีที่แล้ว

      this is a tricky one, never thought of it. but why do so?

    • @rishnavya
      @rishnavya 2 ปีที่แล้ว +1

      @@Codenemy I just want to sort and use filters with the data already fetched.

    • @Codenemy
      @Codenemy  2 ปีที่แล้ว

      @@rishnavya i got it, Let me check and get back to you

  • @vijayj009
    @vijayj009 3 ปีที่แล้ว +1

    how to show message in case no rows returned in server side row model?

    • @Codenemy
      @Codenemy  3 ปีที่แล้ว

      You do not have to worry about that, That functionality implicitly exist in ag Grid.
      "No rows to show" kind of message will be in table.

    • @vijayj009
      @vijayj009 3 ปีที่แล้ว

      @@Codenemy I tried the but its not showing any message. same example if you apply year filter with value 2016 then it keeps showing loading symbol, but not message

  • @m4stika
    @m4stika 3 ปีที่แล้ว +1

    ag-grid-enterprise version 23.3.0 used in this video is the free version?
    because I tried to follow the tutorial in this video and install the last version (26.2.0) there is an error problem in the license key

    • @Codenemy
      @Codenemy  3 ปีที่แล้ว

      That error is bcz of license key, are you sure?

  • @kapiljain4423
    @kapiljain4423 ปีที่แล้ว +1

    Is this series work only for AG Grid Enterprise version or we use it for Community? Please share which features we can used without enterprise version.

    • @Codenemy
      @Codenemy  ปีที่แล้ว

      Server side works with enterprise only

    • @kapiljain4423
      @kapiljain4423 ปีที่แล้ว +1

      @@Codenemy which i should go with. i have to create a nested grid. i have 3 table and each grid dispaly data of respective table and each is having the curd operation funtionality. how do i create reusable grid .can you please suggest. or any video link.

    • @Codenemy
      @Codenemy  ปีที่แล้ว

      @@kapiljain4423 You should use one table only

  • @zhongyu-ij1wy
    @zhongyu-ij1wy 2 ปีที่แล้ว

    Can you make more of the advanced ag-grid server side videos? Tbank You Sir!

  • @zafarhussain8273
    @zafarhussain8273 3 ปีที่แล้ว +1

    bhai lagta hai bihar ya UP se hai. by the way you are doing greate job

    • @Codenemy
      @Codenemy  3 ปีที่แล้ว

      It's my pleasure, Thanks for watching :)

  • @KamrulIslam-wj1ky
    @KamrulIslam-wj1ky 3 ปีที่แล้ว +5

    After version 23
    Don't forget to use serverSideStoreType="partial"
    Otherwise startRow and endRow will not work

    • @Codenemy
      @Codenemy  3 ปีที่แล้ว

      Thanks Kamrul for your info :)

  • @ankitapasbola8773
    @ankitapasbola8773 2 ปีที่แล้ว +1

    Can you please also explain how to achieve infinite scrollling with roModelType as serverSide.

    • @Codenemy
      @Codenemy  2 ปีที่แล้ว

      Here you go th-cam.com/video/alKmAoe2Mwg/w-d-xo.html

  • @Jashwanthkumar-q1z
    @Jashwanthkumar-q1z ปีที่แล้ว

    How to set default column filter on any column

    • @praneethk7801
      @praneethk7801 ปีที่แล้ว

      you can add filter : true on defaultColDefs

  • @lararawf6100
    @lararawf6100 ปีที่แล้ว

    God bless you

  • @AwaisBinKaleem
    @AwaisBinKaleem 2 ปีที่แล้ว +1

    how to impliment infinite scroll in ag-grid

    • @Codenemy
      @Codenemy  2 ปีที่แล้ว

      Here you go th-cam.com/video/alKmAoe2Mwg/w-d-xo.html

  • @syedsaad317
    @syedsaad317 2 ปีที่แล้ว +1

    How to refresh whole grid can u help

    • @Codenemy
      @Codenemy  2 ปีที่แล้ว

      Have a look here this.gridApi.refreshCells({force:true});
      need to call this whenever you would like to refresh table data,
      Docs : www.ag-grid.com/react-data-grid/view-refresh/#example-refresh-cells

  • @rollymishra4074
    @rollymishra4074 2 ปีที่แล้ว

    Is sorting from backend by passing parameters to graphQl ( without using ag grid enterprise) and having infinite row modal implementation possible?

    • @rollymishra4074
      @rollymishra4074 2 ปีที่แล้ว

      I am trying to have best of both worlds i.e using infinite row model but sorting from backend (graph Ql) . Can it be implemented?

    • @rollymishra4074
      @rollymishra4074 2 ปีที่แล้ว

      I did find a way but it is forcing me to have buttons for ascending and descending, with use of gridRef.current.columnApi.applyColumn to implement

    • @rollymishra4074
      @rollymishra4074 2 ปีที่แล้ว +1

      Any other solution is most welcome

    • @Codenemy
      @Codenemy  2 ปีที่แล้ว

      @@rollymishra4074 In order to implement server side, you should have enterprise edition. I hope this can be done

  • @sudevsen
    @sudevsen หลายเดือนก่อน

    Is this free version because SS iagination is now a paid feature?

  • @mr_kahani_teller
    @mr_kahani_teller 3 ปีที่แล้ว +1

    thanks you
    But i am using so startRow and endRow comes undefined

    • @Codenemy
      @Codenemy  3 ปีที่แล้ว

      There is is bug in current version of ag-grid
      plz install 23.2.0
      For that execute following command :
      npm install ag-grid-community@23.2.0
      npm install ag-grid-react@23.2.0
      npm install ag-grid-enterprise@23.2.0
      let me know if you stuck :)

    • @rajthacool2843
      @rajthacool2843 3 ปีที่แล้ว +2

      @@Codenemy Hi, Thanks for really Great videos... I want to know "startRow and endRow comes undefined" this issue is only resolved with 23.2.0 version or any higher/lower version also because i am using 25.3.0 version and also facing same issue.

    • @Codenemy
      @Codenemy  3 ปีที่แล้ว

      @@rajthacool2843 This is a bug in current version.

    • @stephentugume5750
      @stephentugume5750 3 ปีที่แล้ว +1

      @@Codenemy i have tried to run the app, but the no data loads in the grid

    • @Codenemy
      @Codenemy  3 ปีที่แล้ว

      @@stephentugume5750 What is the issue, Can you verify with request data what you r passing for API call

  • @coldstone87
    @coldstone87 3 ปีที่แล้ว +1

    how to make this work without enterprise? Is serverside rendering not possible without enterprise?

    • @Codenemy
      @Codenemy  3 ปีที่แล้ว

      Unfortunately we can't do

    • @deepakmnaik2933
      @deepakmnaik2933 2 ปีที่แล้ว

      Can't we just try server-side rendering without enterprise?

    • @deepakmnaik2933
      @deepakmnaik2933 2 ปีที่แล้ว +1

      @@Codenemy Can't we just try server-side rendering without enterprise?

    • @Codenemy
      @Codenemy  2 ปีที่แล้ว

      @@deepakmnaik2933 not you can't bcz these functionality supported by enterprise only

  • @fikretakbass
    @fikretakbass ปีที่แล้ว +1

    json api is pricing. I stoped to watch this series.