Hi,
I am dynamically creating radButton and Setting ButtonToggleType is radio and then Adding to the Pannel.But the problem is radButton is not showing like a radio button but shown as a normal button. Kindly look at my code and attachment and advise me to rectify the issue. Thanks in advance.
John.
I am dynamically creating radButton and Setting ButtonToggleType is radio and then Adding to the Pannel.But the problem is radButton is not showing like a radio button but shown as a normal button. Kindly look at my code and attachment and advise me to rectify the issue. Thanks in advance.
John.
For
Each
objChannel
As
TranChannel
In
_alChannels
Dim
RadButton1
As
New
RadButton()
RadButton1.ID = objChannel.TranChannelCode
RadButton1.Text = objChannel.Description
RadButton1.Width =
"100"
RadButton1.ToggleType = ButtonToggleType.Radio
RadButton1.ButtonType = RadButtonType.StandardButton
RadButton1.GroupName =
"StandardButton"
Dim
RadButtonToglle
As
New
RadButtonToggleState()
RadButtonToglle.Text = objChannel.Description
RadButtonToglle.PressedCssClass =
"rbToggleRadioChecked"
RadButton1.ToggleStates.Add(RadButtonToglle)
Dim
RadButtonToglle1
As
New
RadButtonToggleState()
RadButtonToglle1.Text = objChannel.Description
RadButtonToglle1.PressedCssClass =
"rbToggleRadio"
RadButton1.ToggleStates.Add(RadButtonToglle1)
AddHandler
RadButton1.Click,
AddressOf
RadButton1_Click
pnlRadio.Controls.Add(RadButton1)
Next