|
public void change(CheckBoxChangeEventArgs<TreeData> args)
{
if (args.SelectedRowIndex == -1) // checking if header checkbox has been selected
{
//perform your action
}
} |
hola quisiera saber por favor si es posible utilizar los eventos:
-Caja
-FilaSeleccionada
-ContextMenuItemClicked
y al mismo tiempo utilizar un DataSource de la siguiente manera:
<SfGrid @ref="@Grid_Gastos" DataSource="@GastosDs.Where(g => g.IIDSucursal == sucursal.IIDSucursal && g.SStatus == "Pendiente")"
ya que al tratar de seleccionar una fila el checkbox no se queda marcado pero si ocurre el evento.
mi codigo:
<SfGrid @ref="@Grid_Gastos" DataSource="@GastosDs.Where(g => g.IIDSucursal == sucursal.IIDSucursal && g.SStatus == "Pendiente")"
AlturaFila="26" Altura="200"
AllowSorting="true" AllowFiltering="true" AllowPaging="false" AllowSelection="true"
ContextMenuItems="@(new List<ContextMenuItemModel>() {new ContextMenuItemModel {Text = "Autorizar Gastos", Target = ".e-content", Id="Autorizar"}})">
<GridSelectionSettings Type="Syncfusion.Blazor.Grids.SelectionType.Multiple"></GridSelectionSettings>
<GridFilterSettings Type="Syncfusion.Blazor.Grids.FilterType.Excel"></GridFilterSettings>
<GridEvents ContextMenuItemClicked="OnContextMenuClick" RowSelecting="FilaSeleccionada" TValue="AutorizacionesModels"></GridEvents>
<GridEditSettings AllowAdding="true" AllowDeleting="true" AllowEditing="true" Mode="EditMode.Dialog"></GridEditSettings>
<Columnas de cuadrícula>
<GridColumn Type="ColumnType.CheckBox" IsFrozen="true" Ancho="60"></GridColumn>
Hi Gamaliel,
Before proceeding with the reporting problem, we require some additional clarification from your end. Please share the below details to proceed further at our end.
Above-requested details will be very helpful in validating the reported query at our end and providing a solution as early as possible.
Regards,
Prathap S