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

problem with XmlHttpPanel and RadScriptManager?

2 Answers 90 Views
XmlHttpPanel
This is a migrated thread and some comments may be shown as answers.
baha2r
Top achievements
Rank 1
baha2r asked on 30 Dec 2009, 10:59 AM
Hi there,
I'm facing a problem using XmlHttpPanel  here's my scenario:
I have two custom controls(webpart) in my page each one inside a different Panel , the first one has a RadGrid and second One a RadPanelbar that shows details for selected GridRow.
currently I'm using a AjaxSetting  to update the Panelbar by calling an AjaxRequest on row select function of RadGrid on client side and everything works as expected.
but unfortunately performance is really low this way! so I tried to use XmlHttpPanel , I'm doing this  by set_value() function in javascript function for rowSelected event of the Grid, the problem is that this way the panelBar won't load properly and clicking Bars won't work either very similar to the situation where RadScriptManager is not registerd  correctly. It seems like the problem is this issue but the provided solutions did not solve my problem.
I should also mention that since the ServiceRequest event fires after the CreateChildControl method of My RadPanelbar webpart I had to use another method to create the panel bar with ServiceRequest event value (I also tried creating and adding the panelBar in this method which made the situation even worth and panelBar lost it's skin too!), Is this a correct approach?
thanks In advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Pero
Telerik team
answered on 30 Dec 2009, 01:36 PM
Hello baha2r,

I am not sure that I completely understand your scenario. Basically you are initiating a partial page update of a certain RadXmlHttpPanel control by a RadGrid control. In the XmlHttpPanel you have a RadPanelBar control whose content is updated based on the input passed from the Grid. This seems like a valid scenario and there should be no problems if implemented correctly. I have created similar project (attached to the thread) that has a RadPanelBar control inside an XmlHttpPanel. The Panel is updated by pressing a button. The XmlHttpPanel's EnableClientScriptEvaluation="true" property is also set, so that the client-side functionality of the PanelBar placed inside the panel is available after the partial page update. Please make sure that EnableClientScriptEvaluation="true".

In case setting this property does not help, could you please send us a sample working project (you need to open a support ticket to be able to attach files) that demonstrates the problem? Once we can observe the problem locally, we will do our best to provide a working solution.

All the best,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
baha2r
Top achievements
Rank 1
answered on 30 Dec 2009, 03:12 PM
Dear Pero,
Thank you very much for your quick response, setting the property you mentioned did the trick.
Regards , baha2r
Tags
XmlHttpPanel
Asked by
baha2r
Top achievements
Rank 1
Answers by
Pero
Telerik team
baha2r
Top achievements
Rank 1
Share this question
or