for (int i = 0; i < 5; i++)
{
ButtonArray[i].ActionButton.ButtonFillElement.BackColor = System.Drawing.Color.transparent; <- Setting the original Values
ButtonArray[i].ActionButton.ButtonFillElement.BackColor2 = System.Drawing.Color.transparent;
ButtonArray[i].ActionButton.ButtonFillElement.BackColor3 = System.Drawing.Color.transparent;
ButtonArray[i].ActionButton.ButtonFillElement.BackColor4 = System.Drawing.Color.transparent;
}
/*Setting Selected Values...*/
SendingSplitButton.ActionButton.ButtonFillElement.BackColor = System.Drawing.Color.FromArgb(255,255,115,0);
SendingSplitButton.ActionButton.ButtonFillElement.BackColor2 = System.Drawing.Color.FromArgb(255,255, 115, 0);
SendingSplitButton.ActionButton.ButtonFillElement.BackColor3 = System.Drawing.Color.FromArgb(255,255, 115, 0);
SendingSplitButton.ActionButton.ButtonFillElement.BackColor4 = System.Drawing.Color.FromArgb(255,255, 115, 0);
SendingSplitButton.ActionButton.ButtonFillElement.GradientPercentage = 0.62f;
SendingSplitButton.ActionButton.ButtonFillElement.GradientPercentage = 0.71f;
}
I have already tried changing the State of the Objects in this mode:
SendingSplitButton.OnMouseOver = true or with SendingSplitButton.OnMouseDown= true but it doesn't work. I don't understand very well if it is possible or not managing only a single state of the object through the code and how the Style Managing - by code - and Xml is merged.
Thank you very Much,
<
telerik:RadAjaxManager
ID
=
"ramPopup"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"ibFind"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"ibFind"
LoadingPanelID
=
"ralpLoadingPanel"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"rgGrid"
LoadingPanelID
=
"ralpLoadingPanel"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"cvSearchArgs"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"rtt"
LoadingPanelID
=
"ralpLoadingPanel"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"rgGrid"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"rgGrid"
LoadingPanelID
=
"ralpLoadingPanel"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"rtt"
LoadingPanelID
=
"ralpLoadingPanel"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"ibSelect"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"ibSelectIndividual"
LoadingPanelID
=
"ralpLoadingPanel"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"rtt"
LoadingPanelID
=
"ralpLoadingPanel"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"script"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadToolTip
ID
=
"rtt"
runat
=
"server"
EnableShadow
=
"true"
IsClientID
=
"true"
EnableViewState
=
"true"
ShowCallout
=
"false"
Position
=
"Center"
Animation
=
"Slide"
AutoCloseDelay
=
"6000"
Width
=
"400px"
>
<
div
id
=
"Div1"
class
=
"message message-notice"
>
<
div
class
=
"image"
>
<
img
src
=
"/resources/images/icons/notice.png"
alt
=
"Error"
height
=
"32"
/>
</
div
>
<
div
class
=
"text"
>
<
asp:Label
runat
=
"server"
id
=
"lblNotification"
></
asp:Label
>
</
div
>
<
div
class
=
"dismiss"
>
<
a
href
=
"#message-error"
></
a
>
</
div
>
</
div
>
</
telerik:RadToolTip
>
private
void
displayNotification(
string
notification)
{
lblNotification.Text = notification;
rtt.Show();
}
<
telerik:RadWindowManager
ID
=
"rwmPopUps"
runat
=
"server"
Skin
=
"Vista"
>
<
Windows
>
<
telerik:RadWindow
Skin
=
"Vista"
ID
=
"rw"
runat
=
"server"
Title
=
"Subject Search"
Left
=
"150px"
ReloadOnShow
=
"true"
Modal
=
"true"
AutoSize
=
"true"
Style
=
"z-index:2000"
/>
</
Windows
>
</
telerik:RadWindowManager
>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function ShowProviderForm() {
window.radopen("NewPopUp.aspx", "rw");
return false;
}
function refreshData(arg) {
if (arg) {
$find("<%= ramRequestEntry.ClientID %>").ajaxRequest(arg);
}
}
</
script
>
</
telerik:RadCodeBlock
>
protected
void
ibSelect_Click(
object
sender, ImageClickEventArgs e)
{
if
(rgGridInviduals.SelectedValue !=
null
)
{
string
selected = rgGrid.SelectedValue.ToString();
clearForm();
RadScriptManager.RegisterStartupScript(Page,
Page.GetType(),
"Selected"
,
string
.Format(
"CloseAndRebind('{0}');"
, selected),
true
);
}
else
{
displayNotification(
"Please select a subject"
);
}
}
<
telerik:RadComboBox
runat
=
"server"
ID
=
"comboBoxA"
EnableLoadOnDemand
=
"true"
OffsetX
=
"170"
>
<
WebServiceSettings
Method
=
"GetItems"
Path
=
"WebService.asmx"
/>
</
telerik:RadComboBox
>