Hi
I use the RadSlider. I programicly from code behind put the items in the RadSlider. The thing is that i put too many items and the text is not shown, it's like "...", you can see it in the attachment. I put the tool tip but i also want to show the text.
In the code i tried this
i thought that if i don't put text on all items, that the text will be shown on those that have.
Before that the code was like this
I have pictures in the attachment from both cases.
So do you have solution so i can show the time on the radSlider and not just on the tool tip
Regards,
Goran
I use the RadSlider. I programicly from code behind put the items in the RadSlider. The thing is that i put too many items and the text is not shown, it's like "...", you can see it in the attachment. I put the tool tip but i also want to show the text.
In the code i tried this
for
(
double
minute = 0; minute <= minutes; minute = minute + 15)
{
RadSliderItem radSliderItem;
if
(((
int
)minute) % 60 == 0)
{
radSliderItem =
new
RadSliderItem(workHoursStartDate.ToString(
"HH:mm"
), minute.ToString());
radSliderItem.ToolTip = workHoursStartDate.ToString(
"HH:mm"
);
}
else
{
radSliderItem =
new
RadSliderItem(
""
, minute.ToString());
radSliderItem.ToolTip = workHoursStartDate.ToString(
"HH:mm"
);
}
sliderTimeOffSlider.Items.Add(radSliderItem);
workHoursStartDate = workHoursStartDate.AddMinutes(15);
}
i thought that if i don't put text on all items, that the text will be shown on those that have.
Before that the code was like this
for
(
double
minute = 0; minute <= minutes; minute = minute + 15)
{
RadSliderItem radSliderItem;
radSliderItem =
new
RadSliderItem(workHoursStartDate.ToString(
"HH:mm"
), minute.ToString());
radSliderItem.ToolTip = workHoursStartDate.ToString(
"HH:mm"
);
sliderTimeOffSlider.Items.Add(radSliderItem);
workHoursStartDate = workHoursStartDate.AddMinutes(15);
}
I have pictures in the attachment from both cases.
So do you have solution so i can show the time on the radSlider and not just on the tool tip
Regards,
Goran