Sort of, but I don't understand the code with the longaction and task manager. The problem is I call 2 ajax methods, 1 to print the current selection in the grid and 1 to print the complete list accordingly to the button that's pressed.
Function to print complete list
This function passes all the cards to my data provider which returns a boolean if all rows where inserted successfully. What I would like to do now, is show a progress bar and insert the cards one by one, updating the progress bar if this was successful.
...
oCards = clsDataProvider.GetCards(sDirection, oFilters, oQuickSearch, sSort, sView)
bBatchCardsPrinted = clsDataProvider.InsertDummyCards(oCards, sView)
...
Function to print current selection
This function submits the data in my grid to print the current selection. In my submit data function I use the same function as above (bBatchCardsPrinted = clsDataProvider.InsertDummyCards(oCards, sView).
Me.oToolbarButtonBatchPrintCards.AddScript("{0}.submitData(false);", Me.oGridPanelCards.ClientID)
What I would like to do is show the progress bar when one of the two functions is called, pass the according oCards array list to the update progress function. Can you help me with this?