Resize is Deprecated Warning

1 Answer 55 Views
Grid
Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
Lee asked on 26 Jun 2024, 02:05 PM | edited on 26 Jun 2024, 02:06 PM

When I add the below block of code to Visual Studio, I'm getting a linting warning that resize is deprecated. In my real application, I need to pass true (grid.resize(true)) to it. Is there a way to suppress such warnings or is there a new way of doing this? This code is from this Kendo UI Knowledge Base article: 
Resize and Expand Grid to 100% Height

      function resizeGrid() {
        gridElement.data("kendoGrid").resize();
      }

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 01 Jul 2024, 06:58 AM

Hi Lee,

Visual Studio most likely detects the jQuery resize() method which has been deprecated:

https://api.jquery.com/resize-shorthand/

The Kendo UI Grid resize() is not deprecated or planned for depreciation. My advise is to ignore the message.

Regards,
Nikolay
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
commented on 01 Jul 2024, 03:40 PM | edited

I use linting so mentally ignoring this doesn't make it easy to find the real warnings. I know this might be more of an eslint question than a Telerik one but is there a way to tell eslint to ignore these? 
Nikolay
Telerik team
commented on 03 Jul 2024, 02:26 PM

Tags
Grid
Asked by
Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
Answers by
Nikolay
Telerik team
Share this question
or