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

Client-Side Databinding Editing/Inserting

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JS
Top achievements
Rank 1
JS asked on 01 Nov 2012, 11:03 AM
Hi all,

I've created a RadGrid using Client-Side Databinding according to this example:
http://www.telerik.com/help/aspnet-ajax/grid-client-side-binding.html

This is the declaration of my RadGrid:
<telerik:RadGrid ID="Grid" runat="server" Skin="Metro" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowPaging="true" AllowMultiRowSelection="true" PageSize="25" EnableEmbeddedSkins="true">
    <MasterTableView CommandItemDisplay="Top" EditMode="PopUp" ClientDataKeyNames="Id" DataKeyNames="Id" InsertItemPageIndexAction="ShowItemOnCurrentPage">
    <Columns>
            <telerik:GridEditCommandColumn />
            <telerik:GridBoundColumn DataField="Id" HeaderText="Id" UniqueName="Id" Display="false"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name">
        </Columns>
    </MasterTableView>
    <PagerStyle AlwaysVisible="true">
    </PagerStyle>
    <ClientSettings EnableRowHoverStyle="true">
        <DataBinding Location="~/services/service.asmx"
            SelectMethod="List" SelectCountMethod="ListCount">
        </DataBinding>
        <Selecting AllowRowSelect="true" />
    </ClientSettings>
</telerik:RadGrid>

When I click the Add New Row or Edit button, the Grid calls my webservice, but besides that, nothing happens. No postback or anything else.

Am I missing something here? Is there a way to show the PopUp-form through client-side and should I do that?

Kind regards,

Jesse

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 06 Nov 2012, 08:22 AM
Hi Jesse,

Unfortunately the RadGrid does not support build in functionality for insert/update/delete when it is bound client side. A possible solution for your case would be to use an external edit/insert form and populate it on the client as shown in this demo of the product.

I hope this helps.

Kind regards,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
JS
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or