telerik - Tool Tip Complications in RadHtmlChart -


i had query regarding tool tip display in radhtmlchart.i wanted display 4 things on tooltip if condtion of dropdown else should show single value.

for example, user has 4 types of call i.e sms,mms,voice,datacharges on accounted for. dropdown has 4 values(data,voice,sms,mms,all).in condition of dropdown should display different multiline tooltip else should display column value respectively.

and if value contains 0 multiline tooltip should specify zero.for instance if (total usage:10
sms:0
mms:5
datacharges:4
voice:1)

i have done upto displaying multiline tooltip problem coming when should display 1 tooltip individual dropdownvalue repeats other tooltip displaying other data undefined.

thanks in advance.

best regards,

shikhar

you can add javascript logic in clienttemplate of tooltips, can check if value undefined or null or whatever , not print anything: http://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/functionality/clienttemplate/display-html-and-execute-javascript.

<clienttemplate>     #if (somefield != 'undefined') {# #=value# #} else {#  #} # </clienttemplate> 

is starting point. of course, tweak if statement fit needs.


Comments