CSLA .NET

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

Forum has moved

New location: CSLA .NET forum


CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • Browse Site by Tags

    Showing related tags and posts across the entire site.
    • ViewModelBase performance, solution

      I'm experiencing some terrible performance with ViewModelBase (WPF) class. If changing Model properties or adding items to list, profiler is returning results that are hundreds of times slower then expected. I figured out that such performance is because of events attached in HookChangedEvents method...
      Posted to CSLA .NET discussion by mesh on Mon, Jun 17 2013
    • CSLA 4.5.10 - Xaml.ViewModelBase under Silverlight

      Hi Rocky Since moving over from 4.3 to 4.5 I'm experiencing a strange issue with the Xaml ViewModelBase when calling BeginSave() and the DataPortal throws an exception. BeginSave works just fine when there is no exception on the server side data portal, however what I'm observing is that if the...
      Posted to CSLA .NET discussion by Jaans on Wed, Jan 16 2013
    • Re: MVVM and Child Objects

      I use MVVM when editing a child object from a list. My view model follows the same patterns as Rocky has suggested inheriting the Csla.Xaml.ViewModel class. I pass in both the child object and the root object into the constructor. Within the view model constructor I do a BeginEdit on the root and set...
      Posted to CSLA .NET discussion by Killian35 on Wed, Jun 27 2012
    • Re: IsBusy set to false after OnRefreshed in view model

      Yes, Rocky. I am starting another asynchronous operation in OnRefreshed overload method to fetch look up data and other general setting. So I am setting IsBusy property true in OnRefreshed method. But it set false when OnRefreshed call completed. Is there any way to set Isbusy property? Thanks.
      Posted to CSLA .NET discussion by Marsh on Sat, May 19 2012
    • IsBusy set to false after OnRefreshed in view model

      Hi, I am using silverlight CSLA ViewModel. I am facing issue when set IsBusy property after OnRefreshed. I have set IsBusy property to true in override OnRefreshed method. It does not set. Then i have keep log _PropertyChanged event and i found that after completion of override OnRefreshed method, IsBusy...
      Posted to CSLA .NET discussion by Marsh on Fri, May 18 2012
    • ProjectEdit / CollectionViewSource question

      In the ProjectEdit user control in the new ProjectTracker example, the CollectionViewSource named "projectGetterViewSource" has no source defined for it. On page 102 of the e-book, it states that "the first resource will contain the root viewmodel for the view." Here is the xaml line...
      Posted to CSLA .NET discussion by Tim on Fri, Nov 4 2011
    • Re: TriggerAction w/ TargetControl of a ViewModel

      There are two reasons for being a DependencyObject (rather than a simple class implementing INotifyPropertyChanged): You can write code in the viewmodel to detect if you are in design mode You can bind to the Model property to create cascading (parent-child) viewmodels The second one is the primary driver...
      Posted to CSLA .NET discussion by RockfordLhotka on Thu, Oct 6 2011
    • ClientContext cleared during simultaneous ViewModel refresh

      Hi, I am using CSLA 4.1.0 for a Silverlight app. I recently experienced a problem where my ClientContext was being randomly cleared. After a lot of digging I have traced the source of the problem (I hope). It is because I am refreshing several ViewModel objects simultaneously. I am using the MVVM pattern...
      Posted to CSLA .NET discussion by richardp on Wed, Sep 21 2011
    • The Remote Server returned an error: NotFound ; Silverlight ; ViewModel ; CSLA.net 4.1

      when we do a BeginRefresh("StaticFindMethod") it always work mulit times but not the BeginRefresh("StaticUpdateMethod") public static void StaticUpdateMethod(ClosingRegisterER model, EventHandler<DataPortalResult<ClosingRegisterER>> callback) { var dp = new DataPortal<ClosingRegisterER>...
      Posted to CSLA .NET discussion by JJ on Wed, Aug 31 2011
    • Use ViewModel<T> Save Method, the Model Rebind.

      If invoke the method save of ViewMode<T>, the UI will rebind to the BO. if the T is BLB , i don't want the user to find the new or just edited row after click the save button. but i override the method Save as below: public override void Save(object sender, ExecuteEventArgs e) { Model.ApplyEdit...
      Posted to CSLA .NET discussion by simon on Tue, Aug 30 2011
    • Re: MVVM ViewModel and String code smell

      Yeah, with the sync methods we were able to accept a lambda expression, and so the factory method can be passed as a parameter. The async factory methods are complex, because they require a callback parameter that includes a double-indirected generic type. If I remember correctly, you can still use a...
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Aug 16 2011
    • How to get additional standalone property from viewmodel or model?

      I have a textbox in a view with MaskBehavior <Usercontrol > <TextBox Grid.Row="1" Grid.Column="1" Margin="3" Height=" 23" Text="{Binding Model.No,UpdateSourceTrigger=PropertyChanged}" inf:MaskBehavior.Mask="{Binding Path= NameMask}"...
      Posted to CSLA .NET discussion by simon on Mon, Aug 1 2011
    • Telerik RadMenu with Csla Navigation Provider

      Has anyone used the Telerik RadMenu Control with the Csla Navigation Provider? And if so, what did you do to get things working? I have used the RadButton as follows: < telerik : RadButton x : Name ="countyRadButton" Content ="Counties" csla : NavigatorProvider.ControlTypeName...
      Posted to CSLA .NET discussion by CyclingFoodmanPA on Tue, Mar 1 2011
    • Detail Viewmodel for BusinessListBase<OrderList, Order>

      I read Rockys blog entry CSLA .NET 3.8 Beta 2 MVVM support at least a dozen times. Good stuff, and I managed to get the basics working. this is my first try with basic MVVM using the CLSA Viewmodel and TriggerAction. I have a root object Orders, that is a list of children, Orders. BusinessListBase <...
      Posted to CSLA .NET discussion by Imker on Mon, Feb 28 2011
    • Re: Edit level mismatch in AcceptChanges CSLA 4.1 Silverlight

      Do you have a viewmodel for any child objects? ViewModelBase, by default, manages the Model object's lifetime - which means it calls BeginEdit automatically. It wouldn't call ApplyEdit automatically for a child object though. Usually what you do for a viewmodel that represents a child object...
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, Feb 4 2011
    • Csla.Xaml.ViewModel<T> - Overloads inconsistently marked as virtual

      Hi all We have our own ViewModelCore base class that inherits from Csla.Xaml.ViewModel<T> and overrides and adds a couple of behaviours that we need. A specific example is the BeginRefresh overloads on Csla.Xaml.ViewModel<T>. We started doing this since 3.8.4, and CSLA 4 added a valuable...
      Posted to CSLA .NET discussion by Jaans on Sun, Jan 30 2011
    • Re: DynamicListBase and WPF lost exception

      That is possible. The ViewModelBase class was designed around BB and BLB, with support for ROB and ROLB. DLB is a very different construct, with very different behaviors. And at the time we wrote this code Microsoft didn't have a WPF datagrid control that actually worked with any rich collection...
      Posted to CSLA .NET discussion by RockfordLhotka on Thu, Jan 27 2011
    • Re: DynamicListBase and WPF lost exception

      I see. I think this is a mismatch between ViewModelBase and DynamicListBase. Not necessarily a bug either, just a side-effect of the way things work. DLB doesn't ever get saved itself, and the object saving infrastructure in VMB is all around saving the root object. So the viewmodel's OnSaved...
      Posted to CSLA .NET discussion by RockfordLhotka on Wed, Jan 26 2011
    • Re: Silverlight BeginSave()

      The ViewModel<T> class has a Save method. This invokes BeginSave in Silverlight and WP7. Since the samples you mention are using MVVM and ViewModel<T>, they call Save on the viewmodel (using TriggerAction), which calls BeginSave on the business object and automatically handles the async callback...
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, Jan 14 2011
    • CSLA.net 4 CanSave CanCancel error/problem Xaml ViewModel

      Normal 0 false false false EN-ZA X-NONE X-NONE MicrosoftInternetExplorer4 The CanSave & CanCancel work when we do one/two actions(insert, move, drag, update, delete) of parent and child objects in a xaml form, but more than one/two actions the CanSave and CanCancel do not update or do not work, we...
      Posted to CSLA .NET discussion by JJ on Wed, Jan 5 2011
    Page 1 of 2 (40 items) 1 2 Next >

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