problem with XmlHttpPanel and RadScriptManager?

3 posts, 1 answers
  1. baha2r
    baha2r avatar
    8 posts
    Member since:
    Apr 2009

    Posted 30 Dec 2009 Link to this post

    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. Answer
    Pero
    Admin
    Pero avatar
    1156 posts

    Posted 30 Dec 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. baha2r
    baha2r avatar
    8 posts
    Member since:
    Apr 2009

    Posted 30 Dec 2009 Link to this post

    Dear Pero,
    Thank you very much for your quick response, setting the property you mentioned did the trick.
    Regards , baha2r
Back to Top