Hello everyone,
I have a Web User Control (ascx) that I am adding to a Sitefinity page. I have the grid all setup and functioning, and recently added a footer to a calculated field column. When the page first renders, the Footer Text is displayed fine, but when a row is added, the text disappears and only the total remains. Has anyone ever encountered this? Can you tell from my attached code if there is something missing?
Thank you in advance.
I have a Web User Control (ascx) that I am adding to a Sitefinity page. I have the grid all setup and functioning, and recently added a footer to a calculated field column. When the page first renders, the Footer Text is displayed fine, but when a row is added, the text disappears and only the total remains. Has anyone ever encountered this? Can you tell from my attached code if there is something missing?
Thank you in advance.
<
telerik:RadGrid
ID
=
"rdTicketGrid"
runat
=
"server"
Width
=
"70%"
AllowAutomaticUpdates
=
"false"
AllowAutomaticDeletes
=
"false"
AllowAutomaticInserts
=
"false"
AllowSorting
=
"false"
OnNeedDataSource
=
"rdTicketGrid_NeedDataSource"
AutoGenerateColumns
=
"false"
ShowFooter
=
"true"
OnInsertCommand
=
"rdTicketGrid_InsertCommand"
OnUpdateCommand
=
"rdTicketGrid_UpdateCommand"
OnItemCreated
=
"rdTicketGrid_ItemCreated"
OnDeleteCommand
=
"rdTicketGrid_DeleteCommand"
OnItemDataBound
=
"rdTicketGrid_ItemDataBound"
>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
/>
<
MasterTableView
DataKeyNames
=
"TicketEntryID"
CommandItemDisplay
=
"Top"
InsertItemDisplay
=
"Top"
InsertItemPageIndexAction
=
"ShowItemOnCurrentPage"
>
<
Columns
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
UniqueName
=
"EditCommandColumn"
></
telerik:GridEditCommandColumn
>
<
telerik:GridBoundColumn
DataField
=
"TicketEntryID"
UniqueName
=
"TicketEntryID"
Display
=
"false"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"NumOfTickets"
HeaderText
=
"Number of Tickets"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"NumberTicketsInSet"
HeaderText
=
"Number of Tickets per Set"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"PriceOfTickets"
HeaderText
=
"Price of Tickets"
DataFormatString
=
"{0:C}"
></
telerik:GridBoundColumn
>
<
telerik:GridCalculatedColumn
HeaderText
=
"Total Amount"
UniqueName
=
"TotalSetAmount"
DataType
=
"System.Double"
DataFormatString
=
"{0:C}"
DataFields
=
"NumOfTickets, NumberTicketsInSet, PriceOfTickets"
Expression
=
"{0}/{1}*{2}"
FooterText
=
"Total: "
Aggregate
=
"Sum"
FooterAggregateFormatString
=
"{0:C}"
>
</
telerik:GridCalculatedColumn
>
<
telerik:GridButtonColumn
ConfirmText
=
"Delete this ticket entry?"
ConfirmDialogType
=
"RadWindow"
ConfirmTitle
=
"Delete"
ButtonType
=
"ImageButton"
CommandName
=
"Delete"
/>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
ButtonType
=
"ImageButton"
></
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
ClientSettings
>
<
ClientEvents
OnRowDblClick
=
"rowDblClick"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
<
telerik:RadInputManager
runat
=
"server"
ID
=
"rdInputMgr"
Enabled
=
"true"
>
<
telerik:NumericTextBoxSetting
BehaviorID
=
"TicketEntryIDTBSetting"
Type
=
"Number"
AllowRounding
=
"false"
DecimalDigits
=
"0"
></
telerik:NumericTextBoxSetting
>
<
telerik:NumericTextBoxSetting
BehaviorID
=
"NumTicketsTBSetting"
Type
=
"Number"
AllowRounding
=
"false"
DecimalDigits
=
"0"
></
telerik:NumericTextBoxSetting
>
<
telerik:NumericTextBoxSetting
BehaviorID
=
"PriceTicketsTBSetting"
Type
=
"Currency"
AllowRounding
=
"true"
DecimalDigits
=
"0"
></
telerik:NumericTextBoxSetting
>
<
telerik:NumericTextBoxSetting
BehaviorID
=
"NumberTicketsInSetTBSetting"
Type
=
"Number"
AllowRounding
=
"true"
DecimalDigits
=
"0"
></
telerik:NumericTextBoxSetting
>
</
telerik:RadInputManager
>