Grid: How to "use cells wisely" when using React Wrapper

4 posts, 0 answers
  1. Matthew
    Matthew avatar
    3 posts
    Member since:
    Nov 2018

    Posted 09 Nov 2018 Link to this post

    In the link here: https://www.telerik.com/blogs/how-to-get-the-best-grid-performance

    The following is suggested under the "Use Editors or Widgets in Cells Wisely" section:

    "At this point we decide to prevent the rebinding of the Grid after each change by removing the two-way binding and by changing the dataItem values manually (changing the properties without using the “set” method and setting the dirty property to true). Great, now we can edit multiple records without re-rendering the Grid"

    This obviously refers to the Jquery Kendo Grid.

    How would one achieve the same thing using the React Wrapper? 

  2. Matthew
    Matthew avatar
    3 posts
    Member since:
    Nov 2018

    Posted 09 Nov 2018 in reply to Matthew Link to this post

    (The reason I ask is because whenever I change the value of a DropDownList inside the Grid, it unmounts and remounts every DropDownList in the entire Grid)
  3. Stefan
    Admin
    Stefan avatar
    2909 posts

    Posted 12 Nov 2018 Link to this post

    Hello, Matthew,

    Could you please share the implementation where the DropDownList is unbound, as I can assume that this could be caused by the manual updates and the React updates cycles?

    Also, if the point is to have all editors at the same time and allow multiple editing, please check our Native Grid and its all edit example which can prove helpful in this case:

    https://www.telerik.com/kendo-react-ui/components/grid/editing/editing-all-cell/

    Regards,
    Stefan
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  4. Matthew
    Matthew avatar
    3 posts
    Member since:
    Nov 2018

    Posted 12 Nov 2018 in reply to Stefan Link to this post

    Thanks Stefan. The methodology used in the link you provided helped me to resolve the issue.
Back to Top