Silverlight 2 RTW (with CSLALight), ready for production?

Silverlight 2 RTW (with CSLALight), ready for production?

Old forum URL: forums.lhotka.net/forums/t/5940.aspx


rogercito posted on Thursday, December 04, 2008

Hi,

I've been playing a bit with SL/CSLALight (and EF) combo and wanted to ask if someone here has implemented this combo for production. I'm evaluating using this combo in a near future project and i know there are some issues with the SL datagrid among others.

I would like to ask about feedback here (SL reliability or overall project experience)Smile [:)].

Roger

rogercito replied on Wednesday, December 10, 2008

Someone sharing experiences in SL 2 with business objects?

jgamba replied on Wednesday, December 10, 2008

Hi

About SilverLight, I think that in version 2 is pretty good with several frameworks or projects as CSLA.NET and Silverlight ToolKit among others, applications can be made fairly stable. You can check out the view of Rocky

http://www.lhotka.net/weblog/IsSilverlightReadyForBusinessApps.aspx

As for EF, I think still lack a lot, We should wait a while. For now I prefer to rely on NHibernate who has extensive experience and is very stable.

Jorge

triplea replied on Thursday, December 11, 2008

I got discouraged by the disappearing datagrid row bug (Silverlight - nothing to do with CSLA). I have seen no signs of it being fixed but I have not looked for a while.

http://forums.lhotka.net/forums/thread/27889.aspx
http://silverlight.net/forums/p/41538/121028.aspx#121028

Otherwise it looks and works quite nice though there is quite a bit of learning to do.

sergeyb replied on Thursday, December 11, 2008

You can try to use agDataGrid from DevExpress.  It is free (at least now) and appears to work with CSLA lists just fine.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: triplea [mailto:cslanet@lhotka.net]
Sent: Thursday, December 11, 2008 8:09 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] Silverlight 2 RTW (with CSLALight), ready for production?

 

I got discouraged by the disappearing datagrid row bug (Silverlight - nothing to do with CSLA). I have seen no signs of it being fixed but I have not looked for a while.

http://forums.lhotka.net/forums/thread/27889.aspx
http://silverlight.net/forums/p/41538/121028.aspx#121028

Otherwise it looks and works quite nice though there is quite a bit of learning to do.



rogercito replied on Thursday, December 11, 2008

Thank you everyone for the kind responses.
I'm also very disappointed by the SL disappearing row case, but the agGrid so could be good news.
(I had tried the C1 and new Telerk new prebeta grid with no success but im not sure I did it right )

Sergey, would you paste a little code, for instance, the Rolodex "ContactPhones" grid (which easily fails with the ms grid in this regard) using the agGrid code? I tried but couldn't make csla:PropertyStatus work, so to show Csla validation in the grid.

Thanks in advance.

P.S. I almost finish the C# 2005 BO book for the basics(will wait for the 08 book to be hardcopied), and now doing some csla 3.6 test samples, I must say that i'm totally sold with the CslaLight art piece.
Congratulations to the team.

sergeyb replied on Thursday, December 11, 2008

I will add this to my “to-do list” 8-)

 I am a bit swamped with my current project, but will try to find time to come up with an example.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

Magenic ®

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: rogercito [mailto:cslanet@lhotka.net]
Sent: Thursday, December 11, 2008 11:03 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: Silverlight 2 RTW (with CSLALight), ready for production?

 

Thank you everyone for the kind responses.
I'm also very disappointed by the SL Normal 0 21 false false false ES-MX X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabla normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} disappearing row case, but the agGrid so could be a good news.
(I had tried the C1 and new Telerk new prebeta grid with no success but im not sure I did it right )

Sergey, would you paste a little code, for instance, the Rolodex "ContactPhones" grid (which easily fails with the ms grid in this regard) using the agGrid code? I tried but couldn't make csla:PropertyStatus work, so to show Csla validation in the grid.

Thanks in advance.

P.S. I almost finish the C# 2005 BO book for the basics(will wait for the 08 book to be hardcopied), and now doing some csla 3.6 test samples, I must say that i'm totally sold with the CslaLight art piece.
Congratulations to the team.


sergeyb replied on Saturday, December 13, 2008

I have only spent a limited amount of time on this.  Here is how you can configure AgDataGrid to use PropertyStatus

I used Rolodex and replaces phones grid with AgDataGrid

 

 

Code behind:

 

this.DevExpressGrid.DataSource = ((CompanyContact)this.Contacts.SelectedItem).ContactPhones;

 

 

XAML

 

<agGrid:AgDataGrid x:Name="DevExpressGrid" Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="3" Margin="6,6,6,6" AutoGenerateColumns="False" >

      <agGrid:AgDataGrid.Columns>

        <agGrid:AgDataGridColumn FieldName="PhoneNumber" Width="200">

          <agGrid:AgDataGridColumn.CellDisplayTemplate>

            <DataTemplate>

              <Grid>

                <Grid.ColumnDefinitions>

                  <ColumnDefinition Width="*"/>

                  <ColumnDefinition Width="Auto"/>

                </Grid.ColumnDefinitions>

                <TextBox x:Name="PhoneBox" Text="{Binding RowValue.PhoneNumber, Mode=TwoWay}"/>

                <csla:PropertyStatus Property="PhoneNumber" RelativeTargetName="PhoneBox" Grid.Column="1" Source="{Binding RowValue}"/>

              </Grid>

            </DataTemplate>

          </agGrid:AgDataGridColumn.CellDisplayTemplate>

          <agGrid:AgDataGridColumn.CellEditingTemplate>

            <DataTemplate>

              <Grid>

                <Grid.ColumnDefinitions>

                  <ColumnDefinition Width="*"/>

                  <ColumnDefinition Width="Auto"/>

                </Grid.ColumnDefinitions>

                <TextBox x:Name="PhoneBox" Text="{Binding RowValue.PhoneNumber, Mode=TwoWay}"/>

                <csla:PropertyStatus Property="PhoneNumber" RelativeTargetName="PhoneBox" Grid.Column="1" Source="{Binding RowValue}"/>

              </Grid>

            </DataTemplate>

          </agGrid:AgDataGridColumn.CellEditingTemplate>

        </agGrid:AgDataGridColumn>

       

        <agGrid:AgDataGridColumn FieldName="FaxNumber" Width="200">

          <agGrid:AgDataGridColumn.CellDisplayTemplate>

            <DataTemplate>

              <Grid>

                <Grid.ColumnDefinitions>

                  <ColumnDefinition Width="*"/>

                  <ColumnDefinition Width="Auto"/>

                </Grid.ColumnDefinitions>

                <TextBox x:Name="FaxBox" Text="{Binding RowValue.FaxNumber, Mode=TwoWay}"/>

                <csla:PropertyStatus Property="FaxNumber" RelativeTargetName="FaxBox" Grid.Column="1" Source="{Binding RowValue}"/>

              </Grid>

            </DataTemplate>

          </agGrid:AgDataGridColumn.CellDisplayTemplate>

          <agGrid:AgDataGridColumn.CellEditingTemplate>

            <DataTemplate>

              <Grid>

                <Grid.ColumnDefinitions>

                  <ColumnDefinition Width="*"/>

                  <ColumnDefinition Width="Auto"/>

                </Grid.ColumnDefinitions>

                <TextBox x:Name="FaxBox" Text="{Binding RowValue.FaxNumber, Mode=TwoWay}"/>

                <csla:PropertyStatus Property="FaxNumber" RelativeTargetName="FaxBox" Grid.Column="1" Source="{Binding RowValue}"/>

              </Grid>

            </DataTemplate>

          </agGrid:AgDataGridColumn.CellEditingTemplate>

        </agGrid:AgDataGridColumn>

      </agGrid:AgDataGrid.Columns>

    </agGrid:AgDataGrid>

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

Magenic ®

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: rogercito [mailto:cslanet@lhotka.net]
Sent: Thursday, December 11, 2008 11:03 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: Silverlight 2 RTW (with CSLALight), ready for production?

 

Thank you everyone for the kind responses.
I'm also very disappointed by the SL Normal 0 21 false false false ES-MX X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabla normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} disappearing row case, but the agGrid so could be a good news.
(I had tried the C1 and new Telerk new prebeta grid with no success but im not sure I did it right )

Sergey, would you paste a little code, for instance, the Rolodex "ContactPhones" grid (which easily fails with the ms grid in this regard) using the agGrid code? I tried but couldn't make csla:PropertyStatus work, so to show Csla validation in the grid.

Thanks in advance.

P.S. I almost finish the C# 2005 BO book for the basics(will wait for the 08 book to be hardcopied), and now doing some csla 3.6 test samples, I must say that i'm totally sold with the CslaLight art piece.
Congratulations to the team.


rogercito replied on Monday, December 15, 2008

It worked great!

Even though 1  <csla:ValidatedDataGridTextColumn> line equals 26 lines in Ag, this is pretty much a "green light" for me to start prototyping a Silverlight LOB app, at least while ms deliver the stable datagrid version.

In case Ms keeps delaying this, perhaps will be time to think in a way to do a AgValidatedDataGridTextColumn and the like.

Thank you very much for your help.


rogercito replied on Friday, December 19, 2008

Just wanted to share with the community that the Ms datagrid patch has been released. I tried it with the rolodex sample and seems to work fine. Be warned that the installation instructions are not very friendly.

This is good news indeed Smile [:)]

Roger

thunt replied on Wednesday, January 14, 2009

I have updated my solution with references to the new Dec. Datagrid patch and now I get build errors saying

csla:ValidatedDataGridTextColumn was not found...missing assembly reference, etc.

Has anyone else had problems using CSLA 3.6 with Dec. datagrid?

RockfordLhotka replied on Wednesday, January 14, 2009

Did you rebuild Csla.dll against the new datagrid assembly?

Copyright (c) Marimer LLC