get_isItemInserted() | RadGrid for ASP.NET AJAX Documentation
Edit this page


Returns a Boolean value indicating if the GridTableView is currently in insert mode. Can be used to create some condition for executing different script logic depending on the visibility status of the insert item.

<telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" runat="server" AllowPaging="True"
    <MasterTableView DataKeyNames="OrderID" CommandItemDisplay="Top">
<br />
<asp:Button ID="Button1" runat="server" Text="Click"
    OnClientClick="buttonClick(); return false;" />
function buttonClick() {
    var grid = $find('<%= RadGrid1.ClientID %>');
    var masterTableView = grid.get_masterTableView();

    if (masterTableView.get_isItemInserted()) {
        alert("The Insert form is open.");
Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article