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

Heading Only In The Title Bar while Inserting Or Editing

2 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Anto (DLL Version : 2008.3.1314.35) asked on 16 Oct 2009, 11:56 AM
Hi All

I have a grid with some records,

EditMode="PopUp"


protected void RadGridEmpType_ItemCommand(object source, GridCommandEventArgs e)  
        {  
            if (e.CommandName == "Edit")  
            {  
                RadGridEmpType.MasterTableView.EditFormSettings.CaptionDataField = "TypeShortDesc";  
                RadGridEmpType.MasterTableView.EditFormSettings.CaptionFormatString = "Edit Employee Type : {0}";  
            }  
            else if (e.CommandName == "InitInsert")  
            {  
                RadGridEmpType.MasterTableView.EditFormSettings.CaptionDataField = "";  
                RadGridEmpType.MasterTableView.EditFormSettings.CaptionFormatString = "Add New Employee Type";                    
            }  
        } 

 

When I click the Add New Record button.

In the Title Bar "Add New Employee Type" is displayed.

Under the title bar again "Add New Employee Type" is displayed.

This appears even for EDIT.

Is there any option to display it only in the title bar

Thanking You

-Anto

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 16 Oct 2009, 01:27 PM
Hi Anto,

Try the following code snippet.

CS:
 
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
    if (e.Item is GridEditableItem && e.Item.IsInEditMode) 
    { 
        GridEditableItem item = (GridEditableItem)e.Item; 
        ((System.Web.UI.WebControls.TableRow)(item.Controls[1].Controls[0].Controls[1].Controls[0].Controls[0])).Visible = false
 
    } 

-Shinu.
0
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
answered on 19 Oct 2009, 01:25 PM
Hi Shinu,

Thank You very much

-Anto
Tags
Grid
Asked by
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Share this question
or