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

[Solved] Showing no data message in gridview

5 Answers 176 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michele
Top achievements
Rank 2
Michele asked on 16 Jul 2009, 11:41 AM
Hello,
It's possible to have a "No data present" message when the datasource has got no item in the gridview?
Thanks in advance

Paolo

5 Answers, 1 is accepted

Sort by
0
Accepted
Kalin Milanov
Telerik team
answered on 21 Jul 2009, 04:11 PM
Hi Paolo,

We are considering of implementing EmptyDataTemplate in the RadGridView out of the box in the future, Right now you can work around this manually. Attached I am sending you a sample which illustrates how to go about doing so.

I hope this works.

Sincerely yours,
Kalin Milanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ravindranath Wickramanayake
Top achievements
Rank 1
answered on 16 Feb 2010, 10:25 PM
this.RadGridView1.ChildrenOfType<TextBlock>().Where(tb => tb.Name == "EmptyDataPresenter").FirstOrDefault();

Where is ChildrenOftype in silverlight radGridView can't find it
0
Vlad
Telerik team
answered on 17 Feb 2010, 06:45 AM
Hi,

This is extension method part of Telerik.Windows.Controls namespace.

Greetings,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
cbondeson
Top achievements
Rank 1
answered on 04 Mar 2010, 07:19 PM
Hello, I am trying to do the same thing in version 2009.3.1314.1030 of the DLLs and there is no longer a GridViewItemsControl control that would be needed for the template, can you tell me know it would be done now?  Thank you.
0
Milan
Telerik team
answered on 05 Mar 2010, 06:05 AM
Hi cbondeson,

Could you please take a look at this blog post - contains up to date information.


Greetings,
Milan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Michele
Top achievements
Rank 2
Answers by
Kalin Milanov
Telerik team
Ravindranath Wickramanayake
Top achievements
Rank 1
Vlad
Telerik team
cbondeson
Top achievements
Rank 1
Milan
Telerik team
Share this question
or