Hi there,
is there any way i can debug (go through step by step) for automatic insert event??
the reason behind the question is that i have the following code snippet:
and i'm kinda suspicious that the insert event does not fired,
there is no onItemCommand or onEditCommand in the code behind yet the edit process is working smoothly..
can someone enlight me about this?
is there any way i can debug (go through step by step) for automatic insert event??
the reason behind the question is that i have the following code snippet:
<
telerik:RadPageView
ID
=
"pvSitePlan"
runat
=
"server"
>
<
telerik:RadGrid
ID
=
"rgSitePlans"
runat
=
"server"
CellSpacing
=
"0"
GridLines
=
"None"
DataSourceID
=
"edsSitePlans"
AutoGenerateDeleteColumn
=
"True"
AllowAutomaticUpdates
=
"True"
AllowAutomaticDeletes
=
"True"
Skin
=
"WebBlue"
AllowAutomaticInserts
=
"True"
AutoGenerateEditColumn
=
"True"
AllowPaging
=
"True"
AllowSorting
=
"True"
AllowFilteringByColumn
=
"True"
ShowFooter
=
"true"
>
<
MasterTableView
DataSourceID
=
"edsSitePlans"
AutoGenerateColumns
=
"False"
DataKeyNames
=
"id"
CommandItemDisplay
=
"Top"
>
<
CommandItemSettings
AddNewRecordText
=
"Add Site Plan"
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
=
"name"
FilterControlAltText
=
"Filter name column"
HeaderText
=
"Name"
SortExpression
=
"name"
UniqueName
=
"name"
>
</
telerik:GridBoundColumn
>
<%--<
telerik:GridBoundColumn
DataField
=
"Building.name"
FilterControlAltText
=
"Filter Building column"
HeaderText
=
"Building"
SortExpression
=
"building.name"
UniqueName
=
"building.name"
>
</
telerik:GridBoundColumn
>--%>
<
telerik:GridBoundColumn
DataField
=
"showInMobile"
FilterControlAltText
=
"Filter Mobile column"
HeaderText
=
"Show In Mobile"
SortExpression
=
"showInMobile"
UniqueName
=
"showInMobile"
>
</
telerik:GridBoundColumn
>
<
telerik:GridHyperLinkColumn
DataTextFormatString
=
"Edit Mapping"
DataTextField
=
"id"
DataNavigateUrlFields
=
"id"
UniqueName
=
"editLink"
DataNavigateUrlFormatString
=
"SiteMapMapping.aspx?id={0}"
HeaderText
=
"Edit"
>
</
telerik:GridHyperLinkColumn
>
</
Columns
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<
table
cellpadding
=
"0"
cellspacing
=
"0"
class
=
"dataView"
>
<
tr
>
<
td
colspan
=
"4"
>
<
asp:Button
ID
=
"btnInsertSitePlan"
runat
=
"server"
CommandName
=
"Insert"
Text
=
"Add"
/>
<
asp:Button
ID
=
"Button4"
runat
=
"server"
CommandName
=
"Update"
Text
=
"Update"
/>
<
asp:Button
ID
=
"Button5"
runat
=
"server"
CommandName
=
"Cancel"
Text
=
"Cancel"
CausesValidation
=
"false"
/>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label73"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Name:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
asp:TextBox
ID
=
"TextBox21"
Text='<%# Bind("name") %>' runat="server">
</
asp:TextBox
>
</
td
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label19"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Show In Mobile:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
uc1:CheckBoxControl
ID
=
"CheckBoxControl2"
runat
=
"server"
Checked='<%# Bind("showInMobile") %>' />
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label86"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Building:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
telerik:RadComboBox
ID
=
"RadComboBox3"
runat
=
"server"
DataSourceID
=
"edsBuildings"
DataTextField
=
"name"
DataValueField
=
"id"
SelectedValue='<%#Bind("buildingId") %>'
EmptyMessage="--Please Select--" AppendDataBoundItems="true">
<
Items
>
<
telerik:RadComboBoxItem
Text
=
"Select a Building"
/>
</
Items
>
</
telerik:RadComboBox
>
</
td
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label87"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Type:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<%-- <
asp:TextBox
ID
=
"TextBox34"
Text='<%# Bind("PlanType") %>' runat="server">
</
asp:TextBox
>--%>
<
telerik:RadComboBox
ID
=
"rcbSitePlanType"
runat
=
"server"
DataSourceID
=
"odsSitePlan_Type"
DataTextField
=
"Text"
DataValueField
=
"Value"
AppendDataBoundItems
=
"true"
SelectedValue='<%# Bind("PlanType") %>'>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label74"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Refresh Frequency:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
asp:TextBox
ID
=
"TextBox22"
Text='<%# Bind("refreshFrequency") %>' runat="server">
</
asp:TextBox
>
</
td
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label75"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Status Transparency:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
asp:TextBox
ID
=
"TextBox23"
Text='<%# Bind("unitTransparency") %>' runat="server">
</
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label76"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Image URL:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
asp:TextBox
ID
=
"TextBox24"
Text='<%# Bind("imageUrl") %>' runat="server">
</
asp:TextBox
>
</
td
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label77"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Unit Cell Width:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
asp:TextBox
ID
=
"TextBox25"
Text='<%# Bind("tableCellWidth") %>' runat="server">
</
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label78"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Select Color:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
asp:TextBox
ID
=
"TextBox26"
Text='<%# Bind("mobileSelectColor") %>' runat="server">
</
asp:TextBox
>
</
td
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label79"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Available Color:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
asp:TextBox
ID
=
"TextBox27"
Text='<%# Bind("mobileAvailableColor") %>' runat="server">
</
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label80"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Pre-Reserved Color:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
asp:TextBox
ID
=
"TextBox28"
Text='<%# Bind("mobilePreReservedColor") %>' runat="server">
</
asp:TextBox
>
</
td
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label81"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Sold Color:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
asp:TextBox
ID
=
"TextBox29"
Text='<%# Bind("mobileSoldColor") %>' runat="server">
</
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label82"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Show Interest:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
uc1:CheckBoxControl
ID
=
"CheckBoxControl31"
runat
=
"server"
Checked='<%# Bind("showInterest") %>' />
</
td
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label83"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Interest Radius:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
asp:TextBox
ID
=
"TextBox31"
Text='<%# Bind("interestRadius") %>' runat="server">
</
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label84"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Interest Transparency:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
asp:TextBox
ID
=
"TextBox30"
Text='<%# Bind("interestTransparency") %>' runat="server">
</
asp:TextBox
>
</
td
>
<
td
class
=
"dataLabel"
>
<
asp:Label
ID
=
"Label85"
runat
=
"server"
SkinID
=
"viewDataLabel"
>
Interest Color:</
asp:Label
>
</
td
>
<
td
class
=
"dataField"
>
<
asp:TextBox
ID
=
"TextBox32"
Text='<%# Bind("interestColor") %>' runat="server">
</
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"4"
>
<
asp:Button
ID
=
"btnInsertSitePlan2"
runat
=
"server"
CommandName
=
"Insert"
Text
=
"Add"
/>
<
asp:Button
ID
=
"Button3"
runat
=
"server"
CommandName
=
"Update"
Text
=
"Update"
/>
<
asp:Button
ID
=
"Button10"
runat
=
"server"
CommandName
=
"Cancel"
Text
=
"Cancel"
CausesValidation
=
"false"
/>
</
td
>
</
tr
>
</
table
>
</
FormTemplate
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
</
telerik:RadGrid
>
</
telerik:RadPageView
>
and i'm kinda suspicious that the insert event does not fired,
there is no onItemCommand or onEditCommand in the code behind yet the edit process is working smoothly..
can someone enlight me about this?