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

NoRecordsTemplate issue

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
miksh
Top achievements
Rank 1
Iron
miksh asked on 10 Jul 2008, 07:18 PM
How to output NoRecordsTemplate when RadGrid is bound to ObjectDataSource and it cancels the data query in ObjectDataSource_Selecting event?

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 11 Jul 2008, 10:06 AM
Hello Michael,

You need to somehow return an empty data set or table, which means you still need to set up a data source with no items. This is certainly an issue connected to the data source control, where you would fetch a data collection with the required data fields but no items. The easiest way to do this using ObjectDataSource would be to use filtering with an unexisting value in a data field, where a table would be returned, but with no records.

Best wishes,
Veli
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
miksh
Top achievements
Rank 1
Iron
Answers by
Veli
Telerik team
Share this question
or