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

kendo grid k-on-data-bound event

1 Answer 252 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Sreeja
Top achievements
Rank 1
Sreeja asked on 06 May 2016, 08:40 AM

I have an issue in setting the fixed height to kendo grid. It wont load that fixed height on initial loading time. After that it will work properly.

To fix this I hooked the k-on-data-bound event and trying set the height as follows

kendoEvent.sender.k-grid-content.height(400);

But I am unable to get kendoEvent/grid in this event. Please provide the solution to fix this

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 09 May 2016, 04:02 PM
Hi Sreeja,

You can use either 

...
data-height="200px"
...

... or set the height of the containing div, as in the following demo:

http://demos.telerik.com/kendo-ui/grid/mvvm

More information about the Grid's appearance is available in our documentation:

http://docs.telerik.com/kendo-ui/controls/data-management/grid/appearance#height

I hope this helps.

Regards,
Dimiter Topalov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
MVVM
Asked by
Sreeja
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or