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

Radgrid Height

2 Answers 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karlheinz
Top achievements
Rank 1
Karlheinz asked on 07 Apr 2015, 02:39 PM

I'd like to configure RadGrid as follows:

- if there are no records to display, the grid should display only the header-row and maybe "no records to display" . Consuming no other space.

-if there are records to display, just show all records.

No fixed heiht, no paging.

Is this possible with RadGrid ??

Thanks for any help.

 

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 07 Apr 2015, 04:49 PM
Hi,

In the article below you can see how to use NoRecordsTemplate. This property defines a template that will be displayed if there are no records in the assigned DataSource:
http://www.telerik.com/help/aspnet-ajax/grid-norecordstemplate.html

In order to prevent fixed height for the grid paging and scrolling should not be enabled.

Regards,
Pavlina
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Karlheinz
Top achievements
Rank 1
answered on 07 Apr 2015, 04:58 PM
Thanks a lot, Pavlina, i just had to disable Scrolling :-)
Tags
Grid
Asked by
Karlheinz
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Karlheinz
Top achievements
Rank 1
Share this question
or