CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Silverlight Async Rules & BXF

rated by 0 users
Not Answered This post has 0 verified answers | 1 Reply | 1 Follower

Top 50 Contributor
190 Posts
MadGerbil posted on Fri, Jan 25 2013 10:51 AM

I've async rules working very well and I've been enjoying some of the nice features of the BXF framework.

I'm curious has to recommendations for a busy indicator for when an async rule is running.  As it stands now I have the BXF handling a locking of the screen and presentation of status messages when retrieving records or saving records.  This is done using Bxf.Shell.Instance.ShowStatus

I'm a bit puzzled on how to approach this with an async business rule.

Maybe changing the status on the screen while an async rule is running sort of defeats the purpose of having async rules?   How have others handled this?

All Replies

Top 10 Contributor
9,270 Posts

I typically use a busy indicator on a per-field basis to show that an async rule is running.

You don't want to block the whole UI because an async rule is running for one property, but you probably do want the user to know that something is happening related to that property.

The PropertyInfo control (or PropertyStatus) provides that per-property busy information.

Also, the IsSavable property on the object automatically goes to false as long as there are any outstanding async rules, so that part is typically handled through binding as well.

Rocky

Page 1 of 1 (2 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems