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

RadPanel Bar seems to be caching

1 Answer 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James Hutley
Top achievements
Rank 1
James Hutley asked on 02 Dec 2010, 02:23 PM
Hi
I have a radpanel bar which I populate with question descriptions using a session object according to a cover type selected "e.g. Motor".

When the page first loads the radpanlebar populates correctly and I can work with no problems.

There after if  I change the cover type say to "Commercial"
It won't bind to the new session object it reverts back to the last lot of descriptions.

I have checked that the session has the new values required so that doesn’t seem to be the root of the problem.
I have tried binding in the page_init that also doesn’t work.

I checked the RadPanelProposal_ItemDataBound and the XmlElement for the data item doesn’t change according to the session object.
Any advice would be appreciated.

The session gets set as follows:
xmlDS.Data = "<Tasks>" & XmlString & "</Tasks>"
xmlDS.XPath = "/Tasks/Task"
xmlDS.ID = "QuestionsXml"
Session(QuoteQuestionGroups) = xmlDS





1 Answer, 1 is accepted

Sort by
0
James Hutley
Top achievements
Rank 1
answered on 02 Dec 2010, 03:12 PM
Ok problem solved.
On page_init you bind the Radpanelbar to some random xml datasource then rebind when once you have the page has loaded to the xml datasource you have in the session object.
Tags
General Discussions
Asked by
James Hutley
Top achievements
Rank 1
Answers by
James Hutley
Top achievements
Rank 1
Share this question
or