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

using RadAjax to update the RadTooltip text

8 Answers 68 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Hadi Teo
Top achievements
Rank 1
Hadi Teo asked on 14 May 2009, 10:16 AM
Hi,

Currently i have the following scenario:

i am using a RadComboBox to give users options to select from the various ComboBox options. After an item is selected, a tooltip (RadTooltip) will be displayed to display more description regarding the selected option.

I have seen this example: http://www.telerik.com/support/kb/aspnet-ajax/tooltip/radtooltip-for-radcombobox.aspx and it's quite nice, but i would like to display the more detail description by using RadAjax to pull the information from the server only for the particular selected text and finally updates the tooltip text

Is there any working sample or hint in resolving this issue ?

Thanks,

hadi teo

8 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 18 May 2009, 07:37 AM
Hi Hadi,

I prepared a sample demo which shows a sample approach how to load content on demand through the OnAjaxUpdate event (since the RadToolTipManager uses internally AJAX, it is better to take advantage of this instead of using RadAjax) and sets the custom title on the client. You can modify the demo further in order to meet your needs, e.g use another event and set different values in order to get different titles on different show.



Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Hadi Teo
Top achievements
Rank 1
answered on 21 May 2009, 07:04 AM
Hi Svetlina,

Thanks for the sample. Alternatively i have another possible solution by setting a hidden field to the correct at the server side, using RadAjax.

So when the tooltip is shown, it will read the hidden field value at the client side using the tooltip client side event.

Regards,

hadi teo
0
Chris
Top achievements
Rank 1
answered on 28 Jun 2009, 05:55 PM
Hi Svetlina,

I used the sample code you provided from the post, and my comboboxitem contains an item named "Create a new Item".  
When user clicks on that item, tooltipmanager would ajaxfy the tooltip with load on demand method to load another ascx form into the tooltip panel.  
However, after the OnAjaxUpdate method calls, the tooltip comes up along with the ascx form loaded to the content of the tooltip without any issue.  Then I figured there are 2 issues

1. Combobox dropdown doesn't collapse after clicking on the "Create a new Item".
2. The selected item doesn't get updates after the user clicks on that "Create a new Item" in the combobox.

Do you know the issue?  I am using the most recent dll built.  Please advise.

Chris
0
Svetlina Anati
Telerik team
answered on 01 Jul 2009, 11:32 AM
Hello Chris,

I am afraid that the provided explanations are not enough to completely understand the problem and its reasons. However, since you have used the demo I attached to my last reply, I suggest to modify the very same demo in order to reproduce the issues and once you get a fully working reproduction demo from it which replicates your setup, open a new support ticket and send it to me along with very detailed step by step instructions and explanations of the actual and the desired behavior. Once I have a better understanding on the setup and I am able to analyze it locally, I will help you resolve the problem and you will be able to fix your original demo based on my explanations.


Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Chris
Top achievements
Rank 1
answered on 01 Jul 2009, 01:12 PM
Hi Sevtlina,

What is not understandable?  I think I clearly state out the problem I have step by step.  Please clarify.

1. I have RadComboBox which the first item is "Create a new item"
2. When user clicks on this item, it OnAjaxUpdates the tooltip with Load On Demand which contains a new input form.
3. After the tooltip loaded, the RadComboBoxItem doesn't get selected ("Create a new item" is not being selected).

My question
1. Why the item doesn't get selected?
2. Why the RadComboBox doesn't collapse after the tooltip is displayed? 
3. Is there a way I can let the RadComboxBox selects "Create a new item" after user clicks on that item (tooltip shows and collapse the drop down)?

Chris
0
Svetlina Anati
Telerik team
answered on 06 Jul 2009, 09:12 AM
Hello Chris,

The scenario you explain completely covers the scenario which is implemented in the test demo except for loading a user control but this could not influence the combo box on the main page. I changed the first item text to the one you said and prepared a video capture of the behavior on my side - please find the sample along with th video capture attached to the thread.

In case this is not what you explain, please modify it, open a new support ticket and send it to us along with detailed explanations and I will do my best to help.


Greetings,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Chris
Top achievements
Rank 1
answered on 06 Jul 2009, 09:39 AM
Hi,

From your video clip, clearly I see that you didn't try to select another item first and then select back to the "Create a new Item". 

or

Pre-select another item first on page load, then secondly select "Create a new Item".

Please advise.

Chris
0
Svetlina Anati
Telerik team
answered on 06 Jul 2009, 02:29 PM
Hi Chris,

I am not completely sure what exactly you mean by "Pre-select another item first on page load, then secondly select "Create a new Item" - to manually select another item first or to set another item to be initially selected. That is why I tested both cases and attached a sample video to demonstrate the result on my side.

In case your problem persists, please open a new support ticket and send me the modified sample along with a video capture of the behavior on your side because otherwise I am unable to help.

Regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolTip
Asked by
Hadi Teo
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Hadi Teo
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Share this question
or