<
h2
class
=
"titleText"
>RadEditor for ASP.NET AJAX</
h2
>
<
p
style
=
"text-align: justify;"
><
span
style
=
"font-size: 19px; color: #4f6128;"
><
strong
>RadEditor</
strong
></
span
><
span
style
=
"color: #4f6128;"
> </
span
>is not simply an HTML<
a
href
=
"#HTMLDescription"
><
sup
>1</
sup
></
a
> Editor. It is what Microsoft chose to use in <
strong
>MSDN</
strong
>, <
strong
>CodePlex</
strong
>, <
strong
>TechNet</
strong
>, <
strong
>MCMS</
strong
> and even as an alternative to the default editor in <
a
href
=
"http://www.telerik.com/products/aspnet-ajax/sharepoint.aspx"
>SharePoint</
a
>. Whether you need a mere<
br
/>
spellchecker with Google-like Textbox , or a Word-like content authoring environment, the result is the same: clean <
strong
>XHTML</
strong
> output, fast rendering, widest cross-browser support, and <
a
href
=
"http://www.telerik.com/products/aspnet-ajax/editor.aspx"
>tons of features</
a
>: <
br
/>
<
br
/>
Is it possible to put a RadButton inside a bound DataList?
I have a dataset with two columns returned (bound in the code-behind). First column is called HowFoundDesc (a description), and second is FoundThisWay (a Boolean). I can bind the HowFoundDesc to the Text attribute of the DataList, but I don't know how to bind the FoundThisWay Boolean flag to the RadButton so as to toggle the state of the button (it is a toggle radio button with images).
When I run it, I get the descriptions fine for each, but all the images are defaulting to the off value. Also, when I click on the buttons, they are all acting separate instead of a group, even though I have the groupname defined in the RadButton.
Any ideas?
<
div
Style
=
"font-size: 14px; top: 4px; left: 5px; position: absolute;"
>
<
asp:DataList
ID
=
"HowFound"
runat
=
"server"
RepeatDirection
=
"Horizontal"
RepeatColumns
=
"5"
>
<
ItemTemplate
>
<
telerik:RadButton
ID
=
"rbHowFound"
runat
=
"server"
ForeColor
=
"Blue"
AutoPostBack
=
"false"
ButtonType
=
"ToggleButton"
GroupName
=
"grpHowFound"
ToggleType
=
"Radio"
Text=<%# Eval("HowFoundDesc")%> >
<
ToggleStates
>
<
telerik:RadButtonToggleState
PrimaryIconCssClass
=
"rbRemove"
/>
<
telerik:RadButtonToggleState
PrimaryIconCssClass
=
"rbOk"
Selected
=
"true"
/>
</
ToggleStates
>
</
telerik:RadButton
>
</
ItemTemplate
>
</
asp:DataList
>
</
div
>
function ChangeBackColor(sender) {
sender.get_styles().EnabledStyle[0] += "background-color: lemonchiffon;";
sender.updateCssClass(); }
OnClientSelectedIndexChanged="ChangeBackColorCombo"
function ChangeBackColorCombo(sender, args) {
var inputElement = sender.get_inputDomElement();
inputElement.style.backgroundColor = "lemonchiffon";
}
<
telerik:RadHtmlChart
runat
=
"server"
ChartTitle-Text
=
"Courbe FR"
DataSourceID
=
"SqlDataSource1"
ID
=
"RadHtmlChart1"
Width
=
"800"
Height
=
"500"
>
<
PlotArea
>
<
Series
>
<
telerik:LineSeries
Name
=
"École"
DataFieldY
=
"rlEcole"
>
<
Appearance
>
<
FillStyle
BackgroundColor
=
"Blue"
/>
</
Appearance
>
<
TooltipsAppearance
Color
=
"White"
/>
</
telerik:LineSeries
>
<
telerik:LineSeries
Name
=
"District"
DataFieldY
=
"rlDistrict"
>
<
Appearance
>
<
FillStyle
BackgroundColor
=
"Green"
/>
</
Appearance
>
<
TooltipsAppearance
Color
=
"White"
/>
</
telerik:LineSeries
>
<
telerik:LineSeries
Name
=
"Province"
DataFieldY
=
"rlProvince"
>
<
Appearance
>
<
FillStyle
BackgroundColor
=
"Red"
/>
</
Appearance
>
<
TooltipsAppearance
Color
=
"White"
/>
</
telerik:LineSeries
>
</
Series
>
<
YAxis
>
<
TitleAppearance
Text
=
"%"
>
<
TextStyle
FontSize
=
"16px"
></
TextStyle
>
</
TitleAppearance
>
</
YAxis
>
<
XAxis
DataLabelsField
=
"strAnnee"
>
<
LabelsAppearance
/>
</
XAxis
>
</
PlotArea
>