We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

CellEdit event in detail grids

Thread ID:

Created:

Updated:

Platform:

Replies:

122104 Feb 17,2016 06:43 AM Feb 18,2016 07:16 AM ASP.NET Web Forms 1
loading
Tags: Grid
Jorge Pampin
Asked On February 17, 2016 06:43 AM

Hello,

How to configura a detail grid to fire the CellEdit event? I can't do it.

Thanks!

Venkatesh Ayothi Raman [Syncfusion]
Replied On February 18, 2016 07:16 AM

Hi Jorge,
Thanks for contacting Syncfusion support.

CellEdit event  triggers when the editmode is batch edit. Refer to the following sample and  code sample,

Code Sample:

<ej:Grid ID="Grid1"    AllowPaging="True"

            EnableRowHover="true"   

               DetailsTemplate="#tabGridContents"

               runat="server">

              <ClientSideEvents DetailsDataBound="detailGridData" CellEdit="celledit"   RecordClick="rc"/>

            <EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True" EditMode="Batch"></EditSettings>

            <ToolbarSettings ShowToolbar="True" ToolbarItems="add,edit,delete,update,cancel"></ToolbarSettings>

            <Columns>

                <ej:Column Field="OrderID" IsPrimaryKey="true" HeaderText="Order ID"    TextAlign="Right" Width="90" />

                <ej:Column Field="CustomerID" HeaderText="Customer ID"   Width="100"  />

                <ej:Column Field="EmployeeID" HeaderText="Employee ID" HeaderTemplateID="#employeeTemplate" TextAlign="Right" Width="110"  />

                <ej:Column Field="Freight" HeaderText="Freight"  TextAlign="Right" Width="90" Format="{0:C}" />

                <ej:Column Field="OrderDate" HeaderText="Order Date" Width="100" HeaderTemplateID="#dateTemplate" TextAlign="Right" Format="{0:MM/dd/yyyy}" />

                <ej:Column Field="ShipCity" HeaderText="Ship City" Width="100" />

            </Columns>

<Code Something….>

function celledit(e) {

            alert("CellEdit event is triggered");

        }

    </script>

</asp:Content>

           


Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/ASPevent-1233278279

Please ensure that, if you have enabled inline edit or other edit modes. If you still face the same issue while enabling the batch edit mode, Please provide a more details of them.

Regards,
Venkatesh Ayothiraman.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;