|
.
.
.ChildGrid(child =>
{
.QueryString("EmployeeID")
.AllowPaging()
.Columns(col =>
{
col.Field("OrderID").HeaderText("OrderID").IsPrimaryKey(true).TextAlign(TextAlign.Right).Width(75).Add();
col.Field("ShipCity").HeaderText("ShipCity").Width(100).Add();
col.Field("Freight").Width(120).Add();
col.Field("ShipName").Width(100).Add();
}).ClientSideEvents(e=>e.RecordDoubleClick("onRecordDoubleClick"));
})
.
.
<script type="text/javascript">
function onRecordDoubleClick(args){
alert("recordDoubleclick event triggered for child grid ")
}
</script> |
|
|
Hello,
Would this be possible on Angular?
I am trying to allow recordDoubleClick on angular where it triggers when clicking a record in a child grid.
Thanks
Hi Thamir,
You can achieve your requirement by assigning a function to the “recordDoubleClick” event instead of calling a function inside the Child Grid definition. Please refer to the below code example and sample for more information.
|
ngOnInit(): void { this.childGrid = { recordDoubleClick: this.onRowClick, . . . }; } onRowClick(args: RecordDoubleClickEventArgs) { console.log(args); }
|
Please get back to us if you need further assistance on this.
Regards,
Pavithra S
If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.