update button text within radwindow

2 posts, 0 answers
  1. Pat
    Pat avatar
    3 posts
    Member since:
    May 2013

    Posted 10 May 2013 Link to this post

     I have a RadGrid, and there is a GridTemplateColumn as below:

     <telerik:GridTemplateColumn HeaderText="Approve">
                          <asp:LinkButton ID="LinkButtonIsLinkPublish" CommandName="ShowIsPublish" Text="<span style="font-size: 14px;">Approve</span>"

    and i have a RadWindow which has a button as below:

    <telerik:RadWindow ID="RadWindowIsPublish" runat="server" Title="Approve" Width="250px"
            Height="150px" VisibleOnPageLoad="false" Behaviors="Close,Resize,Move" Left="610px">
                     <table width="100%">
    td align="center">
                 <telerik:RadButton ID="RadWindowIsPublisRadButton" runat="server" OnClick="RadWindowButton_Onclick"

    I need to set the button's text which in Radwindow base on record's status in RadGrid, but now the button's text always keep the default value, cannot change it.
    Any help would be great!

  2. Marin Bratanov
    Marin Bratanov avatar
    3562 posts

    Posted 15 May 2013 Link to this post

    Hello Pat,

    Are you using AJAX? If your grid is performing a partial postback then the new settings for the RadButton simply will not transfer to the client. What you would need to do is to add an update panel in the ContentTemplate of the RadWindow that will wrap the button you wish to modify and call its Update() method on the server when needed. More details on the way AJAX works in this scenario are available in the how to use a RadWindow with AJAX help article.

    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top