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

radajax manager Requst Can't Rebind radgrid

1 Answer 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Radha
Top achievements
Rank 1
Radha asked on 30 Apr 2010, 03:06 PM
Hi..

with in ajax manager Request radgrid cant Rebind/ Updated valus Cant't showing .its showing previous valus..


    <telerik:RadGrid ID="rgExperience" runat="server" AutoGenerateColumns="False" GridLines="None" OnItemDataBound="rgExperience_ItemDataBound" OnNeedDataSource="rgExperience_NeedDataSource"  >
        <MasterTableView>
        
        <Columns>
        <telerik:GridTemplateColumn>
        <ItemTemplate>
         <ItemTemplate>
            <div class="bold">
                <span class="font14 green11 bold">
                    <%#Eval("designation") %>
                    at </span><span class="font14 bold">
                        <%#Eval("Company")%>
                    </span>
                <br>
                <span class="font12 bold">
                    <%#Eval("city")%>
                    ,
                    <%#Eval("Countryname")%>
                </span>
                <br />
                <span class="grey_txt2 font12 bold">
                    <%#Eval("Start")%>
                    -
                    <asp:Label ID="lblend" runat="server" Text='<%#Eval("expend")%>'></asp:Label>
                </span>(
                <%#Eval("expCount")%>
                years)
               <br />
                <div class="fltr1">
                    <asp:LinkButton ID="lbtnExperience" runat="server">Edit</asp:LinkButton>
                </div>
                <br />
                <asp:Label ID="lblSummery" runat="server" Text="Job Summary:"></asp:Label>&nbsp;
                <asp:Label ID="lblSumery1" CssClass="unbold" runat="server" Text='<%#Eval("details")%>'></asp:Label>
            </div>
            <asp:Label ID="lblexpid" runat="server" Visible ="false"  Text='<%#Eval("ExperienceId")%>'></asp:Label>
            <i class="s5">&nbsp;</i>
            <div class="dashed_border">
                &nbsp;</div>
            <i class="s5">&nbsp;</i>
        </ItemTemplate>
        
        </ItemTemplate>
        
        </telerik:GridTemplateColumn>
        
        </Columns>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
        </MasterTableView>
    </telerik:RadGrid>

 function OnClientCloseexperience(oWnd)
        {
             var ajaxManager = $find('<%=RadAjaxManager1.ClientID %>');
         
            ajaxManager.ajaxRequest("experience");
        }



  protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {

   
       if (e.Argument.ToString() == "experience")
        {
            ;
            rgExperience.Rebind();
        }









1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 04 May 2010, 08:06 AM
Hi Radha,

Perhaps, you have not included the following ajax setting for the RadAjaxManager control:

<AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="rgExperience" />
        </UpdatedControls>
    </telerik:AjaxSetting>
    ...
</AjaxSettings>

as when the grid is being updated through an ajax request, it is the RadAjaxManger that is ajaxifying the grid and the above setting has to be present.

Hope it helps.

Best wishes,
Tsvetoslav
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.
Tags
General Discussions
Asked by
Radha
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or