RadGrid for ASP.NET

RadGrid Send comments on this topic.
InitInsertCommandName Field
See Also 
Telerik.WebControls Namespace > RadGrid Class : InitInsertCommandName Field


Represents the "InitInsert" command name. This field is read-only. 

Example

The example below demonstrates how to use the InitInsert command within an CommandItemTemplate.

                <CommandItemTemplate>
            
                    <asp:LinkButton runat="server" ID="AddNew" Text="Add new record" CommandName="InitInsert">
            
                    </asp:LinkButton>
            
                </CommandItemTemplate>
            

 

Namespace: Telerik.WebControls
Assembly: RadGrid (in RadGrid.dll)

Syntax

Visual Basic (Declaration) 
Public Shared InitInsertCommandName As String
Visual Basic (Usage)Copy Code
Dim value As String
 
value = RadGrid.InitInsertCommandName
 
RadGrid.InitInsertCommandName = value
C# 
public static string InitInsertCommandName

Example

The example below demonstrates how to use the InitInsert command within an CommandItemTemplate.

                <CommandItemTemplate>
            
                    <asp:LinkButton runat="server" ID="AddNew" Text="Add new record" CommandName="InitInsert">
            
                    </asp:LinkButton>
            
                </CommandItemTemplate>
            

Remarks

Use the InitInsertCommandName field to represent the "InitInsert" command name. This command enters RadGrid in edit mode and lets the user enter the data for a new record.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also