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

IsItemInserted not working with ajaxafied ragrid

1 Answer 27 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 25 Mar 2011, 10:02 PM
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...????

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 30 Mar 2011, 02:58 PM
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
Tags
Ajax
Asked by
Greg
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or