<
telerik:RadToolBar
ID
=
"RadToolBar_Layout"
runat
=
"server"
>
<
Items
>
<
telerik:RadToolBarDropDown
CssClass
=
"CustomTelerik"
ImageUrl
=
"~/Ressources/Images/Telerik/Dropdown/pagemap_16x16.png"
>
<
Buttons
>
<
telerik:RadToolBarButton
id
=
"OpenBoth"
Text
=
"Normal"
CheckOnClick
=
"true"
AllowSelfUnCheck
=
"true"
ImageUrl
=
"~/Ressources/Images/Telerik/Dropdown/pagemap_normal_16x16_blue.png"
/>
<
telerik:RadToolBarButton
id
=
"CloseBoth"
Text
=
"Vollbild"
CheckOnClick
=
"true"
AllowSelfUnCheck
=
"true"
ImageUrl
=
"~/Ressources/Images/Telerik/Dropdown/pagemap_full_16x16_blue.png"
/>
<
telerik:RadToolBarButton
id
=
"CloseLeft"
Text
=
"Linke Sidebar"
CheckOnClick
=
"true"
AllowSelfUnCheck
=
"true"
ImageUrl
=
"~/Ressources/Images/Telerik/Dropdown/pagemap_left_16x16_blue.png"
/>
<
telerik:RadToolBarButton
id
=
"CloseRight"
Text
=
"RechteSidebar"
CheckOnClick
=
"true"
AllowSelfUnCheck
=
"true"
ImageUrl
=
"~/Ressources/Images/Telerik/Dropdown/pagemap_right_16x16_blue.png"
></
telerik:RadToolBarButton
>
</
Buttons
>
</
telerik:RadToolBarDropDown
>
</
Items
>
</
telerik:RadToolBar
>
.CustomTelerik
{
background
:
none
;
border
:
0
none
!important
;
text-decoration
:
none
;
border-bottom-width
:
0px
!important
;
}
<
radC:RadComboBox ID="NursingStatusRCB" runat="server" Width="185px" Height="100%" Skin="WebBlue">
<Items>
<radC:RadComboBoxItem runat="server" Text="Status (APN, RN, etc.)" />
</Items>
<ItemTemplate>
<div onclick="stopPropagation(event);">
<asp:CheckBoxList ID="NursingStatusCBL" runat="server" CssClass="field_box" BorderStyle="None"></asp:CheckBoxList>
</div>
</ItemTemplate>
</radC:RadComboBox>
In my code behind, I bind a datatable to the checkboxlist.
When the text associated with a checkbox is wider than that provided by the dropdown, it breaks onto a new line. The second line of text is aligned underneath the checkbox. The problem is that this doesn't look good at all, so we want to have the second line of text line up with the first line of text. Can anyone offer help on how to have the text line up with itself in this manner?
Alternatively, we could adjust the width of the DropDown of the radComboBox (using DropDownWidth) to allow enough room for the text so it doesn't break onto 2 lines. The problem we face there though is that the data populating the CheckBoxList comes from our DB, so at design time, we don't know what the width of the box needs to be. I tried setting this value as 100%, but it gets interpreted as 100px.
Thanks for any assistance you can provide.
Karl
RadChart1.Clear();
// SETTING AXISES
//SetXAxis(0);
RadChart1.PlotArea.XAxis.LayoutMode = ChartAxisLayoutMode.Between;
RadChart1.PlotArea.YAxis.AutoScale =
true
;
RadChart1.PlotArea.YAxis.Step = 6;
RadChart1.PlotArea.XAxis.AutoScale =
true
;
RadChart1.PlotArea.XAxis.Step = 10;
RadChart1.IntelligentLabelsEnabled =
false
;
//SetYAxis(500);
// SETTING SERIES
ChartSeries Series1 =
new
ChartSeries();
RadChart1.Series.Add(Series1);
Series1.Name =
"Electric"
;
Series1.Type = ChartSeriesType.Line;
Series1.Appearance.LabelAppearance.Visible =
false
;
ChartSeries Series2 =
new
ChartSeries();
RadChart1.Series.Add(Series2);
Series2.Name =
"Gas"
;
Series2.Type = ChartSeriesType.Line;
Series2.YAxisType = ChartYAxisType.Secondary;
Series2.Appearance.LabelAppearance.Visible =
false
;
//Load Series Data
int
xSeries=0;
foreach
(ChartSeries ChartSeries
in
RadChart1.Series)
{
for
(
int
i = 0; i < ProcessData.Length - 2000; i++)
{
String[] Channels = ProcessData[i].Split(
','
);
ChartSeries.AddItem(Convert.ToDouble(Channels[xSeries + 1]));
}
xSeries++;
}
<
telerik:RadListBox
ID
=
"DepartmentsListBox"
runat
=
"server"
CheckBoxes
=
"true"
SelectionMode
=
"Multiple"
Width
=
"95%"
DataSourceID
=
"DepartmentsDataSource"
DataTextField
=
"Name"
DataValueField
=
"DepartmentID"
OnDataBound
=
"DepartmentsListBox_DataBound"
>
</
telerik:RadListBox
>
<
asp:ObjectDataSource
ID
=
"DepartmentsDataSource"
runat
=
"server"
SelectMethod
=
"GetDepartments"
TypeName
=
"Datamex.Projects.Nebulus.BusinessLogics.Departments"
>
</
asp:ObjectDataSource
>
protected void DepartmentsListBox_DataBound(object sender, EventArgs e)
{
foreach (RadListBoxItem item in DepartmentsListBox.Items)
{
item.Checked = hc.DepartmentHourCategoryLinks.Any(l => l.DepartmentID == Guid.Parse(item.Value));
}
}
<
asp:RequiredFieldValidator
ID
=
"DepartmentsValidator"
runat
=
"server"
ControlToValidate
=
"DepartmentsListBox"
ValidationGroup
=
"Save"
CssClass
=
"Validator"
Text
=
"*"
ErrorMessage="<%$ Resources:Resources, DepartmentsRequiredMessage %>" />