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

is client event available for row edit close on rad grid

1 Answer 184 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shamim
Top achievements
Rank 1
shamim asked on 05 Mar 2015, 04:03 PM
I have a batch edit telerik radgrid want a ClientEvents fired when a row is closing on edit mode.

Client Event OnBatchEditClosing and OnBatchEditOpening type something,is available for row eid open and close.

**OnBatchEditClosing**
This event is fired when a cell is closing.

**OnBatchEditOpening**
This event is fired when a cell is opening for edit

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 10 Mar 2015, 05:40 AM
Hello Shamim,

Although that there is a Row EditType for the Batch Editing, the opening, closing and editing of each cell will fire the same events as with the Cell EditType

Since there are no particular events for the rows in the context of Batch Editing, if you need to perform some custom logic to prevent the closing event, you should handle the OnBatchEditClosing event for each cell to achieve this. This approach could also be used if you need to execute custom logic after all cells are closed, by handling the same event and executing your logic when the Column UniqueName is the name of the last column:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function editClosing(sender, args) {
            var columnName = args.get_columnUniqueName();
            if (columnName == "lastColumnUniqueName") {
                //do something
            }
        }
    </script>
</telerik:RadCodeBlock>

Hope this helps.


Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
shamim
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or