Showing posts with label hack. Show all posts
Showing posts with label hack. Show all posts

Sunday, December 15, 2013

KendoUI Grid calculate new virtual scrollbar without rebinding grid


KendoUI contain many UI for web developer, one of it is KendoGrid.
KendoGrid supported many features such as inline editing, moving/resizing/sorting column, etc.

One of useful feature is virtual scrollbar (demo), Kendo make it worked both desktop/mobile browser but if you project have more than one view type.

For example compact/full mode which have a different row heights, the easy way to do is binding grid with the old datasource and another way is let's it calculate the virtual scrollbar.