This is a migrated thread and some comments may be shown as answers.

Data- Attribute for Virtual Scrolling on a Grid

2 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 26 Jul 2013, 12:25 PM
Hi All,

Can someone point me to the right data- attribute for virtual scrolling on a grid?

This is a the configuration option on the GRID

scrollable.virtual Boolean(default: false)

I have tried the following.

data-scrollable = "virtual"
data-scrollable-virtual="true"
data-scrollable = "virtual = true"

None of these work.  I would like virtual scrolling, but if not supported using data- attributes then can I modify the grid once it is  initialized?

I tested it by making sure the page count was less then the number of items in odata results set.  Fiddler shows the first request being send with the correct top value.

Thanks for any help.

Regards

Richard...

2 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 26 Jul 2013, 01:18 PM
Hi Richard,

Complex configuration options are set as JavaScript object literals. For example:
scrollable: {
    virtual: true
}
 
data-scrollable='{ "virtual": true }'

You can find more information in the following help topic:

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Richard
Top achievements
Rank 1
answered on 26 Jul 2013, 03:17 PM
Hi Alexander,

That was it.  I did see that documentation but must have missed that bit about JavaScript object literals.

Any it is working now.

Thanks

Richard..
Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Richard
Top achievements
Rank 1
Share this question
or