I have a grid and a button on my page. On click of the button i reload my grid. I have both of them specified in my AJAXSettings.
I use custom skin for my grid. However, after the AJAX update the skin is overridden from the webresource.axd.
I use custom skin for my grid. However, after the AJAX update the skin is overridden from the webresource.axd.
<
telerik:RadAjaxManagerProxy
ID
=
"RadAJAXManagerProxy1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"_btnGo"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"rgBalances"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
3 Answers, 1 is accepted
0
Hi,
Thank you for contacting Telerik support.
The described issue seems rather strange. Try setting the EnableAjaxSkinRendering property of RadGrid to false on Page_Load and see if the behavior changes.
I would need to have a better understanding of the scenario you have. In order to do this I would ask you to send your markup with the code-behind and also the web.config and custom skin you are using. This would enable us to try replicating the issue locally and provide you with an appropriate solution.
I am looking forward to your reply.
Regards,
Viktor Tachev
Telerik
Thank you for contacting Telerik support.
The described issue seems rather strange. Try setting the EnableAjaxSkinRendering property of RadGrid to false on Page_Load and see if the behavior changes.
I would need to have a better understanding of the scenario you have. In order to do this I would ask you to send your markup with the code-behind and also the web.config and custom skin you are using. This would enable us to try replicating the issue locally and provide you with an appropriate solution.
I am looking forward to your reply.
Regards,
Viktor Tachev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
MBEN
Top achievements
Rank 2
Veteran
answered on 03 Dec 2013, 06:01 AM
I tried setting EnableAjaxSkinRendering to false but it doesn't help.
Aatcahed is my markup and code.
Web.Config
css
Aatcahed is my markup and code.
<%@ Page Language="c#" Inherits="DSys.administration.accountActivity" CodeFile="accountActivity.aspx.cs"
MasterPageFile="~/site.master" %>
<%@ MasterType VirtualPath="~/site.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register TagPrefix="DSys" TagName="planDropDown" Src="~/administration/adminPlanDropDown.ascx" %>
<%@ Register TagPrefix="DSys" TagName="pieChart" Src="~/pieChart.ascx" %>
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"ContentPlaceHolder1"
runat
=
"Server"
>
<
link
href
=
"../../App_Themes/MBen/Grid.MBen.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
link
href
=
"../../App_Themes/MBen/Calendar.MBen.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
script
type
=
"text/javascript"
>
function DateSelected(sender, args) {
var date = args.get_newDate(); //Get the selected date
if (date != null) {
var calendar = sender.get_calendar(); //Get the calendar instance.
var specialDaysArray = calendar.SpecialDays.GetValues()//Get the SpecialDays values
for (var i = 0; i <
specialDaysArray.length
; i++) {
if (specialDaysArray[i]._date[0] == date.getFullYear() && specialDaysArray[i]._date[1] == (date.getMonth() + 1) && specialDaysArray[i]._date[2] == date.getDate())//The selected is included in SpecialDays
{
if (specialDaysArray[i].IsSelectable == 0)//The selected date is not selectable
{
sender.clear();
alert("The entered date could not be selected!");
}
}
}
}
}
</script>
<
telerik:RadAjaxManagerProxy
ID
=
"RadAJAXManagerProxy1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"_btnGo"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"rgBalances"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"_pieChart"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"rgBalances"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"rgBalances"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
<
asp:ScriptManagerProxy
ID
=
"ScriptManagerProxy1"
runat
=
"server"
>
</
asp:ScriptManagerProxy
>
<
table
width
=
"100%"
border
=
"0"
cellpadding
=
"0"
cellspacing
=
"0"
>
<
tr
>
<
td
>
<
h1
>
Balances By Account</
h1
>
</
td
>
</
tr
>
<
tr
>
<
td
align
=
"left"
class
=
"subheader"
>
<
telerik:RadAjaxPanel
>
<
p
class
=
"content"
>
Choose a time period by selecting a day of any month for beginning balance and a
day of a future month for ending balance.</
p
>
Current Balances from
<
telerik:RadDatePicker
ID
=
"rdpBeginDate"
runat
=
"server"
>
<
ClientEvents
OnDateSelected
=
"DateSelected"
/>
<
Calendar
ID
=
"Calendar1"
UseRowHeadersAsSelectors
=
"False"
UseColumnHeadersAsSelectors
=
"False"
ViewSelectorText
=
"x"
runat
=
"server"
>
</
Calendar
>
<
DatePopupButton
ImageUrl
=
""
HoverImageUrl
=
""
></
DatePopupButton
>
<
DateInput
ID
=
"DateInput1"
EnableEmbeddedSkins
=
"false"
Skin
=
"MBen"
runat
=
"server"
>
</
DateInput
>
</
telerik:RadDatePicker
>
to
<
telerik:RadDatePicker
ID
=
"rdpEndDate"
runat
=
"server"
>
<
Calendar
ID
=
"Calendar2"
UseRowHeadersAsSelectors
=
"False"
UseColumnHeadersAsSelectors
=
"False"
ViewSelectorText
=
"x"
runat
=
"server"
>
</
Calendar
>
<
DatePopupButton
ImageUrl
=
""
HoverImageUrl
=
""
></
DatePopupButton
>
<
DateInput
ID
=
"DateInput2"
EnableEmbeddedSkins
=
"false"
Skin
=
"MBen"
runat
=
"server"
>
</
DateInput
>
</
telerik:RadDatePicker
>
<
asp:Button
ID
=
"_btnGo"
runat
=
"server"
Text
=
"GO"
/><
br
/>
<
asp:RequiredFieldValidator
ID
=
"_beginDateRequired"
runat
=
"server"
ControlToValidate
=
"rdpBeginDate"
Display
=
"None"
ErrorMessage="<b>Required Field!</
b
><
br
/>Enter a valid begin date!" />
<
asp:RequiredFieldValidator
ID
=
"_endDateRequired"
runat
=
"server"
ControlToValidate
=
"rdpEndDate"
Display
=
"None"
ErrorMessage="<b>Required Field!</
b
><
br
/>Enter a valid end date!" />
<
asp:CompareValidator
ID
=
"_beginDateIsDate"
runat
=
"server"
ControlToValidate
=
"rdpBeginDate"
Operator
=
"DataTypeCheck"
Type
=
"Date"
Display
=
"None"
ErrorMessage="<b>Invalid Field!</
b
><
br
/>Enter a valid date!" />
<%--<
asp:CompareValidator
ID
=
"_endDateGreaterThanBeginDate"
runat
=
"server"
ControlToValidate
=
"rdpEndDate"
ControlToCompare
=
"rdpBeginDate"
Operator
=
"GreaterThan"
Type
=
"Date"
Display
=
"None"
ErrorMessage="<b>Invalid Field!</
b
><
br
/>End date needs to be greater than begin date!" />--%>
<
asp:CustomValidator
ID
=
"_endDateGreaterThanBeginDate"
runat
=
"server"
ControlToValidate
=
"rdpEndDate"
Display
=
"None"
ErrorMessage="<b>Invalid Field!</
b
><
br
/>End date needs to be greater than begin date!"
OnServerValidate="_endDateGreaterThanBeginDate_ServerValidate"></
asp:CustomValidator
>
<
cc1:ValidatorCalloutExtender
ID
=
"_beginDateRequiredCallout"
runat
=
"server"
TargetControlID
=
"_beginDateRequired"
Width
=
"225px"
HighlightCssClass
=
"textRed"
/>
<
cc1:ValidatorCalloutExtender
ID
=
"_endDateRequiredCallout"
runat
=
"server"
TargetControlID
=
"_endDateRequired"
Width
=
"225px"
HighlightCssClass
=
"textRed"
/>
<
cc1:ValidatorCalloutExtender
ID
=
"_beginDateIsDateCallout"
runat
=
"server"
TargetControlID
=
"_beginDateIsDate"
Width
=
"225px"
HighlightCssClass
=
"textRed"
/>
<
cc1:ValidatorCalloutExtender
ID
=
"_endDateGreaterThanBeginDateCallout"
runat
=
"server"
TargetControlID
=
"_endDateGreaterThanBeginDate"
Width
=
"225px"
HighlightCssClass
=
"textRed"
/>
<
br
/>
<
telerik:RadGrid
ID
=
"rgBalances"
runat
=
"server"
CellPadding
=
"0"
CellSpacing
=
"0"
BorderWidth
=
"0"
GridLines
=
"None"
AllowPaging
=
"True"
AllowSorting
=
"True"
DataSourceID
=
"_dataSrcBalances"
PageSize
=
"15"
enablesortingandpagingcallbacks
=
"false"
AutoGenerateColumns
=
"false"
AllowAutomaticUpdates
=
"false"
AllowAutomaticInserts
=
"false"
EnableLinqExpressions
=
"false"
AllowFilteringByColumn
=
"false"
OnPreRender
=
"rgBalances_PreRender"
OnItemCommand
=
"rgBalances_ItemCommand"
AllowAutomaticDeletes
=
"false"
Skin
=
"MBen"
EnableEmbeddedSkins
=
"false"
OnItemDataBound
=
"rgBalances_ItemDataBound"
OnItemCreated
=
"rgBalances_ItemCreated"
AllowCustomPaging
=
"false"
Width
=
"100%"
ImagesPath
=
"../../App_Themes/MBen/Grid"
ShowFooter
=
"true"
>
<
MasterTableView
TableLayout
=
"Fixed"
HierarchyDefaultExpanded
=
"true"
CommandItemDisplay
=
"Top"
Name
=
"AccountBalance"
DataKeyNames
=
"AccountID"
EnableNoRecordsTemplate
=
"true"
PagerStyle-AlwaysVisible
=
"true"
>
<
CommandItemSettings
ShowAddNewRecordButton
=
"false"
ShowRefreshButton
=
"false"
ShowExportToExcelButton
=
"true"
ExportToExcelText
=
""
ExportToCsvText
=
""
ExportToPdfText
=
""
ExportToWordText
=
""
ShowExportToPdfButton
=
"true"
ShowExportToWordButton
=
"true"
ShowExportToCsvButton
=
"true"
/>
<
NoRecordsTemplate
>
<
div
style="color: Red; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold">
<
br
/>
Please select a plan to show activity for the specific plan.
</
div
>
</
NoRecordsTemplate
>
<
HeaderStyle
HorizontalAlign
=
"Center"
/>
<
ItemStyle
HorizontalAlign
=
"Right"
/>
<
AlternatingItemStyle
HorizontalAlign
=
"Right"
/>
<
Columns
>
<
telerik:GridTemplateColumn
UniqueName
=
"AccountName"
HeaderText
=
"Account"
SortExpression
=
"AccountName"
HeaderStyle-Width
=
"15%"
HeaderStyle-HorizontalAlign
=
"Left"
ItemStyle-HorizontalAlign
=
"Left"
>
<
ItemTemplate
>
<%# Eval("AccountName")%>
</
ItemTemplate
>
<
FooterTemplate
>
<
asp:Label
ID
=
"lblTotal"
runat
=
"server"
Text
=
"Total:"
ForeColor
=
"White"
Font-Bold
=
"true"
></
asp:Label
>
</
FooterTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"BeginBalance"
HeaderText
=
"Begin Balance"
ItemStyle-HorizontalAlign
=
"Right"
FooterStyle-HorizontalAlign
=
"Right"
HeaderStyle-Width
=
"11%"
SortExpression
=
"BeginBalanceDollars"
>
<
ItemTemplate
>
<
asp:HyperLink
ID
=
"linkBeginBalance"
runat
=
"server"
Text='<%# Eval("BeginBalanceDollars")%>'></
asp:HyperLink
>
<
div
style
=
"left: -100px;"
>
<
asp:Panel
ID
=
"beginBalanceDiv"
runat
=
"server"
CssClass
=
"hide"
>
<
asp:Literal
ID
=
"beginBalanceDivText"
runat
=
"server"
/></
asp:Panel
>
</
div
>
</
ItemTemplate
>
<
FooterTemplate
>
<
asp:HyperLink
ID
=
"linkBeginBalanceTotal"
runat
=
"server"
></
asp:HyperLink
>
</
FooterTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"Contributions"
HeaderText
=
"Contributions"
ItemStyle-HorizontalAlign
=
"Right"
FooterStyle-HorizontalAlign
=
"Right"
SortExpression
=
"ContributionDollars"
HeaderStyle-Width
=
"11%"
>
<
ItemTemplate
>
<
asp:HyperLink
ID
=
"linkContributions"
runat
=
"server"
Text='<%# Eval("ContributionDollars")%>'></
asp:HyperLink
>
<
div
style
=
"left: -100px;"
>
<
asp:Panel
ID
=
"contributionsDiv"
runat
=
"server"
CssClass
=
"hide"
>
<
asp:Literal
ID
=
"contributionsDivText"
runat
=
"server"
/></
asp:Panel
>
</
div
>
</
ItemTemplate
>
<
FooterTemplate
>
<
asp:HyperLink
ID
=
"linkContributionsTotal"
runat
=
"server"
></
asp:HyperLink
>
</
FooterTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"Distributions"
HeaderText
=
"Distributions"
ItemStyle-HorizontalAlign
=
"Right"
FooterStyle-HorizontalAlign
=
"Right"
SortExpression
=
"DistributionDollars"
HeaderStyle-Width
=
"11%"
>
<
ItemTemplate
>
<
asp:HyperLink
ID
=
"linkDistributions"
runat
=
"server"
Text='<%# Eval("DistributionDollars")%>'></
asp:HyperLink
>
</
ItemTemplate
>
<
FooterTemplate
>
<
asp:HyperLink
ID
=
"linkDistributionsTotal"
runat
=
"server"
></
asp:HyperLink
>
</
FooterTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"Forfeitures"
HeaderText
=
"Forfeitures"
ItemStyle-HorizontalAlign
=
"Right"
FooterStyle-HorizontalAlign
=
"Right"
SortExpression
=
"ForfeitureDollars"
HeaderStyle-Width
=
"10%"
>
<
ItemTemplate
>
<
asp:HyperLink
ID
=
"linkForfeitures"
runat
=
"server"
Text='<%# Eval("ForfeitureDollars")%>'></
asp:HyperLink
>
</
ItemTemplate
>
<
FooterTemplate
>
<
asp:HyperLink
ID
=
"linkForfeituresTotal"
runat
=
"server"
></
asp:HyperLink
>
</
FooterTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"Transfers"
HeaderText
=
"Transfers"
ItemStyle-HorizontalAlign
=
"Right"
FooterStyle-HorizontalAlign
=
"Right"
SortExpression
=
"TransferDollars"
HeaderStyle-Width
=
"10%"
>
<
ItemTemplate
>
<
asp:HyperLink
ID
=
"linkTransfers"
runat
=
"server"
Text='<%# Eval("TransferDollars")%>'></
asp:HyperLink
>
</
ItemTemplate
>
<
FooterTemplate
>
<
asp:HyperLink
ID
=
"linkTransfersTotal"
runat
=
"server"
></
asp:HyperLink
>
</
FooterTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"Earnings"
HeaderText
=
"Earnings"
ItemStyle-HorizontalAlign
=
"Right"
FooterStyle-HorizontalAlign
=
"Right"
SortExpression
=
"Earnings"
HeaderStyle-Width
=
"10%"
>
<
ItemTemplate
>
<
asp:HyperLink
ID
=
"linkEarnings"
runat
=
"server"
Text='<%# Eval("Earnings")%>'></
asp:HyperLink
>
<
div
style
=
"left: -100px;"
>
<
asp:Panel
ID
=
"earningsDiv"
runat
=
"server"
CssClass
=
"hide"
>
<
asp:Literal
ID
=
"earningsDivText"
runat
=
"server"
/></
asp:Panel
>
</
div
>
</
ItemTemplate
>
<
FooterTemplate
>
<
asp:HyperLink
ID
=
"linkEarningsTotal"
runat
=
"server"
></
asp:HyperLink
>
</
FooterTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"EndBalance"
HeaderText
=
"End Balance"
ItemStyle-HorizontalAlign
=
"Right"
FooterStyle-HorizontalAlign
=
"Right"
HeaderStyle-Width
=
"11%"
SortExpression
=
"EndBalanceDollars"
>
<
ItemTemplate
>
<
asp:HyperLink
ID
=
"linkEndBalance"
runat
=
"server"
Text='<%# Eval("EndBalanceDollars")%>'></
asp:HyperLink
>
<
div
style
=
"left: -100px;"
>
<
asp:Panel
ID
=
"endBalanceDiv"
runat
=
"server"
CssClass
=
"hide"
>
<
asp:Literal
ID
=
"endBalanceDivText"
runat
=
"server"
/></
asp:Panel
>
</
div
>
</
ItemTemplate
>
<
FooterTemplate
>
<
asp:HyperLink
ID
=
"linkEndBalanceTotal"
runat
=
"server"
></
asp:HyperLink
>
</
FooterTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"EndBalanceVested"
HeaderText
=
"Vested End Balance"
ItemStyle-HorizontalAlign
=
"Right"
FooterStyle-HorizontalAlign
=
"Right"
HeaderStyle-Width
=
"11%"
SortExpression
=
"EndBalanceVestedDollars"
>
<
ItemTemplate
>
<
asp:HyperLink
ID
=
"linkEndBalanceVested"
runat
=
"server"
Text='<%# Eval("EndBalanceVestedDollars")%>'></
asp:HyperLink
>
</
ItemTemplate
>
<
FooterTemplate
>
<
asp:HyperLink
ID
=
"linkEndBalanceVestedGrandTotal"
runat
=
"server"
></
asp:HyperLink
>
</
FooterTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"Dividend"
DataField
=
"DividendDollars"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"Appreciation"
DataField
=
"AppreciationDollars"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
</
Columns
>
<
DetailTables
>
<
telerik:GridTableView
DataKeyNames
=
"AccountID"
Width
=
"100%"
DataSourceID
=
"_dataSrcFundBalance"
Visible
=
"false"
Name
=
"FundBalance"
GridLines
=
"None"
>
<
ParentTableRelation
>
<
telerik:GridRelationFields
DetailKeyField
=
"AccountID"
MasterKeyField
=
"AccountID"
/>
</
ParentTableRelation
>
<
Columns
>
<
telerik:GridBoundColumn
HeaderText
=
"AccountID"
DataField
=
"AccountID"
UniqueName
=
"AccountID"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
HeaderText
=
"FundTypeID"
DataField
=
"FundTypeID"
UniqueName
=
"FundTypeID"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
HeaderText
=
"FundName"
DataField
=
"FundName"
UniqueName
=
"FundName"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"BeginBalanceShares"
DataField
=
"BeginBalanceShares"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"BeginPrice"
DataField
=
"BeginPrice"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"BeginBalanceDollars"
DataField
=
"BeginBalanceDollars"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"EndBalanceShares"
DataField
=
"EndBalanceShares"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"EndPrice"
DataField
=
"EndPrice"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"EndBalanceDollars"
DataField
=
"EndBalanceDollars"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"ContributionDollars"
DataField
=
"ContributionDollars"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
telerik:GridTableView
>
</
DetailTables
>
</
MasterTableView
>
<
ExportSettings
ExportOnlyData
=
"true"
IgnorePaging
=
"true"
FileName
=
"Activity"
OpenInNewWindow
=
"true"
>
<
Pdf
PaperSize
=
"A4"
PageLeftMargin
=
"5px"
PageRightMargin
=
"5px"
PageWidth
=
"297mm"
PageHeight
=
"210mm"
/>
</
ExportSettings
>
</
telerik:RadGrid
>
</
td
>
</
tr
>
<
tr
>
<
td
align
=
"center"
>
<
DSys:pieChart
ID
=
"_pieChart"
runat
=
"server"
Width
=
"490"
Height
=
"370"
/>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Image
ID
=
"Image1"
runat
=
"server"
ImageUrl
=
"~/publicaccess/images/spacer.gif"
Width
=
"1"
Height
=
"16"
BorderWidth
=
"0"
/>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"footer"
>
<
asp:Literal
ID
=
"_footer"
runat
=
"server"
EnableViewState
=
"false"
/>
</
td
>
</
tr
>
</
table
>
<
asp:ObjectDataSource
ID
=
"_dataSrcBalances"
runat
=
"server"
TypeName
=
"DBLib.PeriodSummary"
SelectMethod
=
"ByAccount_ListByPlanAndDateRange"
OnSelected
=
"_dataSrcBalances_Selected"
>
<
SelectParameters
>
<
asp:ProfileParameter
Name
=
"PlanID"
PropertyName
=
"PlanID"
DefaultValue
=
"-1"
Type
=
"Int32"
/>
<
asp:ControlParameter
ControlID
=
"rdpBeginDate"
Name
=
"beginDate"
PropertyName
=
"SelectedDate"
Type
=
"DateTime"
/>
<
asp:ControlParameter
ControlID
=
"rdpEndDate"
Name
=
"endDate"
PropertyName
=
"SelectedDate"
Type
=
"DateTime"
/>
</
SelectParameters
>
</
asp:ObjectDataSource
>
<
asp:ObjectDataSource
ID
=
"_dataSrcFundBalance"
runat
=
"server"
TypeName
=
"DBLib.PeriodSummary"
SelectMethod
=
"GetFunds_ByAccount_ListByPlanAndDateRange"
>
<
SelectParameters
>
<
asp:ProfileParameter
Name
=
"PlanID"
PropertyName
=
"PlanID"
DefaultValue
=
"-1"
Type
=
"Int32"
/>
<
asp:SessionParameter
Name
=
"AccountID"
SessionField
=
"AccountID"
Type
=
"string"
/>
<
asp:ControlParameter
ControlID
=
"rdpBeginDate"
Name
=
"beginDate"
PropertyName
=
"SelectedDate"
Type
=
"DateTime"
/>
<
asp:ControlParameter
ControlID
=
"rdpEndDate"
Name
=
"endDate"
PropertyName
=
"SelectedDate"
Type
=
"DateTime"
/>
</
SelectParameters
>
</
asp:ObjectDataSource
>
</
asp:Content
>
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Text;
using System.Web.UI.WebControls;
using DBLib;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
namespace DSys.administration
{
/// <
summary
>
/// Summary description for periodActivity.
/// </
summary
>
public partial class accountActivity : BasePage
{
#region Declarations
private double beginBalanceTotal = 0;
private double contributionsTotal = 0;
private double distributionsTotal = 0;
private double forfeituresTotal = 0;
private double transfersTotal = 0;
private double earningsTotal = 0;
private double endBalanceTotal = 0;
private double endBalanceVestedTotal = 0;
private StringBuilder _sbBeginBalance = new StringBuilder();
private StringBuilder _sbEndBalance = new StringBuilder();
private StringBuilder _sbContributions = new StringBuilder();
private StringBuilder _sbEarnings = new StringBuilder();
private bool _earningsHoversOn = true;
private bool IsExport = false;
private string language = "en-US";
#endregion
protected void Page_Load(object sender, EventArgs e)
{
_plans.QueryString = Request.Url.Query;
if (!Page.IsPostBack)
{
if (Profile.ClientID == "")
{
Response.Redirect(Utility.AdminStartPage(), true);
}
base.EmptyProfile();
Profile.Save();
LoadPeriodDates();
//necessary not to repeat the special days on postback
rdpBeginDate.Calendar.SpecialDays.Clear();
rdpEndDate.Calendar.SpecialDays.Clear();
}
switch ((Client.Clients)base.ClientID)
{
case Client.Clients.Hunt:
_earningsHoversOn = false;
break;
}
_sbEarnings.Append(Utility.divstart + Utility.headerrowstart + "<
td
>Dividends</
td
><
td
> Appreciation</
td
>" + Utility.headerrowend +
Utility.divcontent + Utility.footerrowstart + "<
td
colspan
=
'2'
> </
td
>" +
Utility.footerrowend + Utility.divend);
_sbBeginBalance.Append(Utility.divstart + Utility.headerrowstart + "<
td
align
=
'left'
>Fund</
td
>" +
"<
td
> Shares</
td
><
td
> Price</
td
><
td
> Total</
td
>" +
Utility.headerrowend + Utility.divcontent + Utility.footerrowstart +
"<
td
colspan
=
'4'
> </
td
>" + Utility.footerrowend + Utility.divend);
_sbEndBalance.Append(_sbBeginBalance.ToString());
_sbContributions.Append(Utility.divstart + Utility.headerrowstart + "<
td
align
=
'left'
>Fund</
td
>" +
"<
td
> Contributions</
td
>" + Utility.headerrowend +
Utility.divcontent + Utility.footerrowstart +
"<
td
colspan
=
'4'
> </
td
>" + Utility.footerrowend + Utility.divend);
}
#region event handlers
protected void rgBalances_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName.Contains("Export"))
{
if (e.CommandName == "ExportToCsv")
rgBalances.ExportSettings.ExportOnlyData = false;
IsExport = true;
}
}
protected void rgBalances_ItemCreated(object source, GridItemEventArgs e)
{
//removes unwanted line from commanditemdisplay
if (e.Item is GridCommandItem)
{
((Table)e.Item.Cells[0].Controls[0]).Rows[1].Cells[1].Controls.RemoveAt(1);
}
if (IsExport)
FormatGridExport(e);
}
protected void rgBalances_PreRender(object source, EventArgs e)
{
if (rgBalances.MasterTableView.Items.Count == 0)
{
rgBalances.ShowFooter = false;
}
foreach (GridColumn col in rgBalances.MasterTableView.RenderColumns)
{
if (col.UniqueName == "ExpandColumn")
{
col.Display = false;
}
}
if (!IsExport)
{
foreach (GridDataItem item in rgBalances.Items)
{
StringBuilder sbBeginBalance = new StringBuilder();
StringBuilder sbEndBalance = new StringBuilder();
StringBuilder sbBeginBalanceFinal = new StringBuilder(_sbBeginBalance.ToString());
StringBuilder sbEndBalanceFinal = new StringBuilder(_sbEndBalance.ToString());
StringBuilder sbContributions = new StringBuilder();
StringBuilder sbContributionsFinal = new StringBuilder(_sbContributions.ToString());
#region DataItem for Accountbalance
if (item.OwnerTableView.Name == "AccountBalance")
{
DataRowView drv = (DataRowView)item.DataItem;
// begin balance
HyperLink linkBeginBalance = (HyperLink)item["BeginBalance"].FindControl("linkBeginBalance");
Panel beginBalanceDiv = (Panel)item["BeginBalance"].FindControl("beginBalanceDiv");
Literal beginBalanceDivText = (Literal)beginBalanceDiv.FindControl("beginBalanceDivText");
// end balance
HyperLink linkEndBalance = (HyperLink)item["EndBalance"].FindControl("linkEndBalance");
Panel endBalanceDiv = (Panel)item["EndBalance"].FindControl("endBalanceDiv");
Literal endBalanceDivText = (Literal)endBalanceDiv.FindControl("endBalanceDivText");
// contributions
HyperLink linkContributions = (HyperLink)item["Contributions"].FindControl("linkContributions");
Panel contributionsDiv = (Panel)item["Contributions"].FindControl("contributionsDiv");
Literal contributionsDivText = (Literal)contributionsDiv.FindControl("contributionsDivText");
double contributions = Double.Parse(linkContributions.Text, System.Globalization.NumberStyles.Any);
//double contributions = (double)drv[WebBalance.Fields.ContributionDollars];
#region FundBalance
foreach (GridDataItem childItem in item.ChildItem.NestedTableViews[0].Items)
{
// if you need you may also check the parent item keys here
if (item.GetDataKeyValue("AccountID").ToString() == childItem["AccountID"].Text)
{
// BeginBalanceShares
string strBeginBalanceShares = childItem["BeginBalanceShares"].Text;
double beginBalanceShares = Convert.ToDouble(strBeginBalanceShares);
// BeginBalanceDollars
string strBeginBalanceDollars = childItem["BeginBalanceDollars"].Text;
double beginBalanceDollars = Convert.ToDouble(strBeginBalanceDollars);
// BeginPrice
string strBeginPrice = childItem["BeginPrice"].Text;
double beginPrice = Convert.ToDouble(strBeginPrice);
// EndBalanceShares
string strEndBalanceShares = childItem["EndBalanceShares"].Text;
double endBalanceShares = Convert.ToDouble(strEndBalanceShares);
// EndBalanceDollars
string strEndBalanceDollars = childItem["EndBalanceDollars"].Text;
double endBalanceDollars = Convert.ToDouble(strEndBalanceDollars);
// EndPrice
string strEndPrice = childItem["EndPrice"].Text;
double endPrice = Convert.ToDouble(strEndPrice);
// ContributionDollars
string strContributionDollars = childItem["ContributionDollars"].Text;
double contributionDollars = Convert.ToDouble(strContributionDollars);
// FundName
string strFundName = childItem["FundName"].Text;
// FundTypeID
string strFundTypeID = childItem["FundTypeID"].Text;
sbBeginBalance.Append(Utility.rowstart);
sbEndBalance.Append(Utility.rowstart);
sbBeginBalance.Append("<
td
align
=
'left'
>" + strFundName + "</
td
>");
sbEndBalance.Append("<
td
align
=
'left'
>" + strFundName + "</
td
>");
// only show the shares and price if not a fixed fund
//if ((Fund.FundTypes)strFundTypeID == Fund.FundTypes.Fixed)
if (strFundTypeID == "1")
{
sbBeginBalance.Append("<
td
> </
td
><
td
> </
td
>");
sbEndBalance.Append("<
td
> </
td
><
td
> </
td
>");
}
else
{
sbBeginBalance.Append("<
td
> " + Utility.FormatSharesColumn(beginBalanceShares) + "</
td
>");
sbBeginBalance.Append("<
td
> " + Utility.FormatBalanceColumn(beginPrice, language) + "</
td
>");
sbEndBalance.Append("<
td
> " + Utility.FormatSharesColumn(endBalanceShares) + "</
td
>");
sbEndBalance.Append("<
td
> " + Utility.FormatBalanceColumn(endPrice, language) + "</
td
>");
}
sbBeginBalance.Append("<
td
> " + Utility.FormatBalanceColumn(beginBalanceDollars, language) + "</
td
>" + Utility.rowend);
sbEndBalance.Append("<
td
> " + Utility.FormatBalanceColumn(endBalanceDollars, language) + "</
td
>" + Utility.rowend);
sbContributions.Append(Utility.rowstart);
sbContributions.Append("<
td
align
=
'left'
>" + strFundName + "</
td
>");
sbContributions.Append("<
td
> " + Utility.FormatBalanceColumn(contributionDollars, language) + "</
td
>" + Utility.rowend);
}
}
#endregion
// begin balance
beginBalanceDivText.Text = sbBeginBalanceFinal.Replace(Utility.divcontent, sbBeginBalance.ToString()).ToString();
linkBeginBalance.Attributes.Add("onmouseover", "showHidePopup('" + beginBalanceDiv.ClientID + "', true)");
linkBeginBalance.Attributes.Add("onmouseout", "showHidePopup('" + beginBalanceDiv.ClientID + "', false)");
// end balance
endBalanceDivText.Text = sbEndBalanceFinal.Replace(Utility.divcontent, sbEndBalance.ToString()).ToString();
linkEndBalance.Attributes.Add("onmouseover", "showHidePopup('" + endBalanceDiv.ClientID + "', true)");
linkEndBalance.Attributes.Add("onmouseout", "showHidePopup('" + endBalanceDiv.ClientID + "', false)");
if (contributions > 0)
{
// show the contributions
contributionsDivText.Text = sbContributionsFinal.Replace(Utility.divcontent, sbContributions.ToString()).ToString();
linkContributions.Attributes.Add("onmouseover", "showHidePopup('" + contributionsDiv.ClientID + "', true)");
linkContributions.Attributes.Add("onmouseout", "showHidePopup('" + contributionsDiv.ClientID + "', false)");
}
}
#endregion
}
}
HideNestedViewItems(rgBalances.MasterTableView);
RadAjaxManager.GetCurrent(Page).ClientEvents.OnRequestStart = "RequestStart";
}
protected void rgBalances_ItemDataBound(object source, GridItemEventArgs e)
{
if (e.Item is GridDataItem && e.Item.OwnerTableView.Name == "AccountBalance")
{
GridDataItem item = (GridDataItem)e.Item;
DataRowView drv = (DataRowView)item.DataItem;
StringBuilder sbEarnings = new StringBuilder();
StringBuilder sbContributions = new StringBuilder();
StringBuilder sbEarningsFinal = new StringBuilder(_sbEarnings.ToString());
StringBuilder sbContributionsFinal = new StringBuilder(_sbContributions.ToString());
StringBuilder sbBeginBalance = new StringBuilder();
StringBuilder sbEndBalance = new StringBuilder();
StringBuilder sbBeginBalanceFinal = new StringBuilder(_sbBeginBalance.ToString());
StringBuilder sbEndBalanceFinal = new StringBuilder(_sbEndBalance.ToString());
if (PlanID == 828 || PlanID == 829)
{
language = "en-GB";
}
#region DataItem for Accountbalance
// begin balance
HyperLink linkBeginBalance = (HyperLink)item["BeginBalance"].FindControl("linkBeginBalance");
double beginBalance;
if (Double.TryParse(linkBeginBalance.Text, out beginBalance))
Utility.FormatBalanceColumn(beginBalance, linkBeginBalance, language);
//beginBalanceTotal += beginBalance;
Panel beginBalanceDiv = (Panel)item["BeginBalance"].FindControl("beginBalanceDiv");
Literal beginBalanceDivText = (Literal)beginBalanceDiv.FindControl("beginBalanceDivText");
beginBalanceDivText.Text = sbBeginBalanceFinal.Replace(Utility.divcontent, sbBeginBalance.ToString()).ToString();
linkBeginBalance.Attributes.Add("onmouseover", "showHidePopup('" + beginBalanceDiv.ClientID + "', true)");
linkBeginBalance.Attributes.Add("onmouseout", "showHidePopup('" + beginBalanceDiv.ClientID + "', false)");
// end balance
HyperLink linkEndBalance = (HyperLink)item["EndBalance"].FindControl("linkEndBalance");
double endBalance;
if (Double.TryParse(linkEndBalance.Text, out endBalance))
Utility.FormatBalanceColumn(endBalance, linkEndBalance, language);
//endBalanceTotal += endBalance;
Panel endBalanceDiv = (Panel)item["EndBalance"].FindControl("endBalanceDiv");
Literal endBalanceDivText = (Literal)endBalanceDiv.FindControl("endBalanceDivText");
endBalanceDivText.Text = sbEndBalanceFinal.Replace(Utility.divcontent, sbEndBalance.ToString()).ToString();
linkEndBalance.Attributes.Add("onmouseover", "showHidePopup('" + endBalanceDiv.ClientID + "', true)");
linkEndBalance.Attributes.Add("onmouseout", "showHidePopup('" + endBalanceDiv.ClientID + "', false)");
// end balance vested
HyperLink linkEndBalanceVested = (HyperLink)item["EndBalanceVested"].FindControl("linkEndBalanceVested");
double endBalanceVested = Convert.ToDouble(linkEndBalanceVested.Text);
Utility.FormatBalanceColumn(endBalanceVested, linkEndBalanceVested, language);
//endBalanceVestedTotal += endBalance;
// earnings
HyperLink linkEarnings = (HyperLink)item["Earnings"].FindControl("linkEarnings");
double earnings;
if (Double.TryParse(linkEarnings.Text, out earnings))
Utility.FormatBalanceColumn(earnings, linkEarnings, language);
//earningsTotal += earnings;
// earnings
if (_earningsHoversOn)
{
// dividend
string strDividend = item["Dividend"].Text;
double dividend = Convert.ToDouble(strDividend);
strDividend = Utility.FormatBalanceColumn(dividend, language);
// appreciation
string strAppreciation = item["Appreciation"].Text;
double appreciation = Convert.ToDouble(strAppreciation);
strAppreciation = Utility.FormatBalanceColumn(appreciation, language);
sbEarnings.Append(Utility.rowstart + "<
td
>" + strDividend + "</
td
>");
sbEarnings.Append("<
td
> " + strAppreciation + "</
td
>" + Utility.rowend);
Panel earningsDiv = (Panel)item["Earnings"].FindControl("earningsDiv");
Literal earningsDivText = (Literal)earningsDiv.FindControl("earningsDivText");
earningsDivText.Text = sbEarningsFinal.Replace(Utility.divcontent, sbEarnings.ToString()).ToString();
linkEarnings.Attributes.Add("onmouseover", "showHidePopup('" + earningsDiv.ClientID + "', true)");
linkEarnings.Attributes.Add("onmouseout", "showHidePopup('" + earningsDiv.ClientID + "', false)");
}
// contributions
HyperLink linkContributions = (HyperLink)item["Contributions"].FindControl("linkContributions");
double contributions;
if (Double.TryParse(linkContributions.Text, out contributions))
Utility.FormatBalanceColumn(contributions, linkContributions, language);
//contributionsTotal += contributions;
if (contributions > 0)
{
// show the contributions
Panel contributionsDiv = (Panel)item["Contributions"].FindControl("contributionsDiv");
Literal contributionsDivText = (Literal)contributionsDiv.FindControl("contributionsDivText");
contributionsDivText.Text = sbContributionsFinal.Replace(Utility.divcontent, sbContributions.ToString()).ToString();
linkContributions.Attributes.Add("onmouseover", "showHidePopup('" + contributionsDiv.ClientID + "', true)");
linkContributions.Attributes.Add("onmouseout", "showHidePopup('" + contributionsDiv.ClientID + "', false)");
}
// distributions
HyperLink linkDistributions = (HyperLink)item["Distributions"].FindControl("linkDistributions");
double distributions;
if (Double.TryParse(linkDistributions.Text, out distributions))
Utility.FormatBalanceColumn(distributions, linkDistributions, language);
//distributionsTotal += distributions;
// forfeitures
HyperLink linkForfeitures = (HyperLink)item["Forfeitures"].FindControl("linkForfeitures");
double forfeitures;
if (Double.TryParse(linkForfeitures.Text, out forfeitures))
Utility.FormatBalanceColumn(forfeitures, linkForfeitures, language);
//forfeituresTotal += forfeitures;
// transfers
HyperLink linkTransfers = (HyperLink)item["Transfers"].FindControl("linkTransfers");
double transfers;
if (Double.TryParse(linkTransfers.Text, out transfers))
Utility.FormatBalanceColumn(transfers, linkTransfers, language);
//transfersTotal += transfers;
#endregion
}
if (e.Item is GridFooterItem && e.Item.OwnerTableView.Name == "AccountBalance")
{
GridFooterItem footerItem = (GridFooterItem)e.Item;
#region FooterItem
HyperLink linkBeginBalanceTotal = (HyperLink)footerItem["BeginBalance"].FindControl("linkBeginBalanceTotal");
Utility.FormatBalanceColumn(beginBalanceTotal, linkBeginBalanceTotal, language);
HyperLink linkEndBalanceTotal = (HyperLink)footerItem["EndBalance"].FindControl("linkEndBalanceTotal");
Utility.FormatBalanceColumn(endBalanceTotal, linkEndBalanceTotal, language);
HyperLink linkEndBalanceVestedGrandTotal = (HyperLink)footerItem["EndBalanceVested"].FindControl("linkEndBalanceVestedGrandTotal");
Utility.FormatBalanceColumn(endBalanceVestedTotal, linkEndBalanceVestedGrandTotal, language);
HyperLink linkContributionsTotal = (HyperLink)footerItem["Contributions"].FindControl("linkContributionsTotal");
Utility.FormatBalanceColumn(contributionsTotal, linkContributionsTotal, language);
HyperLink linkDistributionsTotal = (HyperLink)footerItem["Distributions"].FindControl("linkDistributionsTotal");
Utility.FormatBalanceColumn(distributionsTotal, linkDistributionsTotal, language);
HyperLink linkForfeituresTotal = (HyperLink)footerItem["Forfeitures"].FindControl("linkForfeituresTotal");
Utility.FormatBalanceColumn(forfeituresTotal, linkForfeituresTotal, language);
HyperLink linkTransfersTotal = (HyperLink)footerItem["Transfers"].FindControl("linkTransfersTotal");
Utility.FormatBalanceColumn(transfersTotal, linkTransfersTotal, language);
HyperLink linkEarningsTotal = (HyperLink)footerItem["Earnings"].FindControl("linkEarningsTotal");
Utility.FormatBalanceColumn(earningsTotal, linkEarningsTotal, language);
#endregion
}
}
protected void _dataSrcBalances_Selected(object sender, ObjectDataSourceStatusEventArgs e)
{
DataTable dt = (DataTable)e.ReturnValue;
_pieChart.DrawPie(dt.DefaultView,
"YValue=" + PeriodSummary.Fields.EndBalanceDollars + ",XValue=" +
PeriodSummary.Fields.AccountName);
if (dt.Rows.Count > 0)
{
beginBalanceTotal = (double)dt.Compute("Sum(" + WebBalance.Fields.BeginBalanceDollars + ")", "");
contributionsTotal = (double)dt.Compute("Sum(" + WebBalance.Fields.ContributionDollars + ")", "");
distributionsTotal = (double)dt.Compute("Sum(" + WebBalance.Fields.DistributionDollars + ")", "");
forfeituresTotal = (double)dt.Compute("Sum(" + WebBalance.Fields.ForfeitureDollars + ")", "");
transfersTotal = (double)dt.Compute("Sum(" + WebBalance.Fields.TransferDollars + ")", "");
earningsTotal = (double)dt.Compute("Sum(" + WebBalance.Fields.Earnings + ")", "");
endBalanceTotal = (double)dt.Compute("Sum(" + WebBalance.Fields.EndBalanceDollars + ")", "");
endBalanceVestedTotal = (double)dt.Compute("Sum(" + WebBalance.Fields.EndBalanceVestedDollars + ")", "");
}
}
protected void _endDateGreaterThanBeginDate_ServerValidate(object source, ServerValidateEventArgs args)
{
try
{
if (rdpBeginDate.SelectedDate <= rdpEndDate.SelectedDate)
{
args.IsValid = true;
}
else
{
args.IsValid = false;
}
}
catch
{
args.IsValid = false;
}
}
#endregion
#region Private Methods
private void LoadPeriodDates()
{
if (base.PlanID != -1)
{
DataTable dt = WebBalance.GetCurrentPeriodbyPlan(base.PlanID);
rdpBeginDate.SelectedDate = ((DateTime)dt.Rows[0][PeriodSummary.Fields.BeginDate]);
rdpEndDate.SelectedDate = ((DateTime)dt.Rows[0][PeriodSummary.Fields.EndDate]);
rdpBeginDate.MaxDate = (DateTime)rdpEndDate.SelectedDate;
rdpEndDate.MaxDate = (DateTime)rdpEndDate.SelectedDate;
//DateTime minDate = ((DateTime)dt.Rows[dt.Rows.Count - 1][PeriodSummary.Fields.BeginDate]);
DateTime minDate = ((DateTime)dt.Rows[dt.Rows.Count - 1][Plan.Fields.PlanBeginDate]);
rdpBeginDate.MinDate = minDate;
rdpEndDate.MinDate = minDate;
_beginDateRequired.ErrorMessage = "<
b
>Required Field!</
b
><
br
/>Enter a valid begin date between " + rdpBeginDate.MinDate.ToShortDateString() + " and " + rdpBeginDate.MaxDate.ToShortDateString() + "!";
_endDateRequired.ErrorMessage = "<
b
>Required Field!</
b
><
br
/>Enter a valid end date between " + rdpEndDate.MinDate.ToShortDateString() + " and " + rdpEndDate.MaxDate.ToShortDateString() + "!";
}
else
{
rdpBeginDate.MaxDate = DateTime.MaxValue;
rdpEndDate.MaxDate = DateTime.MaxValue;
rdpBeginDate.SelectedDate = DateTime.Today;
rdpEndDate.SelectedDate = DateTime.Today;
}
}
#endregion
}
}
Web.Config
<?
xml
version
=
"1.0"
?>
<
configuration
>
<
configSections
>
<
section
name
=
"exceptionHandling"
type
=
"Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
<
sectionGroup
name
=
"system.web.extensions"
type
=
"System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
>
<
sectionGroup
name
=
"scripting"
type
=
"System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
>
<
section
name
=
"scriptResourceHandler"
type
=
"System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
requirePermission
=
"false"
allowDefinition
=
"MachineToApplication"
/>
<
sectionGroup
name
=
"webServices"
type
=
"System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
>
<
section
name
=
"jsonSerialization"
type
=
"System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
requirePermission
=
"false"
allowDefinition
=
"Everywhere"
/>
<
section
name
=
"profileService"
type
=
"System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
requirePermission
=
"false"
allowDefinition
=
"MachineToApplication"
/>
<
section
name
=
"authenticationService"
type
=
"System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
requirePermission
=
"false"
allowDefinition
=
"MachineToApplication"
/>
<
section
name
=
"roleService"
type
=
"System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
requirePermission
=
"false"
allowDefinition
=
"MachineToApplication"
/>
</
sectionGroup
>
</
sectionGroup
>
</
sectionGroup
>
</
configSections
>
<
connectionStrings
>
</
connectionStrings
>
<
exceptionHandling
>
<
exceptionPolicies
>
<
add
name
=
"Data"
>
<
exceptionTypes
>
<
add
name
=
"All Exceptions"
type
=
"System.Exception, mscorlib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
postHandlingAction
=
"NotifyRethrow"
/>
</
exceptionTypes
>
</
add
>
</
exceptionPolicies
>
</
exceptionHandling
>
<
system.web
>
<
pages
validateRequest
=
"false"
theme
=
"Basic"
>
<
controls
>
<
add
tagPrefix
=
"telerik"
namespace
=
"Telerik.Web.UI"
assembly
=
"Telerik.Web.UI"
/>
<
add
tagPrefix
=
"asp"
namespace
=
"System.Web.UI"
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
tagPrefix
=
"asp"
namespace
=
"System.Web.UI.WebControls"
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
</
controls
>
</
pages
>
<
compilation
debug
=
"true"
>
<
assemblies
>
<
add
assembly
=
"dotnetcharting, Version=4.2.2656.25699, Culture=neutral, PublicKeyToken=af2cd47db69d93bd"
/>
<
add
assembly
=
"System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
assembly
=
"System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
assembly
=
"Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
<!--<
add
assembly
=
"Microsoft.AnalysisServices.AdomdClient, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"
/>
<
add
assembly
=
"System.Speech, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>-->
</
assemblies
>
<
buildProviders
>
<
add
extension
=
".rdlc"
type
=
"Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
</
buildProviders
>
</
compilation
>
<
httpHandlers
>
<
remove
verb
=
"*"
path
=
"*.asmx"
/>
<
add
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"ChartImage.axd"
verb
=
"*"
type
=
"Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2012.3.1212.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
validate
=
"false"
/>
<
add
verb
=
"*"
path
=
"*.asmx"
validate
=
"false"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
verb
=
"*"
path
=
"*_AppService.axd"
validate
=
"false"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
verb
=
"GET,HEAD"
path
=
"ScriptResource.axd"
type
=
"System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
validate
=
"false"
/>
<
add
verb
=
"*"
path
=
"Telerik.RadUploadProgressHandler.ashx"
type
=
"Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI"
/>
<
add
verb
=
"*"
path
=
"Reserved.ReportViewerWebControl.axd"
type
=
"Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
</
httpHandlers
>
<
httpModules
>
<
add
name
=
"ScriptModule"
type
=
"System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
name
=
"RadUploadModule"
type
=
"Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"
/>
</
httpModules
>
<
httpRuntime
maxRequestLength
=
"5120"
executionTimeout
=
"3600"
/>
<
machineKey
validationKey
=
"BD52058A3DEA473EA99F29418689528A494DF2B00054BB7C"
decryptionKey
=
"684FC9301F404DE1B9565E7D952005579E823307BED44885"
/>
<!-- Needed so the previous buttons don't throw an exception -->
<
roleManager
enabled
=
"true"
cacheRolesInCookie
=
"true"
cookieProtection
=
"All"
defaultProvider
=
"ISys2RoleProvider"
>
<
providers
>
<
add
name
=
"ISys2RoleProvider"
connectionStringName
=
"MBenUsersDB"
applicationName
=
"/ISys2"
description
=
"Stores and retrieves roles data from the local Microsoft SQL Server database"
type
=
"System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
</
providers
>
</
roleManager
>
<
authentication
mode
=
"Forms"
>
<
forms
loginUrl
=
"login.aspx"
name
=
"MBen.ISys2"
timeout
=
"20"
></
forms
>
</
authentication
>
<!--<customErrors mode="Off"/>-->
<
customErrors
mode
=
"On"
defaultRedirect
=
"errorPage.aspx"
>
<!--<customErrors mode="RemoteOnly" defaultRedirect="errorPage.aspx">-->
<
error
statusCode
=
"403"
redirect
=
"accessdenied.aspx"
/>
<
error
statusCode
=
"404"
redirect
=
"FileNotFound.aspx"
/>
</
customErrors
>
<
siteMap
defaultProvider
=
"XmlSiteMapProvider"
enabled
=
"true"
>
<
providers
>
<
add
name
=
"XmlSiteMapProvider"
type
=
"System.Web.XmlSiteMapProvider "
description
=
"Default SiteMap provider."
siteMapFile
=
"~/web.sitemap"
securityTrimmingEnabled
=
"true"
/>
</
providers
>
</
siteMap
>
<
membership
defaultProvider
=
"ISys2Provider"
hashAlgorithmType
=
"SHA1"
>
<
providers
>
<
add
name
=
"ISys2Provider"
type
=
"AutoUnlockProvider"
connectionStringName
=
"MBenUsersDB"
autoUnlockTimeout
=
"20"
applicationName
=
"/ISys2"
enablePasswordRetrieval
=
"false"
enablePasswordReset
=
"true"
requiresQuestionAndAnswer
=
"true"
requiresUniqueEmail
=
"false"
minRequiredPasswordLength
=
"7"
minRequiredNonalphanumericCharacters
=
"0"
passwordFormat
=
"Hashed"
passwordStrengthRegularExpression
=
"(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{7,15})$"
maxInvalidPasswordAttempts
=
"5"
passwordAttemptWindow
=
"10"
/>
<
add
name
=
"ISys2AdminProvider"
type
=
"AutoUnlockProvider"
connectionStringName
=
"MBenUsersDB"
autoUnlockTimeout
=
"15"
applicationName
=
"/ISys2"
enablePasswordRetrieval
=
"false"
enablePasswordReset
=
"true"
requiresQuestionAndAnswer
=
"false"
requiresUniqueEmail
=
"false"
minRequiredPasswordLength
=
"7"
minRequiredNonalphanumericCharacters
=
"0"
passwordFormat
=
"Hashed"
passwordStrengthRegularExpression
=
"(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{7,15})$"
maxInvalidPasswordAttempts
=
"5"
passwordAttemptWindow
=
"10"
/>
</
providers
>
</
membership
>
<!-- AUTHORIZATION
This section sets the authorization policies of the application. You can allow or deny access
to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous
(unauthenticated) users.
-->
<
authorization
>
<
deny
users
=
"?"
/>
</
authorization
>
<!-- APPLICATION-LEVEL TRACE LOGGING
Application-level tracing enables trace log output for every page within an application.
Set trace enabled="true" to enable application trace logging. If pageOutput="true", the
trace information will be displayed at the bottom of each page. Otherwise, you can view the
application trace log by browsing the "trace.axd" page from your web application
root.
-->
<
trace
enabled
=
"false"
requestLimit
=
"50"
pageOutput
=
"false"
traceMode
=
"SortByTime"
localOnly
=
"true"
/>
<!-- SESSION STATE SETTINGS
By default ASP.NET uses cookies to identify which requests belong to a particular session.
If cookies are not available, a session can be tracked by adding a session identifier to the URL.
To disable cookies, set sessionState cookieless="true".
-->
<
sessionState
mode
=
"InProc"
stateConnectionString
=
"tcpip=127.0.0.1:42424"
sqlConnectionString
=
"data source=127.0.0.1;user id=sa;password="
cookieless
=
"false"
timeout
=
"20"
/>
<!-- GLOBALIZATION
This section sets the globalization settings of the application.
-->
<
globalization
requestEncoding
=
"utf-8"
responseEncoding
=
"utf-8"
/>
<
profile
defaultProvider
=
"ISys2ProfileProvider"
>
<
providers
>
<
add
name
=
"ISys2ProfileProvider"
type
=
"System.Web.Profile.SqlProfileProvider"
connectionStringName
=
"ISys2DB"
applicationName
=
"/ISys2"
/>
</
providers
> </
profile
>
</
system.web
>
<
system.web.extensions
>
<
scripting
>
<
webServices
>
<!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
<!--
<
jsonSerialization
maxJsonLength
=
"500"
>
<
converters
>
<
add
name
=
"ConvertMe"
type
=
"Acme.SubAcme.ConvertMeTypeConverter"
/>
</
converters
>
</
jsonSerialization
>
-->
<!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
<!--
<authenticationService enabled="true" requireSSL = "true|false"/>
-->
<!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
writeAccessProperties attributes. -->
<!--
<
profileService
enabled
=
"true"
readAccessProperties
=
"propertyname1,propertyname2"
writeAccessProperties
=
"propertyname1,propertyname2"
/>
-->
</
webServices
>
<!--
<scriptResourceHandler enableCompression="true" enableCaching="true" />
-->
</
scripting
>
</
system.web.extensions
>
<
system.webServer
>
<
validation
validateIntegratedModeConfiguration
=
"false"
/>
<
modules
>
<
remove
name
=
"ScriptModule"
/>
<
add
name
=
"ScriptModule"
preCondition
=
"managedHandler"
type
=
"System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
name
=
"RadUploadModule"
preCondition
=
"integratedMode"
type
=
"Telerik.Web.UI.RadUploadHttpModule"
/>
</
modules
>
<
handlers
>
<
remove
name
=
"ScriptHandlerFactory"
/>
<
remove
name
=
"ScriptHandlerFactoryAppServices"
/>
<
remove
name
=
"ScriptResource"
/>
<
remove
name
=
"WebServiceHandlerFactory-Integrated"
/>
<
add
name
=
"Telerik_Web_UI_WebResource_axd"
verb
=
"*"
preCondition
=
"integratedMode"
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
/>
<
add
name
=
"ScriptHandlerFactory"
verb
=
"*"
path
=
"*.asmx"
preCondition
=
"integratedMode"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
name
=
"ScriptHandlerFactoryAppServices"
verb
=
"*"
path
=
"*_AppService.axd"
preCondition
=
"integratedMode"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
name
=
"ScriptResource"
preCondition
=
"integratedMode"
verb
=
"GET,HEAD"
path
=
"ScriptResource.axd"
type
=
"System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
name
=
"Telerik.RadUploadProgressHandler.ashx_*"
path
=
"Telerik.RadUploadProgressHandler.ashx"
verb
=
"*"
type
=
"Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"
preCondition
=
"integratedMode"
/>
</
handlers
>
<
security
>
<
requestFiltering
>
<
requestLimits
maxAllowedContentLength
=
"52430000"
/>
</
requestFiltering
>
</
security
>
<
defaultDocument
>
<
files
>
<
add
value
=
"login.aspx"
/>
</
files
>
</
defaultDocument
>
</
system.webServer
>
<!-- allow access to "public" folder: -->
<
location
path
=
"Telerik.Web.UI.WebResource.axd"
>
<
system.web
>
<
authorization
>
<
allow
users
=
"*"
/>
</
authorization
>
</
system.web
>
</
location
>
<
location
path
=
"administration"
>
<
system.web
>
<
authorization
>
<
allow
roles
=
"ISys Sponsor"
/>
<
deny
users
=
"*"
/>
</
authorization
>
</
system.web
>
</
location
>
<
location
path
=
"App_Themes"
>
<
system.web
>
<
authorization
>
<
allow
users
=
"*"
/>
</
authorization
>
</
system.web
>
</
location
>
<
system.codedom
>
<
compilers
>
<
compiler
language
=
"c#;cs;csharp"
extension
=
".cs"
type
=
"Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
warningLevel
=
"4"
>
<
providerOption
name
=
"CompilerVersion"
value
=
"v3.5"
/>
<
providerOption
name
=
"WarnAsError"
value
=
"false"
/>
</
compiler
>
<
compiler
language
=
"vb;vbs;visualbasic;vbscript"
extension
=
".vb"
type
=
"Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
warningLevel
=
"4"
>
<
providerOption
name
=
"CompilerVersion"
value
=
"v3.5"
/>
<
providerOption
name
=
"OptionInfer"
value
=
"true"
/>
<
providerOption
name
=
"WarnAsError"
value
=
"false"
/>
</
compiler
>
</
compilers
>
</
system.codedom
>
<
runtime
>
<
assemblyBinding
appliesTo
=
"v2.0.50727"
xmlns
=
"urn:schemas-microsoft-com:asm.v1"
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"System.Web.Extensions"
publicKeyToken
=
"31bf3856ad364e35"
/>
<
bindingRedirect
oldVersion
=
"1.0.0.0-1.1.0.0"
newVersion
=
"3.5.0.0"
/>
</
dependentAssembly
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"System.Web.Extensions.Design"
publicKeyToken
=
"31bf3856ad364e35"
/>
<
bindingRedirect
oldVersion
=
"1.0.0.0-1.1.0.0"
newVersion
=
"3.5.0.0"
/>
</
dependentAssembly
>
</
assemblyBinding
>
</
runtime
>
</
configuration
>
css
/*Telerik RadGrid Telerik Skin*/
/*global*/
.RadGrid_MBen
{
border:0px !important;
background:#fff;
color:#000;
}
.RadGrid_MBen, .RadGrid_MBen .rgMasterTable, .RadGrid_MBen .rgDetailTable, .RadGrid_MBen .rgGroupPanel table, .RadGrid_MBen .rgCommandRow table, .RadGrid_MBen .rgEditForm table, .RadGrid_MBen .rgPager table, .GridToolTip_MBen
{
font: 10px/16px Verdana, Arial, Helvetica, sans-serif;
border-right: 1px;
border-left: 1px;
border-bottom: 0px;
border-top: 0px;
border: 0px solid #FFF;
}
.rgCommandRow table
{
border-bottom: thin none #FFF;
border-bottom-width: 0px !important;
}
.RadGrid_MBen .rgAdd,
.RadGrid_MBen .rgRefresh,
.RadGrid_MBen .rgEdit,
.RadGrid_MBen .rgDel,
.RadGrid_MBen .rgFilter,
.RadGrid_MBen .rgPagePrev,
.RadGrid_MBen .rgPageNext,
.RadGrid_MBen .rgPageFirst,
.RadGrid_MBen .rgPageLast,
.RadGrid_MBen .rgExpand,
.RadGrid_MBen .rgCollapse,
.RadGrid_MBen .rgSortAsc,
.RadGrid_MBen .rgSortDesc,
.RadGrid_MBen .rgUpdate,
.RadGrid_MBen .rgCancel,
.RadGrid_MBen .rgUngroup,
.RadGrid_MBen .rgExpXLS,
.RadGrid_MBen .rgExpDOC,
.RadGrid_MBen .rgExpPDF,
.RadGrid_MBen .rgExpCSV
{
background-image:url('Grid/sprite.gif');
}
/*header*/
.RadGrid_MBen .rgHeaderDiv
{
background:#eee 0 -8050px repeat-x url('Grid/sprite.gif');
}
.rgTwoLines .rgHeaderDiv
{
background-position:0 -7550px;
}
.RadGrid_MBen .rgHeader, .RadGrid_MBen th.rgResizeCol
{
background-position: 0 100%;
background: #4c6696 repeat-x 0 100%;
height: 16px;
color: #ffffff;
font-family: Verdana, Arial, Helvetica, sans-serif;
padding: 1px 2px 1px 2px !important;
font-size: 10px;
border-top-color: #4c6696;
border-right-color: #ffffff;
border-bottom-color: #4c6696;
border-width: 0px 1px 0px 0px;
border-right-style: solid;
}
.RadGrid_MBen th.rgSorted
{
background-color: #999999;
background-position: 0 -2600px;
}
.RadGrid_MBen .rgHeader, .RadGrid_MBen .rgHeader a
{
color: #ffffff;
font-weight:bold;
white-space:normal;
}
/*rows*/
.RadGrid_MBen .rgRow td,
.RadGrid_MBen .rgAltRow td,
.RadGrid_MBen .rgEditRow td,
.RadGrid_MBen .rgFooter td
{
border-style:none;
border-width:0 0 0 0;
padding: 1px 1px 1px 1px;
white-space:normal;
}
.RadGrid_MBen .rgRow td
{
border-color:#fff;
}
.RadGrid_MBen .rgAltRow
{
background: #b3bdd2;
}
.RadGrid_MBen .rgAltRow td
{
border-color:#b3bdd2;
}
.RadGrid_MBen .rgRow .rgSorted, .RadGrid_MBen .rgAltRow .rgSorted
{
background-color: inherit;
}
.RadGrid_MBen .rgSelectedRow .rgSorted,
.RadGrid_MBen .rgActiveRow .rgSorted,
.RadGrid_MBen .rgHoveredRow .rgSorted,
.RadGrid_MBen .rgEditRow .rgSorted
{
background-color:transparent;
}
.RadGrid_MBen .rgRow a, .RadGrid_MBen .rgAltRow a, .RadGrid_MBen .rgEditRow a, .RadGrid_MBen .rgEditForm a
{
color: #005BE6;
}
.RadGrid_MBen .rgFooter a
{
color: #ffffff;
font-weight:bold;
}
.RadGrid_MBen .rgSelectedRow
{
background:#63ac38 0 -3900px repeat-x url('Grid/sprite.gif');
}
*+html .RadGrid_MBen .rgSelectedRow .rgSorted{background-color:#63ac38}
* html .RadGrid_MBen .rgSelectedRow .rgSorted{background-color:#63ac38}
.RadGrid_MBen .rgActiveRow,
.RadGrid_MBen .rgHoveredRow
{
background:#a2ea8b 0 -2900px repeat-x url('Grid/sprite.gif');
}
*+html .RadGrid_MBen .rgActiveRow .rgSorted,
*+html .RadGrid_MBen .rgHoveredRow .rgSorted{background-color:#a2ea8b}
* html .RadGrid_MBen .rgActiveRow .rgSorted,
* html .RadGrid_MBen .rgHoveredRow .rgSorted{background-color:#a2ea8b}
.RadGrid_MBen .rgEditRow
{
background:#fff 0 -4900px repeat-x url('Grid/sprite.gif');
}
*+html .RadGrid_MBen .rgEditRow .rgSorted{background-color:#fff}
* html .RadGrid_MBen .rgEditRow .rgSorted{background-color:#fff}
.RadGrid_MBen .rgActiveRow td,
.RadGrid_MBen .rgActiveRow td.rgSorted,
.RadGrid_MBen .rgHoveredRow td,
.RadGrid_MBen .rgHoveredRow td.rgSorted
{
border-bottom-color:#28a800;
}
.RadGrid_MBen .rgSelectedRow td,
.RadGrid_MBen .rgSelectedRow td.rgSorted
{
border-bottom-color:#155800;
}
.RadGrid_MBen .rgEditRow td,
.RadGrid_MBen .rgEditRow td.rgSorted
{
border-bottom-color:#333;
}
.RadGrid_MBen .rgDrag
{
background-image:url('Grid/rgDrag.gif');
}
/*footer*/
.RadGrid_MBen .rgFooterDiv, .RadGrid_MBen .rgFooter
{
background-position: #4c6696;
background: #4c6696;
}
.RadGrid_MBen .rgFooter td
{
border-top:0px none #828282;
border-bottom:0px none #fff;
}
/*status*/
.RadGrid_MBen .rgStatus
{
border:1px solid;
border-color:#828282 #c9c9c9 #eee #c9c9c9;
border-left-width:0px;
}
.RadGrid_MBen .rgStatus div
{
background-image:url('Common/loading_small.gif');
}
/*pager*/
.RadGrid_MBen .rgPager
{
background:#eee;
border:0px;
}
.RadGrid_MBen .rgPager table
{
border:0px;
}
.RadGrid_MBen tr.rgPager
{
border-right-width:0px;
border-left-width:0px;
border-color:#fff;
}
.RadGrid_MBen td.rgPagerCell
{
border-top:1px solid;
border-color:#828282 #eee #eee;
border-right-width:0px !important;
border-left-width:0px !important;
}
.RadGrid_MBen .rgInfoPart
{
color:#8a8a8a;
}
.RadGrid_MBen .rgInfoPart strong
{
color:#4c4e54;
}
.RadGrid_MBen .rgPageFirst
{
background-position:0 -550px;
}
.RadGrid_MBen .rgPageFirst:hover
{
background-position:0 -600px;
}
.RadGrid_MBen .rgPagePrev
{
background-position:0 -700px;
}
.RadGrid_MBen .rgPagePrev:hover
{
background-position:0 -750px;
}
.RadGrid_MBen .rgPageNext
{
background-position:0 -850px;
}
.RadGrid_MBen .rgPageNext:hover
{
background-position:0 -900px;
}
.RadGrid_MBen .rgPageLast
{
background-position:0 -1000px;
}
.RadGrid_MBen .rgPageLast:hover
{
background-position:0 -1050px;
}
.RadGrid_MBen .rgPager .rgPagerButton
{
border-color:#d0d0d0 #aeaeae #8b8b8b;
background:#eee repeat-x 0 -1550px url('Grid/sprite.gif');
color:#000;
font:12px/12px Verdana, Arial, Helvetica, sans-serif;
}
.RadGrid_MBen .rgNumPart a:hover,
.RadGrid_MBen .rgNumPart a:hover span,
.RadGrid_MBen .rgNumPart a.rgCurrentPage,
.RadGrid_MBen .rgNumPart a.rgCurrentPage span
{
background:no-repeat url('Grid/sprite.gif');
}
.RadGrid_MBen .rgNumPart a
{
color:#000;
}
.RadGrid_MBen .rgNumPart a:hover
{
background-position:100% -1250px;
}
.RadGrid_MBen .rgNumPart a:hover span
{
background-position:0 -1150px;
}
.RadGrid_MBen .rgNumPart a.rgCurrentPage,
.RadGrid_MBen .rgNumPart a.rgCurrentPage:hover
{
background-position:100% -1450px;
}
.RadGrid_MBen .rgNumPart a.rgCurrentPage span,
.RadGrid_MBen .rgNumPart a.rgCurrentPage:hover span
{
background-position:0 -1350px;
}
/*sorting, reordering*/
.RadGrid_MBen .rgHeader .rgSortAsc
{
background-position:3px -248px;
height:10px;
}
.RadGrid_MBen .rgHeader .rgSortDesc
{
background-position:3px -198px;
height:10px;
}
.GridReorderTop_MBen,
.GridReorderBottom_MBen
{
background:0 0 no-repeat url('Grid/sprite.gif');
}
.GridReorderBottom_MBen
{
background-position:0 -50px;
}
/*filtering*/
.RadGrid_MBen .rgFilterRow
{
background:#eee;
}
.RadGrid_MBen .rgFilterRow td
{
border:0px;
border-bottom:1px solid #828282;
padding:2px;
}
.RadGrid_MBen .rgFilter
{
background-position:0 -300px;
}
.RadGrid_MBen .rgFilter:hover
{
background-position:0 -350px;
}
.RadGrid_MBen .rgFilterActive,
.RadGrid_MBen .rgFilterActive:hover
{
background-position:0 -400px;
}
.RadGrid_MBen .rgFilterBox
{
border-color:#8e8e8e #c9c9c9 #c9c9c9 #8e8e8e;
font:10px Verdana, Arial, Helvetica, sans-serif;
color:#333;
}
/*filter context menu*/
.RadMenu_MBen .rgHCMClear,
.RadMenu_MBen .rgHCMFilter
{
border-color:#ccc #999 #a8a8a8;
background:#eee center -23px repeat-x url('FormDecorator/ButtonSprites.png');
color:#000;
font-family:"segoe ui",arial,sans-serif;
}
.RadMenu_MBen .rgHCMClear:hover,
.RadMenu_MBen .rgHCMFilter:hover
{
border-color:#2ebf00 #2bb500 #28a800;
background-position:center -67px;
background-color:#a2ea8b;
}
/*context menu*/
.GridContextMenu_MBen .rmLeftImage
{
background-image:url('../Common/Grid/contextMenu.gif');
}
.GridContextMenu_MBen .rgHCMSortAsc .rmLeftImage
{
background-position:0 0;
}
.GridContextMenu_MBen .rgHCMSortDesc .rmLeftImage
{
background-position:0 -40px;
}
.GridContextMenu_MBen .rgHCMUnsort .rmLeftImage
{
background-position:0 -80px;
}
.GridContextMenu_MBen .rgHCMGroup .rmLeftImage
{
background-position:0 -120px;
}
.GridContextMenu_MBen .rgHCMUngroup .rmLeftImage
{
background-position:0 -160px;
}
.GridContextMenu_MBen .rgHCMCols .rmLeftImage
{
background-position:0 -200px;
}
.GridContextMenu_MBen .rgHCMFilter .rmLeftImage
{
background-position:0 -240px;
}
.GridContextMenu_MBen .rgHCMUnfilter .rmLeftImage
{
background-position:0 -280px;
}
/*grouping*/
.RadGrid_MBen .rgGroupPanel
{
border:0;
border-bottom:1px solid #828282;
background:#eee 0 -1900px repeat-x url('Grid/sprite.gif');
}
.RadGrid_MBen .rgGroupPanel td
{
border:0;
padding:3px 4px;
}
.RadGrid_MBen .rgGroupPanel td td
{
padding:0;
}
.RadGrid_MBen .rgGroupPanel .rgSortAsc
{
background-position:4px -143px;
}
.RadGrid_MBen .rgGroupPanel .rgSortDesc
{
background-position:4px -93px;
}
.RadGrid_MBen .rgUngroup
{
background-position:0 -7498px;
}
.RadGrid_MBen .rgGroupItem
{
border:1px solid;
border-color:#d0d0d0 #bdbdbd #8a8a8a;
background:#e8e8e8 0 -6500px repeat-x url('Grid/sprite.gif');
}
.RadGrid_MBen .rgMasterTable td.rgGroupCol, .RadGrid_MBen .rgMasterTable td.rgExpandCol
{
background-position: #FFFFFF none;
background: #FFFFFF none;
border:0px;
}
.RadGrid_MBen .rgGroupHeader,
.RadGrid_MBen .rgGroupHeader td.rgGroupCol
{
background:#d2f8c5 0 -7000px repeat-x url('Grid/sprite.gif');
}
.RadGrid_MBen .rgGroupHeader
{
font-size:1.1em;
line-height:21px;
}
.RadGrid_MBen .rgGroupHeader td
{
border-bottom:1px solid #98ec7d;
}
.RadGrid_MBen .rgExpand
{
background-position:5px -496px;
}
.RadGrid_MBen .rgCollapse
{
background-position:3px -444px;
}
.RadGrid_MBen .rgClipCells .rgCommandTable
{
border-left: 0 !important;
}
/*editing*/
.RadGrid_MBen .rgEditForm
{
border-bottom:1px solid #828282;
}
.RadGrid_MBen .rgUpdate
{
background-position:0 -1800px;
}
.RadGrid_MBen .rgCancel
{
background-position:0 -1850px;
}
/*hierarchy*/
.RadGrid_MBen .rgDetailTable
{
border-color:#828282;
border-right: 0px;
}
/*command row*/
.RadGrid_MBen .rgCommandRow
{
background:#b5b5b5 0 -2099px repeat-x url('Grid/sprite.gif');
color: Transparent !important;
}
.RadGrid_MBen .rgCommandCell
{
border:0;
padding:2 0 2 0;
}
.RadGrid_MBen thead .rgCommandCell
{
/*border-bottom:1px solid #8b8b8b;*/
}
.RadGrid_MBen tfoot .rgCommandCell,
.RadGrid_MBen .rgMasterTable>tbody>tr.rgCommandRow .rgCommandCell
{
border-top:1px solid #a1a1a1;
}
.RadGrid_MBen .rgCommandTable td
{
border:0;
padding:2px 7px;
}
.RadGrid_MBen .rgCommandTable
{
border:1px solid;
border-color:#f5f5f5 #e4e4e4 #d5d5d5;
}
.RadGrid_MBen .rgCommandRow a
{
color:#000;
text-decoration:none;
}
.RadGrid_MBen .rgAdd
{
margin-right:3px;
background-position:0 -1650px;
}
.RadGrid_MBen .rgRefresh
{
margin-right:3px;
background-position:0 -1600px;
}
.RadGrid_MBen .rgEdit
{
background-position:0 -1700px;
}
.RadGrid_MBen .rgDel
{
background-position:0 -1750px;
}
.RadGrid_MBen .rgExpXLS,
.RadGrid_MBen .rgExpDOC,
.RadGrid_MBen .rgExpPDF,
.RadGrid_MBen .rgExpCSV
{
background-image:url('../Common/Grid/export.gif');
}
.RadGrid_MBen .rgExpXLS
{
background-position:0 0;
}
.RadGrid_MBen .rgExpDOC
{
background-position:0 -50px;
}
.RadGrid_MBen .rgExpPDF
{
background-position:0 -100px;
}
.RadGrid_MBen .rgExpCSV
{
background-position:0 -150px;
}
/*multirow select*/
.GridRowSelector_MBen
{
background:#155800;
}
/*row drag n drop*/
.GridItemDropIndicator_MBen
{
border-top:1px dashed #155800;
}
/*tooltip*/
.GridToolTip_MBen
{
border:1px solid #828282;
padding:3px;
background:#fff;
color:#000;
}
/*rtl*/
.RadGridRTL_MBen .rgPageFirst
{
background-position:0 -1000px;
}
.RadGridRTL_MBen .rgPageFirst:hover
{
background-position:0 -1050px;
}
.RadGridRTL_MBen .rgPagePrev
{
background-position:0 -850px;
}
.RadGridRTL_MBen .rgPagePrev:hover
{
background-position:0 -900px;
}
.RadGridRTL_MBen .rgPageNext
{
background-position:0 -700px;
}
.RadGridRTL_MBen .rgPageNext:hover
{
background-position:0 -750px;
}
.RadGridRTL_MBen .rgPageLast
{
background-position:0 -550px;
}
.RadGridRTL_MBen .rgPageLast:hover
{
background-position:0 -600px;
}
.RadGridRTL_MBen .rgExpand
{
background-position:-20px -496px;
}
0
Hi,
Thank you for sending your source.
I used the provided code to build a sample project, however the issue was not observed on my side. The RadGrid skin does not change after pressing the button. You would find the project attached.
The issue could be caused by some additional CSS rules applying styles to the grid that override the initial settings on Ajax request.
I would appreciate it if you could modify the attached project in a way that the issue is observed and send it back in a support ticket. This would enable us to investigate the issue locally and provide an appropriate solution.
Regards,
Viktor Tachev
Telerik
Thank you for sending your source.
I used the provided code to build a sample project, however the issue was not observed on my side. The RadGrid skin does not change after pressing the button. You would find the project attached.
The issue could be caused by some additional CSS rules applying styles to the grid that override the initial settings on Ajax request.
I would appreciate it if you could modify the attached project in a way that the issue is observed and send it back in a support ticket. This would enable us to investigate the issue locally and provide an appropriate solution.
Regards,
Viktor Tachev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.