I am trying to add a simple add record button to the Header of a RadGrid, but I just can't seem to do it through Editor. The Edit/Delete functions work fine. Using the latest version of RadControls(downloaded demo yesterday).
<%@ Control language="vb" Inherits="DotNetNuke.Modules.CSAEditor.View" AutoEventWireup="false" Explicit="True" Codebehind="View.ascx.vb" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<
telerik:RadGrid
ID
=
"rgcsaEditor"
runat
=
"server"
AllowAutomaticDeletes
=
"True"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
AllowMultiRowEdit
=
"True"
AutoGenerateColumns
=
"False"
AutoGenerateDeleteColumn
=
"True"
AutoGenerateEditColumn
=
"True"
CellSpacing
=
"0"
DataSourceID
=
"CSAlDataSource"
GridLines
=
"None"
Skin
=
"Telerik"
>
<
ClientSettings
>
<
Selecting
CellSelectionMode
=
"None"
></
Selecting
>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
/>
</
ClientSettings
>
<
MasterTableView
datakeynames
=
"csaId"
datasourceid
=
"CSAlDataSource"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
></
CommandItemSettings
>
<
RowIndicatorColumn
Visible
=
"True"
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Visible
=
"True"
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"csaId"
DataType
=
"System.Int32"
Display
=
"False"
FilterControlAltText
=
"Filter csaId column"
HeaderText
=
"csaId"
ReadOnly
=
"True"
SortExpression
=
"csaId"
UniqueName
=
"csaId"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"csaName"
FilterControlAltText
=
"Filter csaName column"
HeaderText
=
"csaName"
SortExpression
=
"csaName"
UniqueName
=
"csaName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"csaWebAddr"
FilterControlAltText
=
"Filter csaWebAddr column"
HeaderText
=
"csaWebAddr"
SortExpression
=
"csaWebAddr"
UniqueName
=
"csaWebAddr"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"csaNotes"
FilterControlAltText
=
"Filter csaNotes column"
HeaderText
=
"csaNotes"
SortExpression
=
"csaNotes"
UniqueName
=
"csaNotes"
>
</
telerik:GridBoundColumn
>
<
telerik:GridCheckBoxColumn
DataField
=
"csaActive"
DataType
=
"System.Boolean"
FilterControlAltText
=
"Filter csaActive column"
HeaderText
=
"csaActive"
SortExpression
=
"csaActive"
UniqueName
=
"csaActive"
>
</
telerik:GridCheckBoxColumn
>
<
telerik:GridCheckBoxColumn
DataField
=
"csaBuyingClub"
DataType
=
"System.Boolean"
FilterControlAltText
=
"Filter csaBuyingClub column"
HeaderText
=
"csaBuyingClub"
SortExpression
=
"csaBuyingClub"
UniqueName
=
"csaBuyingClub"
>
</
telerik:GridCheckBoxColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
></
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
></
FilterMenu
>
</
telerik:RadGrid
>
<
asp:SqlDataSource
ID
=
"CSAlDataSource"
runat
=
"server"
ConnectionString="<%$ ConnectionStrings:CsalwfConnectionString %>"
DeleteCommand="usp_DeleteCSA_INFO" DeleteCommandType="StoredProcedure"
InsertCommand="usp_InsertCSA_INFO" InsertCommandType="StoredProcedure"
SelectCommand="usp_SelectCSA_INFOsAll" SelectCommandType="StoredProcedure"
UpdateCommand="usp_UpdateCSA_INFO" UpdateCommandType="StoredProcedure">
<
DeleteParameters
>
<
asp:Parameter
Name
=
"csaId"
Type
=
"Int32"
/>
</
DeleteParameters
>
<
InsertParameters
>
<
asp:Parameter
Name
=
"csaName"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"csaWebAddr"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"csaNotes"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"csaActive"
Type
=
"Boolean"
/>
<
asp:Parameter
Name
=
"csaBuyingClub"
Type
=
"Boolean"
/>
<
asp:Parameter
Direction
=
"InputOutput"
Name
=
"csaId"
Type
=
"Int32"
/>
</
InsertParameters
>
<
UpdateParameters
>
<
asp:Parameter
Name
=
"csaId"
Type
=
"Int32"
/>
<
asp:Parameter
Name
=
"csaName"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"csaWebAddr"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"csaNotes"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"csaActive"
Type
=
"Boolean"
/>
<
asp:Parameter
Name
=
"csaBuyingClub"
Type
=
"Boolean"
/>
</
UpdateParameters
>
</
asp:SqlDataSource
>