IsItemInserted not working with ajaxafied ragrid

2 posts, 0 answers
  1. Greg
    Greg avatar
    17 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">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="PatientGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PatientGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="AddPatientButton" />
                </UpdatedControls>
            </telerik:AjaxSetting>
             <telerik:AjaxSetting AjaxControlID="AddPatientButton">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PatientGrid" LoadingPanelID="RadAjaxLoadingPanel1"   />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1"  runat="server"  />
       <div class="FoundDiv">
        <label>Patients Found:</label><telerik:RadButton ID="AddPatientButton" runat="server" Text="Add Patient"></telerik:RadButton>
    </div>    
    <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
                Page.Validate()
                PatientGrid.MasterTableView.Rebind()
            End Sub

    Now, after ajaxifying things... it no longer goes to Insert mode...????
  2. Maria Ilieva
    Admin
    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.


    Greetings,
    Maria Ilieva
    the Telerik team
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top