IsItemInserted not working with ajaxafied ragrid

2 posts, 0 answers
  1. Greg
    Greg avatar
    18 posts
    Member since:
    Oct 2010

    Posted 25 Mar 2011 Link to this post

    I know this is something easy... but can't figure it out.

    I have a radgrid working well.. so I decided to ajaxify it as so:

    <telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server">
            <telerik:AjaxSetting AjaxControlID="PatientGrid">
                    <telerik:AjaxUpdatedControl ControlID="PatientGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="AddPatientButton" />
             <telerik:AjaxSetting AjaxControlID="AddPatientButton">
                    <telerik:AjaxUpdatedControl ControlID="PatientGrid" LoadingPanelID="RadAjaxLoadingPanel1"   />
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1"  runat="server"  />
       <div class="FoundDiv">
        <label>Patients Found:</label><telerik:RadButton ID="AddPatientButton" runat="server" Text="Add Patient"></telerik:RadButton>
    <telerik:RadGrid ID="PatientGrid" runat="server" ........

    The AddPatientButton which does this:

    Private Sub AddPatientButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles AddPatientButton.Click
                Me.AddPatientButton.Enabled = False
                PatientGrid.MasterTableView.IsItemInserted = True
            End Sub

    Now, after ajaxifying things... it no longer goes to Insert mode...????
  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 30 Mar 2011 Link to this post

    Hi Greg,

    Could you please test the application by wrapping the RadGrid control and the used button into single RadAjaxPanel control? Test this approach and let me know if this makes any difference.

    Maria Ilieva
    the Telerik team
Back to Top