Posted on Jan 13, 2012 (permalink)
Reply
Posted on Jan 17, 2012 (permalink)
Hello Omer, I believe the following demo is quite close to your requirement on showing tooltips: http://demos.telerik.com/aspnet-ajax/slider/examples/databinding/defaultcs.aspx. Another approach would be to use the drag handles and the OnClientValueChanged event to get the new value as well as the handle that was dragged, then set the value (or a modified string, depending on your custom scenario) to the tooltip. I am attaching to this post a simple page that shows this in action and uses the demo you linked as base: http://screencast.com/t/PZoeacEOej.
Posted on Jan 20, 2012 (permalink)
<script type=
"text/javascript"
>
var
theTooltip =
null
;
function
pageLoad()
{
theTooltip = $find(
"RadToolTip1"
);
}
OnClientValueChanged(sender, args)
newValue = args.get_newValue();
handle = sender.get_activeHandle();
theTooltip.set_targetControl(handle);
---------
if
handle = 1 ;
theTooltip.set_text(A);
handle = 2 ;
theTooltip.set_text(B);
...
something like
this
..
-----------------
theTooltip.set_text(newValue);
setTimeout(
()
theTooltip.show();
}, 20);
</script>
Posted on Jan 23, 2012 (permalink)
Posted on Feb 10, 2012 (permalink)
myArray =
new
Array();
myArray[
'1'
] =
'sample1'
'2'
'sample2'
'3'
'sample3'
'4'
'sample4'
newValue = myArray[args.get_newValue()];
tooltip.set_text(newValue);
UpdateToolTipText2(tooltip, slider) {
div = document.createElement(
"div"
div.style.whiteSpace =
"nowrap"
(slider.get_itemType() == Telerik.Web.UI.SliderItemType.Item)
div.innerHTML = (slider.get_selectedItems()[0].get_text() +
" / "
+ slider.get_selectedItems()[1].get_text());
else
div.innerHTML = (slider.get_selectionStart() +
+ slider.get_selectionEnd());
tooltip.set_contentElement(div);
Posted on Feb 15, 2012 (permalink)
Back to Top
[ ASP.NET ToolTip Features | Documentation | Demos | Telerik TV | Self-Paced Trainer | Step-by-step Tutorial ]
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below