Update label in Ajax Request

8 posts, 0 answers
  1. A K
    A K avatar
    49 posts
    Member since:
    Apr 2010

    Posted 23 Jul 2010 Link to this post

    I  dynamically load user control as panelBar item. And with the RadAjax proxy in Manager_AjaxRequest I am trying to update Text box and a label on the user control. Text box gets updated but not a label. I have added both controls in Ajax request update controls Mark up.

  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 23 Jul 2010 Link to this post

    Can we see a snippet of your page showing your RadAjaxManagerProxy control declaration?
  3. A K
    A K avatar
    49 posts
    Member since:
    Apr 2010

    Posted 23 Jul 2010 Link to this post

    I am adding it at run time for both TextBox and a label, following way in panel bar's ItemCreated event.

    Private

     

    Sub pnlBarAccounts_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles pnlBarAccounts.ItemCreated

    RadAjaxManagerProxyAcctSetup.AjaxSettings.AddAjaxSetting(RadAjaxManagerProxyAcctSetup, txtFIName)

    RadAjaxManagerProxyAcctSetup.AjaxSettings.AddAjaxSetting(RadAjaxManagerProxyAcctSetup, lblFiNameText)

    And try to update in following event Text for both these controls. Text box get's udpated but not label. I am assigning same text for both controls

     

    Private

     

    Sub Manager_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs)

  4. Radoslav
    Admin
    Radoslav avatar
    1566 posts

    Posted 26 Jul 2010 Link to this post

    Hi A K,

    Could you please try adding the following code snippet into the Page_Load event handler and let me know if the issue still persists:
    RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(RadAjaxManagerProxyAcctSetup, txtFIName)
    RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(RadAjaxManagerProxyAcctSetup, lblFiNameText)

    Looking forward for your reply.

    Sincerely yours,
    Radoslav
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. A K
    A K avatar
    49 posts
    Member since:
    Apr 2010

    Posted 27 Jul 2010 Link to this post

    I can not do this, because of I am adding Ajax binding on a parent page which will have multiple user controls in radpanel items. That’s why I am adding on Panel item-created event.  If work fine on a text box and all other controls except label. I don’t get this.  I am trying to ajaxify each user control at item created level.
  6. Radoslav
    Admin
    Radoslav avatar
    1566 posts

    Posted 30 Jul 2010 Link to this post

    Hello A K,

    To achieve the desired functionality and ajaxify controls dynamically, you need to add controls to the AjaxSettings into event which is occurred every time when the page is created. Could you please try adding the following code snippet into the pnlBarAccounts_ItemCreated and let me know if the issue still persists:
    RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(RadAjaxManagerProxyAcctSetup, txtFIName)
    RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(RadAjaxManagerProxyAcctSetup, lblFiNameText)

    Additionally please check out the following online resources:
    http://www.telerik.com/help/aspnet-ajax/ajxusercontrols.html
    http://www.telerik.com/help/aspnet-ajax/ajxloadusercontrols.html

    Best wishes,
    Radoslav
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. A K
    A K avatar
    49 posts
    Member since:
    Apr 2010

    Posted 30 Jul 2010 Link to this post

    I have added above code, No LUCK only text box is getting updated but not a label.
  8. Radoslav
    Admin
    Radoslav avatar
    1566 posts

    Posted 04 Aug 2010 Link to this post

    Hi A K,

    Based on the provided information is hard to determine what is causing the described issue. Could you please send us a small runnable project which demonstrates the issue. You could open a formal support ticket from your Telerik account and attach a ZIP file there. Thus we will be able to we debug the project and provide you with more to-the-point answer.

    All the best,
    Radoslav
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top