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

Return Values From ToolTip UserControl

1 Answer 71 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 2
Steve asked on 26 Oct 2008, 09:10 PM
Hi, I created a scenario loosely based on your example where you click on a listbox to load a tooltip, check some languages, click a button, and update the main listbox.  I enhanced the example to use a more complex userControl as my tooltip, but in the end, it's still just a simple case of grabbing what the user entered on the tooltip UI and populating a control on the main form with those entries.

My scenario works fine when I use RadToolTip and define it in the .ASPX of my main form.  In my tooltip user control, the user clicks an "OK" button which calls a javascript function on the main page to pass back the user's entries.  Problem with this method is the usercontrol in the tooltip has a listbox that needs populating from the database and this occurs on Page_Load of the main form (even if the user never chooses to view the tooltip).  Therefore, I would like to use the LoadOnDemand feature of RadToolTipManager.

I was able to convert my scenario to using that method for loading the tooltip, but I wasn't sure how best to return results from the tooltip.  I tried with my original method (of javascript function on main page) and it didn't work.  What would be the best way (server-side or client-side) to get data off the tooltip when the user clicks the "OK" button on the tooltip?

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 28 Oct 2008, 03:30 PM
Hi Steve,

Do you by any chance have script in your user control? If this is so, the problem comes from the fact that the MS Ajax does not correctly parse the scripts. We have prepared a blog post which shows this and provides a workaround - you can find it here.

In case this is not the problem, please open anew support ticket and send me a samnple, fully working reproduction project along with detailed reproduction instructions.



Kind regards,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolTip
Asked by
Steve
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
Share this question
or