Class GridInvokeMethodResult
Result of an grid view function call
Inheritance
Inherited Members
Namespace: Simplic.Framework.DBUI
Assembly: Simplic.Framework.DBUI.dll
Syntax
public class GridInvokeMethodResult
Properties
| Improve this Doc View SourceRefreshGrid
Gets or sets whether to refresh the underlying grid
Declaration
public bool RefreshGrid { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Tasks
Gets or sets a list of tasks to complete async
Declaration
public IList<Task> Tasks { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<System.Threading.Tasks.Task> |
Window
Gets or sets an instance of a ribbon window
Declaration
public DefaultRibbonWindow Window { get; set; }
Property Value
Type | Description |
---|---|
DefaultRibbonWindow |
Methods
| Improve this Doc View SourceNoGridRefresh()
Gets an inoke result for not refreshing the grid immediately
Declaration
public static GridInvokeMethodResult NoGridRefresh()
Returns
Type | Description |
---|---|
GridInvokeMethodResult | GridInvokeMethodResult/RefreshGrid = false |
ProcessAsync(Boolean, IList<Task>)
Gets an invoke result that requries async handling
Declaration
public static GridInvokeMethodResult ProcessAsync(bool refreshGrid, IList<Task> tasks)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | refreshGrid | If set to true, the grid will be refreshed after task handling |
System.Collections.Generic.IList<System.Threading.Tasks.Task> | tasks | List of tasks to process |
Returns
Type | Description |
---|---|
GridInvokeMethodResult | Grid invoke result |
RefreshGridImmediately()
Gets an invoke result for refreshing the grid
Declaration
public static GridInvokeMethodResult RefreshGridImmediately()
Returns
Type | Description |
---|---|
GridInvokeMethodResult | GridInvokeMethodResult/RefreshGrid = true |
SetIsIndeterminate(String)
Set progress as indeterminate
Declaration
public void SetIsIndeterminate(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Display text |
SetProgress(Int32, Int32, String)
Set async processing status
Declaration
public void SetProgress(int objectsToProcess, int processedObjects, string text)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | objectsToProcess | Amount of objects to process |
System.Int32 | processedObjects | Process objects |
System.String | text | Custom display text |
WindowClosedHint(DefaultRibbonWindow)
Gets an invoke result that shows a hint in the grid view if the window was closed
Declaration
public static GridInvokeMethodResult WindowClosedHint(DefaultRibbonWindow window)
Parameters
Type | Name | Description |
---|---|---|
DefaultRibbonWindow | window | Window closed |
Returns
Type | Description |
---|---|
GridInvokeMethodResult | GridInvokeMethodResult/window instance passed |