﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - UX Grid failing when setting AutoGenerateColumns=True</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UX-Grid-failing-when-setting-AutoGenerateColumnsTrue/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>UX Grid failing when setting AutoGenerateColumns=True</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UX-Grid-failing-when-setting-AutoGenerateColumnsTrue/</link><pubDate>Wed, 12 Oct 2011 22:26:04 GMT</pubDate><dc:creator>yudi</dc:creator><category>UX Grid</category><category>Silvelright</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Glad to hear the good news.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Should you need further assistance or run into any problems regarding our controls, please feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>UX Grid failing when setting AutoGenerateColumns=True</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UX-Grid-failing-when-setting-AutoGenerateColumnsTrue/</link><pubDate>Wed, 12 Oct 2011 04:01:12 GMT</pubDate><dc:creator>Deceased</dc:creator><category>UX Grid</category><category>Silvelright</category><description>&lt;p&gt;Hi Yudi&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Hmmm... I'm not 100% sure that I've fixed the problem, but it's retrieving- and displaying the data successfully...&lt;/p&gt;
&lt;p&gt;What I did was:&lt;/p&gt;
&lt;p&gt;-&amp;gt;decrease the first _takeCount integer value.&lt;/p&gt;
&lt;p&gt;-&amp;gt;set the size of pages way, way smaller.&lt;/p&gt;
&lt;p&gt;-&amp;gt;instead of fixing an entity type to the grid, i changed "tmptestValReg" (which was the initial type) to type of object. (and this seemed to do the trick somehow)&lt;/p&gt;
&lt;p&gt;But thank you for your responses.&lt;/p&gt;
&lt;p&gt;(was actually trying to make a screenshot when i realized the UI was not hanging).&lt;/p&gt;
&lt;p&gt;What I meant with "UI freezez" is that the notification from the VM to the view never happened, you couldn't click anyware on the UI (Then the browser stoppes responding), and if you leave it long enough, the application throws a "SystemOutOfMemory Exception", but I'm guessing this happened because of the amount of data that I was pulling at a time.&lt;/p&gt;</description></item><item><title>UX Grid failing when setting AutoGenerateColumns=True</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UX-Grid-failing-when-setting-AutoGenerateColumnsTrue/</link><pubDate>Wed, 12 Oct 2011 00:22:02 GMT</pubDate><dc:creator>yudi</dc:creator><category>UX Grid</category><category>Silvelright</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hi Naude,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I apologize for any inconvenience this problem may have caused you.&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;When setting AutoGenerateColumns to true, the ui freezes as soon as the data that should be loaded into the grid is retrieved.&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Could you please provide me more information about the term “… the ui freezes as soon as the data that should be loaded into the grid is retrieved.”? Does this term means that there is no column generated or something else? Please correct me if I’m wrong. (Screenshot, if available, will help)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Fetching large amount of data may require longer time. In such condition, the user interface may look like freezing. So, if you don’t mind, could you please try to load less data and let us know whether the issue persists or not?&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;When setting AutoGenerateColumns to false, the ui does not freeze, but no data is displayed and I really need to set AGC to true.&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In the case when disabling the AutoGenerateColumns property, you will need to create and configure all columns explicitly in order to have the data displayed. Creating your own columns enables you to use additional column types, such as the UXGridViewComboBoxColumn, UXGridViewExpanderColumn, UXGridViewSelectColumn, UXGridViewTemplateColumn or other custom column type that inherited from UXGridViewColumn.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;For more detail information about how to create and configure the “UXGridView.Columns” please refer to the documentation or sample. When using the “Intersoft ClientUI MVVM Data Application” project template, the product.xaml file shows the implementation of declaring the column manually.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Thank you.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>UX Grid failing when setting AutoGenerateColumns=True</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UX-Grid-failing-when-setting-AutoGenerateColumnsTrue/</link><pubDate>Tue, 11 Oct 2011 04:10:31 GMT</pubDate><dc:creator>Deceased</dc:creator><category>UX Grid</category><category>Silvelright</category><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Thank you for your reply Yudi&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Okay, let's start (from the start):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;The XAML for the grid I'm trying to add is the following -&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;---------------------------------------------------------------------------------&lt;/span&gt;&lt;span style="font-size: 12px; "&gt;-------------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;&amp;lt;Intersoft:UXGridView x:Name="AssetRegister" ItemsSource="{Binding AssetCollection, Mode=TwoWay}" BorderThickness="0"
		      HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
		      HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
		      Grid.Row="1" SelectionMode="Single" SelectedItem="{Binding SelectedAsset, Mode=TwoWay}"
                      GroupByBoxVisibility="{Binding ShowGroupBox, Converter={StaticResource BooleanToVisibilityConverter}}" 
		      IsBusy="{Binding IsBusy}" CanUserBatchUpdate="False"
		      CanUserPage="True" PageSize="100000" EnableRowVirtualization="False" /&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;----------------------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;This is the View...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;I'm aware that the grid automatically generates columns, thus I've left it out.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 12px; "&gt;The ViewModel contains a Property (ObservableCollection) AssetCollection, which gets populated from the database when the VM gets constructed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 12px; "&gt;The VM also contains a Property (Boolean) IsBusy, which changes based on the query state to populate the AssetCollection Property.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 12px; "&gt;The VM also contains a Property (Boolean) ShowGroupBox to enable/disable grouping.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 12px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 12px; "&gt;Now, we use Caliburn-Micro to tie up our views and view-models, and we use (DevForce)Ideablade to handle our model needs.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 12px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 12px; "&gt;The following is the code on my VM to retrieve the data from the database -&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 12px; " /&gt;&lt;/p&gt;&lt;pre&gt;        private void RetrieveRecords()
        {
            _query = AREM.Instance.tmptestValRegs.OrderBy(asset =&amp;gt; asset.ComponentID).Skip(_skipCount).Take(_takeCount);
            _backendThread = new SelectMany&amp;lt;tmptestValReg&amp;gt;(_query);
            IsBusy = true;
            _backendThread.Execute((hasError, response) =&amp;gt;
                                       {
                                           if (response != null) 
                                               AssetCollection.AddRange(response);
                                           _skipCount = _skipCount &amp;#43; _takeCount;
                                           if ((_takeCount*2) &amp;lt; 50000)
                                               _takeCount = _takeCount * 2;
                                           else
                                               _takeCount = 50000;
                                       });
            _backendThread.Completed &amp;#43;= QueryCompleted;
        }
        void QueryCompleted(object sender, ResultCompletionEventArgs e)
        {
            if (_backendThread.Response.Count() &amp;lt; _originalTakeCount)
            {
                IsBusy = false;
                _tempCollection = AssetCollection;
                return;
            }
            RetrieveRecords();
        }&lt;/pre&gt;
&lt;p&gt; The "RetrieveRecords" method gets called from the constructor.&lt;/p&gt;
&lt;p&gt;After the initial retrieval, the _skipCount increases and the "RetrieveRecords" gets called again, causing a recursive retrieval untill there aren't any&lt;/p&gt;
&lt;p&gt;records retrieved.&lt;/p&gt;
&lt;p&gt;I have notify-handlers which "tells" the UI when a Property has ben changed.&lt;/p&gt;
&lt;p&gt;Please let me know if there is anything else that I can tell you to help solve the problem (as I really want to move from our current 3rd-party controls to yours).&lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;
&lt;p /&gt;</description></item><item><title>UX Grid failing when setting AutoGenerateColumns=True</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UX-Grid-failing-when-setting-AutoGenerateColumnsTrue/</link><pubDate>Tue, 11 Oct 2011 03:37:39 GMT</pubDate><dc:creator>yudi</dc:creator><category>UX Grid</category><category>Silvelright</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;strong&gt;AutoGenerateColumns&lt;/strong&gt; property sets a value that indicates whether columns are created automatically when ItemsSource property is set. The default value of this property is True.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;By default, the UXGridView control generates columns automatically when you set the ItemsSource property. The generated columns are of type UXGridViewCheckBoxColumn for bound Boolean (and nullable Boolean) properties, and of type UXGridViewTextColumn for all other properties. If a property does not have a string or numeric value type, the generated text box columns are read-only and display the data object's ToString value.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I tried to reproduce the problem in my local test by carefully follow the step-by-step of “Create Data Application using UXGridView and WCF RIA Service” as shown in the video available in this &lt;a href="http://www.intersoftpt.com/Support/ClientUI/Tutorial/Video/Create-Data-Application-using-UXGridView-and-WCF-RIA-Service/"&gt;link&lt;/a&gt; but my efforts were not successful – everything worked smoothly; columns are generated automatically; and the content was accessed without any issues.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I’m willing to advise you further but in order to do so I would need you to elaborate on your specific scenario and possibly give us a step-by-step guide that we can use to observe the problematic behavior.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;For your information: I’m using Intersoft WebUI Studio 2011 R1 SP1.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>UX Grid failing when setting AutoGenerateColumns=True</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UX-Grid-failing-when-setting-AutoGenerateColumnsTrue/</link><pubDate>Mon, 10 Oct 2011 02:13:39 GMT</pubDate><dc:creator>Deceased</dc:creator><category>UX Grid</category><category>Silvelright</category><description>Hi
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;I'm new to Intersofts ClientUI controls, but really like the look and feel of them (and above all, the fact that they are MVVM compliant).&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;The UX Grid is the first control that I'm actually using in an application, but I've encountered the following bug:&lt;/div&gt;
&lt;div&gt;-&amp;gt; When setting AutoGenerateColumns to true, the ui freezes as soon as the data that should be loaded into the grid is retrieved.&lt;/div&gt;
&lt;div&gt;-&amp;gt; When setting AutoGenerateColumns to false, the ui does not freeze, but no data is displayed and I really need to set AGC to true.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;How can I fix this?&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;I'm running WebUIStudio2011sp1... Should I maybe use an older version?&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</description></item></channel></rss>