예제 #1
0
        public async Task OnRowRemoved(ItemAttributeLookupView modelItem)
        {
            await InvokeAsync(StateHasChanged);

            await _DataGrid.Reload();  // reload the list so the latest item is displayed - not working here I think because of the awaits so move to confirm_clicks

            await InvokeAsync(StateHasChanged);
        }
예제 #2
0
        async Task <int> UpdateItemAttributeLookup(ItemAttributeLookupView updatedCatItemView)
        {
            int _result = await _AttributeWooLinkedViewRepository.UpdateItemAsync(updatedCatItemView);

            await _DataGrid.Reload();

            return(_result);
        }
예제 #3
0
        void OnRowRemoving(CancellableRowChange <ItemAttributeLookupView> modelItem)
        {
            // set the Selected Item Attribute for use later
            SelectedItemAttributeLookup = modelItem.Item;
            var deleteItem = modelItem;

            _GridSettings.DeleteConfirmation.ShowModal("Delete confirmation", $"Are you sure you want to delete: {deleteItem.Item.AttributeName}?", SelectedItemAttributeLookup.HasWooAttributeMap);  //,"Delete","Cancel"); - passed in on init
        }
예제 #4
0
 void OnItemAttributeLookupNewItemDefaultSetter(ItemAttributeLookupView newItem) //ItemAttributeLookup pNewCatItem)
 {
     newItem = _AttributeWooLinkedViewRepository.NewItemDefaultSetter(newItem);
 }