Declined
Last Updated: 31 Mar 2020 14:56 by ADMIN
Dan
Created on: 18 Mar 2020 16:25
Category: Grid
Type: Feature Request
0
Grid set scrollable to true

Kendo UI has the property https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/configuration/scrollable that can not be set in the UI for ASP.NET Core with the value TRUE

The reason I am asking is because if I change it on document ready using the grid.setOptions if the grid has autobind then the Read method is executed twice.

3 comments
ADMIN
Silviya Stoyanova
Posted on: 31 Mar 2020 14:56

Hello Dan,

I am glad to read that you found a solution and I would like to thank you for sharing it with us.

As for the serialization, after scrolling is enabled, you are absolutely right -  the default height of the grid widget is 200px. It was long-established in accordance with the most often applied page size.

I have discussed with my team and I am afraid that the feature you had requested is a kind of transformation that will lead to breaking changes. That is the reason it was not accepted.

We appreciate your spending time on this topic.

Kind Regards, Silviya Stoyanova Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Dan
Posted on: 26 Mar 2020 05:46
Hi Silviya,
Have you tried to use Scrollable() in the context of ASP.Net CORE? If you set Scrollable() this will convert to json { , scrollable: { height: 200px }, } which is not what I want. What I want is this { , scrollable: true, }
Anyway I manage to find a solution that is not written in any documentation and maybe this you should be in your documentation.  If you use this Scrollable(s => s.Height(null))  => {, scrollable: true, }
 
Also BTW the reason I was using setOptions was to set the scrollable setOptions({scrollable: true})
ADMIN
Silviya Stoyanova
Posted on: 25 Mar 2020 15:53

Hello, Dan,

By using .Scrollable() scrolling functionality is enabled and the value is set to true.

The reason for the read() method to be executed twice is that during initializing of the grid the read() is called once. If setOptions() method is called the grid widget will be destroyed and recreated again, which means another read request is made.

In such a case you could set .AutoBind(false). After that either by calling setOptions() change to 

.setOptions({autoBind: true})

Or manually call read/fetch of the data source.

grid.dataSource.read()

 

I hope this would help.

Kendo Regards, Silviya Stoyanova Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.