Phoenix Controls Documentation
Phoenix controls allow our applications to be more dynamic and removes repetitive or hard coded values from the code behind aspx pages, reducing risk of bugs.
Table of Contents
PhoenixButton
The Button class is targeted with a custom PhoenixButton webcontrol class. It is used to disable a button while the page is loading.
- ConfirmMessage - a string that checks whether it should return an alert box
- ConfirmValidation - a boolean checks if a validator
PhoenixBoundField
The BoundField class is targeted with a custom PhoenixBoundField webcontrol class. Boolean properties are used in conjuction with a custom PhoenixGridView webcontrol class to trigger an event, depending on the condition
- CalculateFooter - calculates sum of BoundField FooterRow in each column's footer cell in a gridview
- HideIfZero - hides in value if 0 in a gridview
- IsEscalations - sets whether Priority Escalations text should be red
PhoenixGridView
The GridView class is targeted with a custom PhoenixGridView webcontrol class. It is used to override specific events.
OnDataBound Event
- Calculates the total for each PhoenixBoundField in the FooterRow if
CalculateFooter = true
- Hides value of 0 for each PhoenixBoundField in the FooterRow if
HideIfZero = true
OnRowDataBound Event
- Condition checks if
priorityFontColor
for the TableCell's text is Escalations. If statement is true, then color is set to red.- NOTE:
priorityFontColor
is a method called fromp11_Library.cs
file.
- NOTE:
PhoenixRadioButton
The RadioButton class is targeted with a custom PhoenixRadioButton webcontrol class.
Prevent a webpage from erroring out if a value is NULL
or an EmptyString
PhoenixSqLDataSource
The SqlDataSource class is targeted with a custom PhoenixSqlDataSource webcontrol class.