private async void SfDataGrid_GridDoubleTapped(object sender, Syncfusion.SfDataGrid.XForms.GridDoubleTappedEventArgs e)
        {
            var s = (Tables)SfGrid.SelectedItem;

            if (s.isAvailable == true)
            {
                s.isAvailable = false;
                var bla = await viewModel.PutTask(s);

                s = bla;
            }
            await Navigation.PushAsync(new TableCollection(s));
        }
Example #2
0
        private void DataGrid_GridDoubleTapped(object sender, Syncfusion.SfDataGrid.XForms.GridDoubleTappedEventArgs e)
        {
            int rowindex    = e.RowColumnIndex.RowIndex;
            int columnindex = e.RowColumnIndex.ColumnIndex;

            var    rowData   = dataGrid.GetRecordAtRowIndex(rowindex);
            string cellValue = dataGrid.GetCellValue(rowData, dataGrid.Columns[2].MappingName).ToString();


            if (e.RowColumnIndex.ColumnIndex == 5)
            {
                elemProcents.ItemsSource = mainPageModel.getElemWearRates(cellValue);
            }
            else if (e.RowColumnIndex.ColumnIndex == 3)
            {
                PopupNavigation.Instance.PushAsync(new MultiSelectPage(new ObservableCollection <elemDescription>(mainPageModel.elemDescriptions.Where(el => el.elemName.name == cellValue).ToList()), rowindex, columnindex, dataGrid));
            }
        }