Hai i am passing checked index of ultraoptionset from Parent Form. So In Child Form UnltraOption set to be Read only. How to do this????????????????????
Hi,
May be one possible solution is to use the property "Enabled" (for example : ultraOptionSet1.Enabled = false;)
Regards
Georgi
Ya Georgi..
Right Now i am Using Enabled Property.
But What i Need is ReadOnly Property. Since Enabled=False Property is not Looking So Clear. User May not able to find/See Sometimes.
With Regards,
Janani.S
Okay, I see. So the checked state it not lost, you are saying that it still appears disabled.
There's no Appearance property for the disabled colors of the option button itself. What you would have to do is use the GlyphInfo property and provide your own glyphs for all of the states and use the same image for the enabled and disabled states.
Thanks for your response.
I mean to say I am losing the checked radio button color from blue to gray and its really not visible for the user. The text is looking in enabled color becaue of the above properties set , but the radio is losing its enables state to gray clor.
Is there any flag to keep the radio button color as in checked color state?
Can you please let me know if there is any way to retain the radio color?
Thanks a lot for your time.
-UNarala
I don't know what you mean by "losing the checked state." I tried this out using the same code you posted here and it seems to work fine for me. I have attached my sample here so you can see if you are getting the same issue.
Hi
I am doing the following , but I am losing the checked state once I disable it ( enabled =false). Please help me there.
CtlRankingSessions1.uosAssignSchedule.CheckedIndex = 1 'Default to Schedule first
Dim appearanceData As New Infragistics.Win.AppearanceData
Dim appearancePropFlags As New Infragistics.Win.AppearancePropFlags appearancePropFlags = appearancePropFlags.ForeColor Or appearancePropFlags.BackColor CtlRankingSessions1.uosAssignSchedule.ResolveItemAppearance(appearanceData, appearancePropFlags)
CtlRankingSessions1.uosAssignSchedule.ItemAppearance.BackColorDisabled = appearanceData.BackColor
CtlRankingSessions1.uosAssignSchedule.ItemAppearance.ForeColorDisabled = appearanceData.ForeColor
CtlRankingSessions1.uosAssignSchedule.Enabled = False
I expect that bkClr and foreClr in this case are returning Color.Empty. Unless you explicitly set these properties to something, they will not return anything useful.The Appearance property will only return what you set on it.
Besides, you don't want to the control to look disabled, so you don't want to use BackColorDisabled and ForeColorDisabled, anyway. You want the Disabled colors to be set to the same as the enabled colors.
To get the actual colors being used by the control, you have to use the ResolveAppearance or ResolveItemAppearance methods.
AppearanceData appearanceData = new AppearanceData(); AppearancePropFlags appearancePropFlags = AppearancePropFlags.ForeColor | AppearancePropFlags.BackColor; this.ultraOptionSet1.ResolveItemAppearance(ref appearanceData, ref appearancePropFlags); this.ultraOptionSet1.ItemAppearance.BackColorDisabled = appearanceData.BackColor; this.ultraOptionSet1.ItemAppearance.ForeColorDisabled = appearanceData.ForeColor;
Note that this will get you the appearance based on the current state, so you have to do it while the control is still enabled.