Esempio n. 1
0
        public async Task OnRowSelected(RowSelectEventArgs <TModel> args)
        {
            try
            {
                CurrentModel = DataSource.SingleOrDefault(f => f.Equals(args.Data));
                await OnSelect.InvokeAsync(CurrentModel);

                IsShouldRender = false;
            }
            catch (Exception ex)
            {
                Toast.ShowWarning($"Erro ao carregar dados da entidade {typeof(TModel)} <br> Erro {ex.Message}");
            }
        }
Esempio n. 2
0
        private async Task OnRowSelected(RowSelectEventArgs <DataRow> args)
        {
            if (!UseListSelection)
            {
                UpdateListSelection();
            }
            else if (!suppressGridSelectionUpdate) // avoid double execution in recursion
            {
                await customRowSelected.InvokeAsync(args);

                // update grid selection to match the list selection at the end of user row selection
                await UpdateGridSelection();
            }
        }
 // get tech id
 public void TecNameRow(RowSelectEventArgs <TechName> args)
 {
     techId = args.Data.ID;
 }
Esempio n. 4
0
 public void RowSelectHandler(RowSelectEventArgs <Product> args)
 {
     //{args.Data} returns the current selected records.
     SelectedProductId = args.Data.ProductID;
 }
        //public async Task GetSelectedRecords(RowSelectEventArgs<AlgorithmDefinition> args)
        //{

        //    await AlgorithmGrid.DetailCollapseAll();

        //    await AlgorithmGrid.DetailExpandCollapseRow(args.Data);

        //}

        public void RowSelectHandler(RowSelectEventArgs <AlgorithmDefinition> args)
        {
            AlgorithmGrid.DetailExpandCollapseRow(args.Data);
        }
Esempio n. 6
0
 void DayPilotGantt1_RowSelect(object sender, RowSelectEventArgs e)
 {
     DayPilotGantt1.Message("Row selected.");
 }
Esempio n. 7
0
 protected void DayPilotScheduler1_OnRowSelect(object sender, RowSelectEventArgs e)
 {
     DayPilotScheduler1.UpdateWithMessage("Number of selected rows: " + DayPilotScheduler1.SelectedRows.Count);
     DayPilotScheduler1.Update(CallBackUpdateType.None);
 }