React Ag-Grid Tutorial: Beyond Checkbox Selection | Codenemy Tutorial

Поделиться
HTML-код
  • Опубликовано: 5 окт 2020
  • Hey Guys,
    In this video I am going to show How to select a row and display data for selected row. we will have a look on checkbox selection too and allow row selection based on conditions and many more.
    React Ag-Grid Tutorial: Beyond Checkbox Selection | Codenemy Tutorial
    Populate grid data from External API:
    • React Ag-Grid Tutorial...
    GitHub URL of program :
    github.com/vikas62081/YT/tree...
    #react #grid #selection #checkbox

Комментарии • 74

  • @aakashsharma3801
    @aakashsharma3801 Месяц назад +1

    Appreciate for this helpful tutorial🙏🏻

  • @user-mp1zk7cw8c
    @user-mp1zk7cw8c 10 месяцев назад

    You saved my day!... Thank you so much

  • @timothyvandeweerd946
    @timothyvandeweerd946 2 года назад +2

    Thank you sir, just what I needed. I appreciate you sharing your skill.

    • @Codenemy
      @Codenemy  2 года назад

      It's my pleasure, Thanks for watching :)

  • @popcorntime3002
    @popcorntime3002 3 года назад

    Thank you so much bro. You made my day. Was struggling with my task. Your video helped me a alot. Expecting more videos from you. Once again thank you so much

    • @Codenemy
      @Codenemy  3 года назад

      Glad to hear that it was helpful, i will upload more videos and thanks for watching.

  • @tingtinghe3420
    @tingtinghe3420 6 месяцев назад

    great! Thanks!!
    I learned a lot! But I have problems with the aggregated data. I want to choose the top node, then only save the rows of selected few top nodes to the database. Is there anyway to do it???

  • @jairovera8065
    @jairovera8065 Год назад

    Awesome video. Is there a way to render some text or icon when the row is not selectable (when there isn’t a checkbox)?

  • @webdeveloper2795
    @webdeveloper2795 5 месяцев назад

    very good tutorials

  • @fikretakbass
    @fikretakbass Год назад

    This comment for grow your channel. Many Greetings From Turkey. ♥

  • @arihantjain8347
    @arihantjain8347 Год назад +2

    no one is giving information about aggrid, very rare and great explaination thanks!
    If possible can you make video on SSRM?

    • @Codenemy
      @Codenemy  Год назад +1

      Thanks, Here you go ruclips.net/video/qOTeoNheCEc/видео.html
      if you want more pls checkout aggrid playlist

    • @arihantjain8347
      @arihantjain8347 Год назад +1

      @@Codenemy oh Thanks! :)

  • @sfybskot
    @sfybskot 2 года назад +1

    So useful video! Thanks a lot!

    • @Codenemy
      @Codenemy  2 года назад

      Glad to hear that, Thanks for watching :)

  • @SAADSHAH-ot2ri
    @SAADSHAH-ot2ri Месяц назад

    how to pre select and disable some checkboxes on load. I am having trouble at this

  • @AshishKumar00
    @AshishKumar00 9 месяцев назад

    Could you please made video on default row checkbox selection

  • @manishpandey3286
    @manishpandey3286 Год назад +1

    Nice

  • @ricardocalixto4472
    @ricardocalixto4472 3 года назад +1

    thank you very much

    • @Codenemy
      @Codenemy  3 года назад

      Thanks for watching :)

  • @mayankrockss
    @mayankrockss 3 года назад

    Good explanation.. Can you please add vids about how to show hide a column i.e. customising columns and related topics.

    • @Codenemy
      @Codenemy  3 года назад

      Thanks for your suggestion, i will thanks for watching :)

    • @Codenemy
      @Codenemy  3 года назад +1

      Hey Mayank,
      have a look ruclips.net/video/fq7JaTPCotw/видео.html

  • @jaikrishna3586
    @jaikrishna3586 Год назад

    thankyou

  • @djef4650
    @djef4650 Год назад +1

    good

  • @gabycl5694
    @gabycl5694 2 года назад +1

    Hi! great video!.... how i can get the index of the select rows?, i want to redraw with background color only the select rows

    • @Codenemy
      @Codenemy  2 года назад

      You can do this by overriding css clsss style of ag-row-selected.
      write this in css file and import it.
      .ag-theme-alpine .ag-row-selected{
      background-color: #59879c ;
      }
      if stuck plz let me know :)

  • @user-ex2ep1hh2f
    @user-ex2ep1hh2f 10 месяцев назад

    how to do select max three checkbox .

  • @salonidesai8055
    @salonidesai8055 2 года назад +1

    Thanks this really helped me! Just one question-- getSelectedRows array stores all the rows that were selected. Even if I have deselected it later. I just want to know currently selected rows. Is there a function for that ?

    • @Codenemy
      @Codenemy  2 года назад

      Yes you can, getSelectedRows is gonna to return current selected data only in array.

    • @salonidesai8055
      @salonidesai8055 2 года назад +1

      ​@@Codenemy Thank you!

    • @salonidesai8055
      @salonidesai8055 2 года назад +1

      @@Codenemy Can you also do a video about refreshing the grid with updated data ? :)

    • @Codenemy
      @Codenemy  2 года назад

      @@salonidesai8055 sure, i will, thanks for suggestion :)

  • @KK-ib2bi
    @KK-ib2bi 2 года назад +1

    This was very helpful
    I need a help in checking the checking based on the boolean values I am getting from the API.
    Can you please help me?

    • @Codenemy
      @Codenemy  2 года назад

      You can directly assign to row selection, hope it will take care

  • @sathishsivakumar5800
    @sathishsivakumar5800 2 года назад +1

    I have one doubt ,it possible to apply the CSS properties in the checkbox selection???

    • @Codenemy
      @Codenemy  2 года назад +1

      Of course you can do this, Go to inspect & select checkbox grab those classes and override.

  • @ankitparmar7975
    @ankitparmar7975 2 года назад +1

    Hello sir,
    I need to select/deselect only current page rows using checkbox header selection.
    currently with header selection it selects my all data..
    please help
    Thanks

    • @Codenemy
      @Codenemy  2 года назад

      Have a look here on this angularjs example codesandbox.io/s/ag-gridpaginationselection59298385-vub53?fontsize=14&hidenavigation=1&theme=dark

  • @mayankrockss
    @mayankrockss 3 года назад

    headerCheckboxSelection is only supported in Client side model? Is that correct? I want it in Server side as well. What can be done for that? any suggestion.

    • @Codenemy
      @Codenemy  3 года назад

      It's completely depend on your required.
      Have a look here for server side selection: www.ag-grid.com/documentation/react/server-side-model-selection/

    • @Codenemy
      @Codenemy  2 года назад

      Have a look here for server-side pagination, filtering & sorting ruclips.net/video/qOTeoNheCEc/видео.html

  • @ThePsteja
    @ThePsteja 2 года назад +1

    Can we implement editing on rows which were selected? Thanks

    • @Codenemy
      @Codenemy  2 года назад

      Of course you can, But you have to write custom functionality.

  • @kavyak9700
    @kavyak9700 2 года назад +1

    I want to select only 10 rows , after that all check box has to be disabled, any 10 rows and post that check box have to be disabled.
    How to do that?

    • @Codenemy
      @Codenemy  2 года назад

      This feature doesn't exist, i tried to customize too but haven't worked.

  • @saanvipoornima6917
    @saanvipoornima6917 2 года назад +1

    Hi can you make series for unit testing in jest enzyme with ag grid

    • @Codenemy
      @Codenemy  2 года назад

      sure, will update you, Thanks for watching :)

  • @svermashubham456
    @svermashubham456 2 года назад +1

    In case I want to select a row by clicking on the row but the checkbox should not be checked, how to do that?

    • @Codenemy
      @Codenemy  2 года назад +1

      You can try these two methods
      onRowClicked - Row is clicked.
      onRowDoubleClicked - Row is double clicked.
      on trigger of event you can call your method and implement your business.

  • @ApurvKhare
    @ApurvKhare 3 года назад

    I have an issue with checkbox row selection. The row is selected on click of anywhere in the row, which I don't want. I want to select the row only on click of the checkbox. Can you please help with this issue. Thanks

    • @Codenemy
      @Codenemy  3 года назад +1

      Hey Add this property to aggrid :
      suppressRowClickSelection={true}
      please let me know if issue remain, thanks for watching

    • @ApurvKhare
      @ApurvKhare 3 года назад

      @@Codenemy It worked. Thanks alot. I have been struggling with React ag grid alot since I have started using it but your videos are very helpful. Are you planning a Project video with Ag grid, that would be really awesome. Also unique since I don't find any such projects on RUclips.

    • @Codenemy
      @Codenemy  3 года назад

      glad to hear that it worked, which kind of project would you like to see with ag Grid.

    • @ApurvKhare
      @ApurvKhare 3 года назад +1

      @@Codenemy so basically take data from an external API and also add it via form(can use formik or react-final-form)
      Then have copy, edit, delete buttons on the last column, which work accordingly. And best thing would be drag&drop functionality of rows. This is some rough idea I am thinking of.

    • @Codenemy
      @Codenemy  3 года назад +2

      ​@@ApurvKhare​I will, thanks for info :)

  • @have945
    @have945 3 года назад

    please make video on row editing with popup

    • @Codenemy
      @Codenemy  3 года назад

      I will Thanks for watching :)

  • @vandanasaini3520
    @vandanasaini3520 Год назад +1

    RowSelection function called when I unchcek the checkbox as well,

    • @Codenemy
      @Codenemy  Год назад

      function onSelectionChanged will get called while uncheck as well

  • @pavanreddy1388
    @pavanreddy1388 Год назад +1

    how to do select all checkox for serverside

    • @Codenemy
      @Codenemy  Год назад

      get a field in api and use function
      const onFirstDataRendered = useCallback((params) => {
      gridRef.current.api.forEachNode((node) =>
      node.setSelected(field)
      );
      }, []);

  • @Mr.chandan
    @Mr.chandan Год назад

    nice
    🦏

  • @poornimanaidu3815
    @poornimanaidu3815 2 года назад +1

    On checkbox selection only that particular row cell should show else hidden.. how can I achieve this

    • @Codenemy
      @Codenemy  2 года назад

      You have to modify isRowSelectable function Have a look here www.ag-grid.com/react-data-grid/row-selection/#example-specify-selectable-rows

    • @poornimanaidu3815
      @poornimanaidu3815 2 года назад +1

      @@Codenemy I need checkbox on all rows, its just that if I check any one checkbox (in that particular row ) I want the action items to be editable otherwise it should be non editable

    • @Codenemy
      @Codenemy  2 года назад

      @@poornimanaidu3815 on selection change you can enable editable for row only, Have a look here ag-grid.com/javascript-data-grid/cell-editing/#example-full-row-editing

    • @poornimanaidu3815
      @poornimanaidu3815 2 года назад

      @@Codenemy this is done on button click event, but in my project I have added "checkboxSelection: true" in "columnDefs
      " and every checkbox selection I want a cell editable and vice versa

    • @Codenemy
      @Codenemy  2 года назад

      @@poornimanaidu3815 you have to implement single select and enable edit once user selected row