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

LoadOnDemand UserControl Persisting Values

1 Answer 105 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Lars Solberg
Top achievements
Rank 1
Lars Solberg asked on 24 Jul 2008, 06:31 PM
I have a tool tip firing from a hyperlink in a radgrid.  It loads a usercontrol on demand from the radtooltipmanager's ajaxupdate method.  The usercontrol loads a value into a label and selects an item in a listbox based on the originating row.  The label always updates properly, but when i select a listbox item, no matter what i do the following tooltips i open up all have that item selected.  I even debugged and saw that the usercontrol is selecting the correct item in the box, but somehow ignores that and selects whatever item I previously clicked on.  Does that information get saved somewhere? (viewstate?)

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 25 Jul 2008, 01:33 PM
Hi Lars,

I suppose that this happens because you update the values in the user control very early in the page lifecycle and it takes the old data from its ViewState. I can not be sure about this since I do not have your code. I suggest that you try to change the tooltip's content (select item) in the PreRender event of the user control to see if this change will take effect.

In case you need further assistance, please open a new support ticket and send a sample, fully runnable project (including DB) along with your explanation. Once I receive it, I will do my best to help.

Sincerely yours,
Svetlina
the Telerik team

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