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

how to return error message

3 Answers 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
appdev
Top achievements
Rank 1
appdev asked on 19 Mar 2009, 04:08 PM
say i'm using datatable to assign to the grid
radgrid1.datasource = datatable

but if the sqldatareader is empty then how do i display radgrid1.text = "No records found" i want to display that message in the grid. thank you very much.

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 20 Mar 2009, 11:55 AM
Hello Duy,

You can use the following approach:
<telerik:RadGrid ID="RadGrid1" runat="server" ...> 
    <MasterTableView NoMasterRecordsText="No records!" ... 
</telerik:RadGrid> 

Kind regards,
Daniel
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
appdev
Top achievements
Rank 1
answered on 20 Mar 2009, 11:59 AM
so do i add second table view?
0
Daniel
Telerik team
answered on 20 Mar 2009, 02:35 PM
Duy,

You should set the depicted property on the same table view. Depending on your scenairo it may be the MasterTableView or DetailTable.

Kind regards,
Daniel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
appdev
Top achievements
Rank 1
Answers by
Daniel
Telerik team
appdev
Top achievements
Rank 1
Share this question
or