Ejemplo n.º 1
0
 public static Action <DataGridEditingBuilder <T> > Editing <T>(string popupTitle)
 {
     return((editing) => {
         editing.Mode(GridEditMode.Popup);
         editing.UseIcons(true);
         editing.AllowAdding(true);
         editing.AllowUpdating(true);
         editing.AllowDeleting(true);
         editing.Popup(DXGridConfigs.EditingPopup(popupTitle));
     });
 }
Ejemplo n.º 2
0
 public static DataGridBuilder <T> CommonConfigs <T>(this DataGridBuilder <T> grid)
 {
     return(grid
            .ShowBorders(true)
            .ShowRowLines(true)
            .ShowColumnLines(false)
            .RowAlternationEnabled(true)
            .HoverStateEnabled(true)
            .RemoteOperations(false)
            .WordWrapEnabled(true)
            .ColumnHidingEnabled(true)
            .SearchPanel(DXGridConfigs.ShowSearchPanel())
            .Paging(DXGridConfigs.MasterPaging())
            .Pager(DXGridConfigs.Pager())
            .OnContentReady("dxGrid.handlers.onContentReady")
            .OnToolbarPreparing("dxGrid.handlers.onToolbarPreparing")
            .OnRowInserted("dxGrid.handlers.onRowInserted")
            .OnRowUpdated("dxGrid.handlers.onRowUpdated")
            .OnRowRemoved("dxGrid.handlers.onRowRemoved")
            .OnRowClick("dxGrid.handlers.onRowDoubleClick")
            );
 }