This is a migrated thread and some comments may be shown as answers.

Custom User Control in ToolTip

1 Answer 41 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Rudie Chiu
Top achievements
Rank 1
Rudie Chiu asked on 28 Feb 2011, 04:39 PM
Hi, I am trying to use RadToolTipManager to create on demand tooltip content which is dependant on the value of a particular column on mouse over.... as a starting point I am attempting to recreate as much of the example project - (http://demos.telerik.com/aspnet-ajax/tooltip/examples/loadondemand/defaultcs.aspx) in my own as possible. However I'm getting a ' Type 'ProductDetails' is not defined ' error in the following line of the code behind:

Dim details As ProductDetails = DirectCast(ctrl, ProductDetails)

I have tried putting the ascx file in my app_folder, the root, I'm pretty sure I've got all the relevant imports right and registrations at the top of the aspx file... am probably missing something obvious but can't figure out what...

Thanks in advance,

Rudie

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 03 Mar 2011, 01:11 PM
Hello Rudie Chiu,

I am not sure what causes the issue but here are some assumptions:

1) Make sure you have the following reference in the page's aspx and that the Src path is the correct one for your particular case:


 <%@ Register Src="ProductDetails.ascx" TagName="ProductDetails" TagPrefix="uc1" %>

2) Make sure that the user conrol compiles correctly - e.g put it in teh markup in a separate page and see whether it works.

3) Since this is general ASP.NET knowledge and not directly related to RadControls you can also search the net, e.g start below:

 
http://www.google.com/#sclient=psy&hl=en&rlz=1W1ADFA_en&q=loadcontrol+type+undefined&rlz=1W1ADFA_en&aq=f&aqi=&aql=&oq=&pbx=1&bav=on.2,or.&fp=ee7ae51cefa9981c

Greetings,
Svetlina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
ToolTip
Asked by
Rudie Chiu
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or