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

GridEditCommandColumn disable postback runs client side

1 Answer 192 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexis
Top achievements
Rank 1
Alexis asked on 07 Sep 2012, 09:33 PM
hello,
I have a problem pressing the GridEditCommandColumn edit a radgrid, although I have turned off the bone postback is executed by the client side like the button performs the postback edit.
how to disable the postback in GridEditCommandColumn pressing edit.


code fragment:
<radG:RadGrid ID="RadGrid1" runat="server" GridLines="None" HierarchyLoadMode="Client"   Width="1600px" ShowStatusBar="true"
    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Skin="Bus"   >
 
    <PagerStyle Mode="NumericPages"></PagerStyle>
    <ClientSettings AllowDragToGroup="True" AllowGroupExpandCollapse="True"  AllowExpandCollapse = "true">
                          
        <Selecting AllowRowSelect="True" ></Selecting>
    </ClientSettings>
 
    <MasterTableView Width="100%" AllowPaging="true"  HierarchyLoadMode="Client" DataKeyNames="CustomerID" AllowMultiColumnSorting="True"  AllowAutomaticDeletes="true">
  
        <DetailTables >
            <radG:GridTableView DataKeyNames="OrderID" Name="Orders" Width="100%" GridLines="Horizontal"
                AllowAutomaticUpdates="true" EditMode="InPlace">
                <Columns>
 
                        <radG:GridEditCommandColumn FooterText="Edit"  UniqueName="EditCommandColumn"    ButtonType="ImageButton"  EditImageUrl ="../../img/b_editar_1.gif"  HeaderText="Edit"
                        HeaderStyle-Width="100px" UpdateText="Edit" >
                         
                    </radG:GridEditCommandColumn>
                    

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 12 Sep 2012, 11:22 AM
Hello Alexis,

Note that a server-side bound grid cannot perform editing without postback. If you do not want the whole page to be refreshed, you can use a RadAjax component:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

If you want a component that offers fully functional editing client-side, you could try the Kendo Grid:
http://demos.kendoui.com/web/grid/editing-inline.html

All the best,
Tsvetina
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
Alexis
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or