Hello Pik Lee,
It depends on how you are binding the RadGrid and there you want to show this "New". You could try the following
Bind the RadGrid on Page_Load. Here call a method where you create two instance of SqlDataSource control with the Select queries. Check the returned value in this method and decide which datasource you will use to bind the RadGrid control. Then show/hide
SqlDataSource ds1 =
ds1.ConnectionString = ConfigurationManager.ConnectionStrings[
"SELECT * FROM [sf_CmsContentBase] WHERE Application='/'"
SqlDataSource ds2 =
ds2.ConnectionString = ConfigurationManager.ConnectionStrings[
"SELECT * FROM [sf_CmsContentBase] WHERE Application='/News'"
RadGrid1.DataSource = ds1;
RadGrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;
// RadGrid1.DataSource = ds2;
sender, EventArgs e)
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?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.