SilverlightShow: Building a Silverlight Line-Of-Business Application – Part 2 Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples en-us SilverlightShow.net estoychev@completit.com (Emil Stoychev) Argotic Syndication Framework, http://www.codeplex.com/Argotic http://www.rssboard.org/rss-specification RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment1539 I AM FROM INDIA! GIVE ME ALL YOUR CODES AND ANSWERS! ( BangaloreBandit) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Tue, 05 May 2009 00:28:52 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment918 <p>Hi Andrus</p> <p>Row details are not a form of grouping, they are just for showing additional detail about a record.  Currently the DevExpress DataGrid is the best solution for the problem I'm detailing and am very happy with it.  The standard DataGrid as described in this article is missing a number of features I require and is not suitable for the scenario I'm describing.</p> <p>Chris</p> ( chrisanderson) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Fri, 16 Jan 2009 00:33:33 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment917 <p>Datagrid RowsDetail element can be used to implement grouping: <a href="http://www.silverlightshow.net/items/DataGrid-and-row-details-in-Silverlight-2.aspx">http://www.silverlightshow.net/items/DataGrid-and-row-details-in-Silverlight-2.aspx</a></p> <p>There is also code which allows to use wheel in DataGrid. So maybe it is worth to update to DataGrid.</p> ( Andrus) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Thu, 15 Jan 2009 10:30:46 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment913 <p>Hi Andrus</p> <p>I haven't seen the exception you refer to, but I will be updating to the most recent grid in the near future.</p> <p>Chris</p> ( chrisanderson) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Thu, 15 Jan 2009 00:48:38 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment910 <p>Arve there any plans to use DataGrid December update or latest AgDataGrid? Currently sample uses older AgDataGrid which causes NullReferenceException on grouping.</p> ( Andrus) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Wed, 14 Jan 2009 11:22:43 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment907 <p>Hi Andrus</p> <p>I haven't tried it so sorry I can't help you.  I have focused on the pagination solution.  If you want help on the DataGrid I suggest reading the DevExpress documentation and forums and they have the source code available for download.</p> <p>Chris</p> ( chrisanderson) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Wed, 14 Jan 2009 00:58:12 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment904 <p>Swiss team and Manish Dalal samples are totally different. Manish uses async grid fill.This is not reasonable since it tries to load all data to memory.</p> <p>Swiss MSDN team sample uses also pagination like in your sample. However it uses scrollbar instead of paging buttons. This is much better. Grid never contains more than one page of data. So I asked to use swiss MSDN team sample as this looks more natural. Unfortunately I havent figured out how to run this sample with RTM. If works only with SL 2 beta.</p> <p>Another issue: I added a lot of columns to AW Product grid. Grid tries to show all those columns in screen and thus column become very narrow.</p> <p>How to force horizontal scrollbar to appear in grid when there is more columns than fits to screen ?</p> <p> </p> ( Andrus) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Tue, 13 Jan 2009 16:14:41 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment901 <p>Hi Andrus</p> <p>As described in my article you could do it this way (with a link to Manish Dalal's example), but I chose to use pagination for the framework.</p> <p>Chris</p> ( chrisanderson) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Mon, 12 Jan 2009 23:05:54 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment899 <p><a href="http://blogs.msdn.com/swiss_dpe_team/archive/2008/05/09/scrolling-through-large-resultset-with-silverlight-2-beta1-and-linq-to-sql.aspx">http://blogs.msdn.com/swiss_dpe_team/archive/2008/05/09/scrolling-through-large-resultset-with-silverlight-2-beta1-and-linq-to-sql.aspx</a></p> <p>contains paging method (code+video) which allows to scroll in large resultset in grid without ugly pagination buttons. How to add this scrollbar to this framework grid ?</p> ( Andrus) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Mon, 12 Jan 2009 14:58:54 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment765 <p>Hi Marc</p> <p>The article was updated with my classes under the Events heading so you can match yours against mine.  Hope this helps!</p> <p>Chris</p> ( chrisanderson) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Thu, 27 Nov 2008 01:46:51 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment764 <p>Hi  Chris,</p> <p>As C# is not my first language...here is what I ended up using and it appears to work.</p> <p>// Event.cs</p> <p>public class SortingEventArgs : EventArgs<br /> {<br />   private ReadOnlyCollection<AgDataGridColumn> _sortedColumns;<br />   public SortingEventArgs(ReadOnlyCollection<AgDataGridColumn> sortedColumns)<br />   {<br />     this._sortedColumns = sortedColumns;<br />   }<br /> }</p> <p>public class GroupingEventArgs : EventArgs<br /> {<br />   private ReadOnlyCollection<AgDataGridColumn> _groupedColumns;<br />   public GroupingEventArgs(ReadOnlyCollection<AgDataGridColumn> groupedColumns)<br />   {<br />     this._groupedColumns = groupedColumns;<br />   }<br /> }<br />  </p> <p>Thanks.</p> <p>Marc.</p> ( Marc Gervais) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Wed, 26 Nov 2008 13:22:08 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment742 <p>It doesn't look like the code formatted well in the comment - hopefully it's enough to confirm your code though - they are fairly simple args classes and don't do anything special.  When the article is updated the code should appear correctly.</p> <p>Chris</p> ( chrisanderson) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Sat, 22 Nov 2008 20:21:34 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment741 <p>Hi Marc</p> <p>Sorry for the omission, here is the code:</p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2"> <p>public</p> </font></font></p> <p><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">class</font></font><font size="2"> </font><font color="#2b91af" size="2"><font color="#2b91af" size="2">GroupingEventArgs</font></font><font size="2"> : </font><font color="#2b91af" size="2"><font color="#2b91af" size="2">EventArgs</font></font><font size="2"> <p>{</p> <p> </p> <p> </p> <p>{</p> <p>GroupedColumns = groupedColumns;</p> <p>}</p> <p>}</p> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">public</font></font><font size="2"> </font><font color="#2b91af" size="2"><font color="#2b91af" size="2">ReadOnlyCollection</font></font><font size="2"><</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">AgDataGridColumn</font></font><font size="2">> GroupedColumns { </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">get</font></font><font size="2">; </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">set</font></font><font size="2">; }</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">public</font></font><font size="2"> GroupingEventArgs(</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">ReadOnlyCollection</font></font><font size="2"><</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">AgDataGridColumn</font></font><font size="2">> groupedColumns)</font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> <p>public</p> </font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">class</font></font><font size="2"> </font><font color="#2b91af" size="2"><font color="#2b91af" size="2">SortingEventArgs</font></font><font size="2"> : </font><font color="#2b91af" size="2"><font color="#2b91af" size="2">EventArgs</font></font><font size="2"> <p>{</p> <p> </p> <p> </p> <p>{</p> <p>SortedColumns = sortedColumns;</p> <p>}</p> <p>}</p> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">public</font></font><font size="2"> </font><font color="#2b91af" size="2"><font color="#2b91af" size="2">ReadOnlyCollection</font></font><font size="2"><</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">AgDataGridColumn</font></font><font size="2">> SortedColumns { </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">get</font></font><font size="2">; </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">set</font></font><font size="2">; }</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">public</font></font><font size="2"> SortingEventArgs(</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">ReadOnlyCollection</font></font><font size="2"><</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">AgDataGridColumn</font></font><font size="2">> sortedColumns)</font> <p>I'll update the article with these functions.</p> <p>Chris</p> </p> ( chrisanderson) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Sat, 22 Nov 2008 20:19:28 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment733 <p>Hi Chris,</p> <p>I understand you did not provide the source code, but you also neglected to provide the details of the additional EventArgs-related classes (GroupingEventArgs & SortingEventArgs). I have interpretted what I believe these classes should look like, but was hoping to get confirmation from you.</p> <p>Marc.</p> ( Marc Gervais) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Thu, 20 Nov 2008 11:31:54 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment729 <p>Hi Marc</p> <p>I didn't provide my altered version of the AgDataGrid because of the source code redistribution licensing rules of this control, but I did explain why and detail my changes in the article under the section AgDataGrid Modifications.  Let me know if there is anything else you need.</p> <p>Chris</p> ( chrisanderson) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Wed, 19 Nov 2008 23:08:33 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment717 <p>Chris,</p> <p>I may be mistaken, however, I believe you neglected to provide all of the added code for the modified AgDataGrid...it looks as though you added a pair of EventArgs classes (GroupingEventArgs & SortingEventArgs) but did not provide the code for them.</p> <p>Thanks.</p> <p>Marc.</p> ( Marc Gervais) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Tue, 18 Nov 2008 23:07:27 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment687 <p>Chris, I think the binding limitation you mentioned may be resolved like this: </p> <div> <div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: rgb(244, 244, 244);"> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: rgb(255, 0, 0);">Binding</span><span style="color: rgb(0, 0, 255);">="{Binding RowValue.ProductNumber}" <br /></span></pre> </div> That may have not been available at the time you published, but AgDataGrid supports it now.  See: <a href="http://community.devexpress.com/forums/p/70585/240549.aspx">http://community.devexpress.com/forums/p/70585/240549.aspx</a></div> ( Robert Claypool) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Fri, 14 Nov 2008 23:37:37 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment652 <p>Wow cool demo!</p> ( Parag) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Tue, 11 Nov 2008 01:29:45 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment616 <p>Thank you, I was waiting for it for long time.</p> ( ZákányiBalázs) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Wed, 05 Nov 2008 05:36:28 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment607 <p>I agree with this last comment. what I'm asking is:</p> <p>1. Guides on the details of your framework.</p> <p>2. How  did you use event route,  who notify who, and why. </p> <p>While you're scticked to the LOB framework topic.</p> <p>Thanks again.</p> ( Rachida Dukes) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Mon, 03 Nov 2008 11:21:47 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment606 <p>I love your article series on Silverlight LOB App development, thank you Chris!</p> <p>Maybe, as you have finished with these high-level (or bird-view) articles, you may write some guides on the details of your framework. I mean describing your recommended event route, so who notify who, and why. Other low level practices (you skipped in the articles) you collected during creating these series, and so on, but strictly scticked to the LOB framework topic.</p> <p>Thank you again man, you're #1.</p> ( Gabor) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Mon, 03 Nov 2008 04:38:09 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment605 <p> Yes, I'm new to silverlight since it was released last year (version 1.0), Most of us are new to silverlight, since this technology is quite new.</p> <p>I did every single video or lab tutorial from silverlight.net, and I completed all of them, they're quite easy. I read almost daily silverlight blogs like this one and Jessy Liberty and Tim Huer blogs and Scott Gutrie blogs, but all theirs topics are easy and shot no silverlight LOB.</p> <p> then I started to look for advanced topics to build a real LOB in silverlight, your sample was the perfect solution for what I'm looking for, it looks like it's better to wait for some silverlight books to be published where I can find more details about silverlight LOB. </p> <p>Thanks for trying to help.</p> <p>Rachida</p> ( Rachida Dukes) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Sat, 01 Nov 2008 08:04:13 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment604 <p>Hi Rachida</p> <p>If you're new to Silverlight development my recommendation is to start at the beginning rather than trying to tackle an application of this size.  Generally hands-on-labs are the best place to start, and you can find some good ones here: <a href="http://silverlight.net/Learn/">http://silverlight.net/Learn/</a></p> <p>Hope this helps...</p> <p>Chris</p> ( chrisanderson) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Sat, 01 Nov 2008 04:32:11 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment603 <p> Thanks Chris for takig the time to try to help me. I'm still trying to undestand the part 1, Is it possible to send me the part 1 code without the navigation codes, and no data update codes just the login screen and the layouts to get started? If  it's possible you can send it to my email: rachidadukes@live.com.</p> <p>Thanks,</p> <p>Rachida </p> <p> </p> ( Rachida Dukes) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Fri, 31 Oct 2008 17:48:38 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment601 <p>Hi Rachida</p> <p>What particular aspects in this article were you having trouble with?  There are a number of intermediate/advanced topics covered (such as lambda expressions and extension methods) but going into these in depth would take me away from my primary objective of showing how a LOB application in Silverlight can be built.  There is a lot to cover in this series so I was taking a relatively mid/high level approach so it didn't become too much effort to wade through and read.  Based upon the areas you would like more information on perhaps I can provide you with some resources to investigate further?  As a question to both you and everyone reading this, how deep would you like me to go in to how the application works and was developed?  Also any feedback on what you would like me to cover in this series is welcome too.</p> <p>Thanks for your comments and feedback and I welcome any other feedback anyone has as like a good developer I always seek to improve :).</p> <p>Chris</p> ( chrisanderson) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Thu, 30 Oct 2008 21:14:36 +0300 RE: Building a Silverlight Line-Of-Business Application – Part 2 http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx#comment599 <p>Hi Christ!</p> <p>I really like your LOB demo, but to follow up with you and understands yours step, I need more details. Is it possible to break down to smaller steps or parts?</p> <p>Thanks,</p> <p>Rachida</p> ( Rachida Dukes) http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx Thu, 30 Oct 2008 10:40:43 +0300