RadControls version |
2010.2.812.1040
|
.NET version |
4
|
Visual Studio version |
2010
|
programming language |
c#
|
browser support |
all browsers supported by RadControls
|
PROJECT DESCRIPTION
Most often we want to show a "No records found..." message on the grid when there are no records bound to the grid. This project demonstrates how to create a custom RadGridView to handle this.
The custom grid takes care of
- not showing the no records message on load on a empty grid
- showing the "no records" message when no data is bound (probably as a result of searh results)
- hiding the "no records" message.
The grid has 2 dependency properties
- HasNoRecords (bool?)
- NoRecordsText (string)
Of the above 2 properties, HasNoRecords needs be to bound to a bool? value in the views view model (or code behind) which identifies if there are any records. The NoRecordsText may or may not be data bound. It can even be hardcoded as below.
Useage is as simple as below
Please provide your feedback on this.
Cheers,
Ganesh