C# Syntax Help
-
Wednesday, January 12, 2011 3:11 PM
Can someone help to add "PendingOperation.Add(op)" to the following:
private LoadOperation<UnitOfMeasure> LoadUnitOfMeasures() { this.IsGridEnabled = false; return this._Context.Load( this._Context.GetAllActiveUOMsQuery().SortPageAndCount(this._view)); }
The original code was like the following:
var query = _Context.GetActiveProductsByCategoryQuery(SelectedCategory.CatId) .Where(p => p.ProdDesc.Contains(ProdDescFilter)); LoadOperation op = _Context.Load(query, GetProductsCallback, null); PendingOperations.Add(op);
All Replies
-
Wednesday, January 12, 2011 3:14 PM
private LoadOperation<UnitOfMeasure> LoadUnitOfMeasures()
{
LoadOperation<UnitOfMeasure> op = this._Context.Load(
this._Context.GetAllActiveUOMsQuery().SortPageAndCount(this._view));PendingOperations.Add(op);
return op;
} -
Wednesday, January 12, 2011 3:24 PM
Thanks again Sally. The syntax issue is gone but I don't see the busy indicator coming up. How do I know if it is just too little records in the table ot it's not working?private LoadOperation<UnitOfMeasure> LoadUnitOfMeasures()
{
LoadOperation<UnitOfMeasure> op = this._Context.Load(
this._Context.GetAllActiveUOMsQuery().SortPageAndCount(this._view));PendingOperations.Add(op);
return op;
} -
Wednesday, January 12, 2011 3:29 PM
If you use the Sample solution provided by Kyle, you should notice he didn't use a BusyIndicator. You can add one to the page then bind it to the IsBusy property of the ViewModel.
-
Wednesday, January 12, 2011 3:47 PM
My sincere apologies. Overlooked because of getting too exciting for making a bit progress. Sorry for wasting your time.If you use the Sample solution provided by Kyle, you should notice he didn't use a BusyIndicator. You can add one to the page then bind it to the IsBusy property of the ViewModel.

