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

Hide noRecordTemplete in Insert mode of Radgrid

2 Answers 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Saroj Nanda
Top achievements
Rank 1
Saroj Nanda asked on 26 Apr 2011, 05:33 PM
Hi,

Is there any way to hide the NoRecordTemplete for Radgrid when the grid is on insert mode.

Your quick help will be highly appreciated.

Regards,
Saroj

2 Answers, 1 is accepted

Sort by
0
Accepted
Iana Tsolova
Telerik team
answered on 29 Apr 2011, 11:18 AM
Hi Saroj,

Try using the following in the ItemCOmmand event handler of the grid:

protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.InitInsertCommandName)
    {
        GridNoRecordsItem item = RadGrid1.MasterTableView.GetItems(GridItemType.NoRecordsItem)[0] as GridNoRecordsItem;
        item.Visible = false;
    }
}


Regards,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Saroj Nanda
Top achievements
Rank 1
answered on 02 May 2011, 11:54 AM
Hi,

It works.

Thanx for your help.

Regards,
Saroj
Tags
Grid
Asked by
Saroj Nanda
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Saroj Nanda
Top achievements
Rank 1
Share this question
or