PivotViewer Controlhttp://forums.silverlight.net//68.aspx/1?PivotViewer+ControlDiscussions of PivotViewer Control and Showcase of CollectionsMon, 01 Jan 0001 00:00:00 -050068638295http://forums.silverlight.net/p/255595/638295.aspx/1?Missing+image+first+load+on+graph+view+Missing image first load on graph view <p>Hi everyone,</p> <p>When I force the graph view on the loading of my Pivot Viewer, there are missing images (only one value or two column are complete). But if I changed the view (by clicking on a filter or on the grid view) all the images show up and I can switch back to graph view with all the images !</p> <p>If you want to try out what I'm saying you can use "http://tonychampion.net/blog/index.php/2011/09/extending-your-cxml-trading-cards-in-silverlight-5/"&nbsp; and add&nbsp; "pViewer.View = pViewer.GraphView" at the end of the method "&nbsp; cxml_StateChanged" (class MainPage)</p> <p></p> <p></p>2012-05-14T15:46:55-04:00637859http://forums.silverlight.net/p/255421/637859.aspx/1?Error+while+downloading+collection+xml+file+Error while downloading collection xml file <p>Hello All,&nbsp;</p> <p>I have window service which will generate the collection xml file and deploy it in iis server .</p> <p>Now i have silverlight app which hosts this pivot viewer control &nbsp;when it trying to download the collectionxml file &nbsp;i am seeing this error</p> <p></p> <h2>401 - Unauthorized: Access is denied due to invalid credentials</h2> <p>MY iis account is running is under service account and impersonation and windows authentication is enabled for this system. This account have full acces to that files</p> <p>When i give acces to everyone to that folder, no issue and everybody seeing the pivot view. but if i give just permission to that account i am seing the issue .&nbsp;</p> <p>Can some one help me&nbsp;</p> <p>&nbsp;</p> <p>Regards,</p> <p>Phani</p> <p></p> <p>&nbsp;&nbsp;</p> <p></p>2012-05-10T14:52:44-04:00631774http://forums.silverlight.net/p/253279/631774.aspx/1?hyperlinks+in+the+deployed+websitehyperlinks in the deployed website<p>Hi,</p> <p>I created a Pivot Viewer collection using MS excel tool. when I published the collection the PivotViewer showed me the collection and each box had "open" link at top-right, which connects to the hyperlink given in the "Href" colun in Excel, but when I developed a website using Visual Studio 2010 and added the same collection to a webpage, the links are not showing.</p> <p>How can I make the "open" link appear and work.</p> <p>Your help will be appreciated. Thanks</p>2012-03-26T17:35:40-04:00636484http://forums.silverlight.net/p/255021/636484.aspx/1?Getting+V2+UsableGetting V2 Usable<p>I'm working on replacing V1 PivotViewers with V2 from SL5. I want to improve the performance, keep DeepZoom (or DeepZoom-like) features, and also want to take full advantage of dynamic collections.</p> <p>At first I created a PV with 3 PivotViewerItemTemplates, using MaxWidth and pre-generated image files for each item and level. V2 tried to load all images for all templates at once! Ha! This is effectively useless unless there is a way not to load a item template until it's needed. (Please, someone walk over and smack the developer who thought loading 6000 images for a 2000 item pivot at once was a good idea).</p> <p>Next I went for using one template and MultiScaleImage. I already have a DeepZoom server setup with Smooth Streaming for V1 pivots, so I linked in these images. SL5 OOB mem usage went through the roof! Playing with specifying or not specifying sizes got memory down to 300MB (still a lot - not even started using the pivot yet!) but load time was minutes, and it took 10 - 15 minutes to begin to see the images.</p> <p>Then I looked at CxmlCollectionSource for some of my existing V1 pivots. These pivots are static, updated nightly, and have a DZC built from the DZIs used - again Smooth Streaming is used. These pivots loaded in a tolerable amount of time - nothing anyone would call "fast" but quick enough and faster than V1 seems.</p> <p>So I think my answer will lie in hacking (par for the course I guess) the CxmlCollectionSource behavior with the new dynamic features. I know V1 was very fragile with DZC - has V2 improved this? In V1 if your image IDs were not sequential or started with a value other than 0 performance would suffer. This makes using DB id&rsquo;s impossible. Also, If I generated a &ldquo;master collection&rdquo; of all images and used the same collection in multiple CXMLs pivots that used only a subset, performance suffered.</p> <p>As far as getting the correct behavior is having properties on my class named VisualImageId and VisualCollectionSource enough or do I need to use PivotViewerItem? Is the template in CxmlCollectionSource.ItemTemplates available somewhere or do I need to crack open the PivotViewer documentation tool (aka Reflector)? Last, has someone managed to do this another way I should look into.</p> <p>Mike</p> <p>PS &ndash; Apologies for the snark, but coming back to PivotViewer after a year away I am really disappointed. I gave up trying to work with the team and provide feedback after getting lost in Microsoft bureaucracy three times (clearly 5 NDAs are not enough for this project) and trusted the team was working with others to shape this version. Now I wonder if they did talk to developers and if they did how much did they pay attention.</p> <p></p>2012-05-01T20:21:10-04:00636636http://forums.silverlight.net/p/255063/636636.aspx/1?Strange+issues+using+item+templates+with+PivotViewer+V2Strange issues using item templates with PivotViewer V2<p>I&nbsp;created a project using SL5 and PivotViewer V2 and got it working pretty easily&nbsp;using a dynamic collection.&nbsp; Now I'd like to apply item templates.&nbsp; I created 3 simple templates just to play around with and I'm getting some really strange results.&nbsp; Here's the template definitions I'm using.</p> <p>&lt;pivot:PivotViewer.ItemTemplates&gt;<br />&nbsp;&lt;pivot:PivotViewerItemTemplate MaxWidth="50" &gt;<br />&nbsp;&nbsp;&lt;Border Height="40" Width="40" Background="Green"&gt;<br />&nbsp;&nbsp;&nbsp;&lt;TextBlock Text="A" /&gt;<br />&nbsp;&nbsp;&lt;/Border&gt;<br />&nbsp;&lt;/pivot:PivotViewerItemTemplate&gt;<br />&nbsp;&lt;pivot:PivotViewerItemTemplate MaxWidth="150" &gt;<br />&nbsp;&nbsp;&lt;Border Height="80" Width="80" Background="Red"&gt;<br />&nbsp;&nbsp;&nbsp;&lt;TextBlock Text="B" /&gt;<br />&nbsp;&nbsp;&lt;/Border&gt;<br />&nbsp;&lt;/pivot:PivotViewerItemTemplate&gt;<br />&nbsp;&lt;pivot:PivotViewerItemTemplate &gt;<br />&nbsp;&nbsp;&lt;Border &gt;<br />&nbsp;&nbsp;&nbsp;&lt;TextBlock Text="C" /&gt;<br />&nbsp;&nbsp;&lt;/Border&gt;<br />&nbsp;&lt;/pivot:PivotViewerItemTemplate&gt;<br />&lt;/pivot:PivotViewer.ItemTemplates&gt;</p> <p>First, it's not at all clear to me how the size of the display item is being set.&nbsp; The borders on the first two items have fixed sizes specified but they are definitely not fixed in the display.&nbsp; The colored area always takes the full area alloted by the item.&nbsp;&nbsp;That's what I'd expect if I didn't specify any&nbsp;border size at all.&nbsp; If I leave the&nbsp;size setting&nbsp;out&nbsp;however,&nbsp;the&nbsp;colored areas become a rectangular (bigger width than height).</p> <p>Second, the highlight border that displays around items at runtime on mouse over.&nbsp; Sometimes I get one, sometimes I don't and sometimes I get one on every other item.&nbsp; What's more changing filters then changing them back sometimes changes which of those three possibilities occurs.</p> <p>Third, text size.&nbsp; I'm having trouble understanding how the text scaling for the TextBox controls is working.&nbsp; After trying a number of different values I've found the scaling is definitely related to the border sizes but I can't see exactly how.&nbsp; Perhaps a better understanding of the first issue will clarify?</p> <p>Finally I've had a number of occurrences where I see items from both template 1 and 2 in the viewer at the same time.&nbsp; That seems like it shouldn't be possible.</p> <p>Any input you might have or any example of good templating for V2 you could point me to would be greatly appreciated.</p> <p>Thanks,</p> <p>Dane R. Vinson</p>2012-05-02T19:19:40-04:00613702http://forums.silverlight.net/p/245496/613702.aspx/1?Memory+leak+in+Pivot+V2+Memory leak in Pivot V2 ?<p>I started using the new PivotViewer that came with SL5.</p> <p>I have an Image class as the the template for the PivotViewerItemTemplate.</p> <p>Looking at the Task Manager, when going back and forth between the screen that contains the pivot, and another screen, I've noticed that each time the memory consumption of the Silverlight app goes up by 150 MB !! ( And we are talking about only 30 items ).</p> <p>It's important to note two things :</p> <ol> <li>Each time when you enter the pivot screen, a new instance of the pivot is created.</li> <li>When using a TextBlock (for example) instead of the Image for PivotViewerItemTemplate, the issue still remains, but with smaller memory increases.</li> </ol> <div></div> <div>Can anyone report having the same issue ?</div>2011-12-23T20:37:59-05:00636755http://forums.silverlight.net/p/255090/636755.aspx/1?Custom+DateTime+format+in+filterPanelCustom DateTime format in filterPanel<p>Hi everyone,</p> <p>I want to show the date in a custom format in the filter panel (add the name of the Day), is there an easy way to do that ?</p> <p>If it is possible I also want to specify a custom "Morning/Evening"...</p>2012-05-03T13:28:46-04:00636980http://forums.silverlight.net/p/255158/636980.aspx/1?Pivot+Collection+Excel+Addin+Macro+ControlPivot Collection Excel Addin Macro Control<p>Hello,</p> <p>&nbsp;</p> <p>I have a large dataset that I am converting to cxml format for building a collection for display with&nbsp;Silverlight Pivotviewer.&nbsp; I have a macro that prepares the dataset and then I would like to initiate the "Publish Collection" in the Pivot Collection Add In using VBA.&nbsp; Under the Excel add in manager it comes up as a COM addin.&nbsp; Does anyone know if this is possible?</p> <p>&nbsp;</p> <p>Thanks,</p> <p>&nbsp;</p> <p>Matt</p>2012-05-04T21:01:37-04:00637212http://forums.silverlight.net/p/255273/637212.aspx/1?Background+color+of+items+in+collectionBackground color of items in collection<p>Hello,</p> <p>I am Silverlight newbie and need to develop customized application using PivotViewer control.</p> <p>One of my tasks is to add programmable interface to customize look &amp; feel of the PV control.</p> <p>I have found how to modify the title bar fill in <em>OnApplyTemplate</em> method:</p> <pre style="padding-left: 30px;" class="prettyprint">Grid partContainer = (Grid)this.GetTemplateChild("PART_Container"); CollectionViewerView cvv = ((CollectionViewerView)(partContainer).Children[0]); Grid container = cvv.Content as Grid; ((Rectangle)((Grid)((ControlBarView)(container.Children[2])).Content).Children[0]).Fill = _TitleBarBrush;</pre> <p>but I have no idea hot to modify in the code the default color for the items. I would like to get rid of te default orange one.</p> <p>Your help and advice would be appreciated.</p> <p>Kuba</p>2012-05-07T12:58:19-04:00636598http://forums.silverlight.net/p/255049/636598.aspx/1?Another+live+exampleAnother live example<p>First of all, I really se great potential in this framework.</p> <p>I made an example and wrote a minor Blog on the awesome framework. The application lists the top 1000 cities in the world.</p> <p><a href="http://www.seniorudvikler.dk/index.php?option=com_content&amp;view=section&amp;layout=blog&amp;id=1&amp;Itemid=50">http://www.seniorudvikler.dk/index.php?option=com_content&amp;view=section&amp;layout=blog&amp;id=1&amp;Itemid=50</a></p> <p>I also used Bing maps&nbsp;as well as&nbsp;the Bing map service. As an old J2EE developer, I&nbsp;need to say... Microsoft just makes it easier!</p>2012-05-02T13:48:37-04:00635941http://forums.silverlight.net/p/254799/635941.aspx/1?Dynamic+Text+Size+ChangeDynamic Text Size Change<p>Is there a method to be able to change the text size of your trading card depending on the width of your trading card?</p> <p>For example if I have a PivotViewerItemTemplate with width size 400 and I include a title of size 80 to the template, some of the titles are too long that I would have to wrap it, but that makes it look really bad and takes up more space for other thing. Is there a way to detect that the text is too big and resize that title to say font size 60 instead for that item text?</p>2012-04-26T20:29:09-04:00635296http://forums.silverlight.net/p/254430/635296.aspx/1?Issues+with+Pivot+Viewer+when+applying+more+filters+on+loading+for+first+timeIssues with Pivot Viewer when applying more filters on loading for first time<p>Hello All,</p> <p>&nbsp;</p> <p>I am storing the user selected filters in isolated storage setting and applying them back whenever user browse the application.</p> <p>The code is working fine but what i see&nbsp; is that when the number of filters applied which are increased then i am seeing a weird error</p> <p><strong>"Layout Cycle detected. Layout could not complete&nbsp;". </strong></p> <p><strong></strong>&nbsp;</p> <p>Collection consist of 1600 items and&nbsp; i am seeing this issue when i am appending the default filters when page is loading .</p> <p>What is the cause of this&nbsp; because ideallyy when filters are applied means serachshould be more faster and with no issues.</p> <p>Can someone provide the pointers to resolve the issue ?</p> <p>&nbsp;</p> <p>Regards,<br />Phani</p> <p><strong></strong></p> <p>&nbsp;</p>2012-04-23T11:00:59-04:00635714http://forums.silverlight.net/p/254732/635714.aspx/1?PrintingPrinting<p>Hi there,</p> <p>I'm&nbsp;looking at the pivotviewer and it looks good.</p> <p>I would like to print&nbsp;the selected PivotViewerItemAdorne, The xaml below works but I would like to have the code in a MVVM</p> <p>viewmodel maybe using Prism not in code behind.</p> <p>Does anyone know how it can be done?</p> <p>Thanks</p> <p>pqsik</p> <p><span style="font-family: Consolas; color: #2b91af; font-size: x-small;" color="#2b91af" size="2" face="Consolas"><span style="font-family: Consolas; color: #2b91af; font-size: x-small;" color="#2b91af" size="2" face="Consolas"><span style="font-family: Consolas; color: #2b91af; font-size: x-small;" color="#2b91af" size="2" face="Consolas"></span></span></span></p> <pre class="prettyprint">&lt;ControlTemplate TargetType="pivot:PivotViewerItemAdorner"&gt; &lt;pivot:PivotViewerDefaultItemAdorner IsTabStop="False" DataContext="{Binding}" CommandsRequested="GetPivotCommand" IsItemSelected="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsItemSelected}" Name="PivotViewerDefaultItemAdorner1" Background="Firebrick"&gt;&lt;/pivot:PivotViewerDefaultItemAdorner&gt; &lt;/ControlTemplate&gt;</pre>2012-04-25T16:37:06-04:00636069http://forums.silverlight.net/p/254875/636069.aspx/1?Need+Filter+like+that+in+netflxNeed Filter like that in netflx<p>Hello All,</p> <p>&nbsp;</p> <p>I needa filter ( Available from&nbsp; ) which is there in <a href="http://netflixpivot.cloudapp.net/">http://netflixpivot.cloudapp.net/</a>. Basically this contatin the year, then monthly wise and then custome date filter .</p> <p>&nbsp;</p> <p>Is this is achievebale or we need to do&nbsp; have customised code or contro to achieve this.</p> <p>&nbsp;</p>2012-04-27T14:41:39-04:00633875http://forums.silverlight.net/p/253994/633875.aspx/1?SL5+PV+v2+Memory+blow+out+using+external+Image+ServerSL5 & PV v2 Memory blow-out using external Image Server<p>We have developed an app using the latest version of the Pivot Viewer and seeing massive memory usage when zoomed in and moving/panning from Card to Card. So much so we are hitting OutofMemoryExceptions. We have 3 x&nbsp;ItemTemplates each for different zoom levels with a maximum of 500 items.</p> <p></p> <p>Anyone else seeing a similar problem.</p> <p>Graeme</p>2012-04-12T00:02:35-04:00634467http://forums.silverlight.net/p/254150/634467.aspx/1?Issue+with+blurry+imagesIssue with blurry images<p>Hello,</p> <p>&nbsp;I'm using a pivot with 2 templates for cards.</p> <p>&nbsp;Sometimes, the images are not well displayed, only the first template is displayed and it's blurry (and not readable).</p> <p>&nbsp;When I zoom in, the next&nbsp;template is not displayed.</p> <p>&nbsp;It seems to happen more frequently when&nbsp;pivot's collection contains 100 items or more.</p> <p>&nbsp;When I close the pivot and reopen it on the same collection, all images are correctly be displayed.</p> <p>&nbsp;Sometimes, this problem happens on all images, sometime it's on some images of the collection.</p> <p>&nbsp;</p> <p>&nbsp;Any idea on what could be the problem?</p> <p>&nbsp;</p> <p>Thanks,</p> <p>Yoann</p>2012-04-16T09:57:18-04:00635321http://forums.silverlight.net/p/254442/635321.aspx/1?Pivot+Viewer+use+OR+or+AND+FilterPivot Viewer use OR or AND Filter<p>Pivot Viewer filter combination works as OR &nbsp;or AND filter ?</p> <p>If i want to &nbsp;have the filter work as AND filter , then is it possible to have it ? What needs to be done</p> <p>I have &nbsp;fiscal year 2011, 2012 and 2013 , now i have quarters Q1,Q2,Q3, Q4 Now suppose user selects fiscaly year as 2011 , &nbsp;still all quarters of all the years get poulated &nbsp;now i want to to see only the quarter of 2011 only . &nbsp;</p> <p>Is this is only possible by having the quarters in the new format as q1-2011 etcc... ?</p> <p></p> <p>Regards,</p> <p>Phani</p> <p></p> <p></p>2012-04-23T14:02:05-04:00634928http://forums.silverlight.net/p/254308/634928.aspx/1?Dynamic+Images+How+to+set+the+Content+TypeDynamic Images - How to set the Content-Type<p>In the thread posted at <a href="http://stackoverflow.com/questions/10214878/dynamic-images-how-to-set-its-content-type">http://stackoverflow.com/questions/10214878/dynamic-images-how-to-set-its-content-type</a>, I reported such a problem: the dynamic images can't be generated with Error 404 even though the cxml can be dynamically generated.&nbsp; Through Fiddler2 on the website&nbsp;<a href="http://fhfl15gisweb.flhd.fhwa.dot.gov/DEWA_Accidents/defaultHost.aspx#/ProjectSearch">http://fhfl15gisweb.flhd.fhwa.dot.gov/DEWA_Accidents/defaultHost.aspx#/ProjectSearch</a>, I observed that the Content-Type is text/html rather than image/jpg (in another parallel project, the dynamic images are generated well with the content-type of image/jpg).&nbsp; I wonder how to set the Content-Type in my SL project.&nbsp; Can anyone help for this issue?&nbsp; Thanks.</p>2012-04-19T13:55:05-04:00507106http://forums.silverlight.net/p/214426/507106.aspx/1?Binding+images+in+cxml+for+pivot+viewerBinding images in cxml for pivot viewer<p>Hi All,</p><p>I have an excel with duplicated data in few rows. So, I created my cxml file from my code. Now, how can I bind the images for this cxml file in oder to bind this cxml file to pivot viewer?</p>2010-12-27T03:08:14-05:00613253http://forums.silverlight.net/p/245338/613253.aspx/1?Missing+Images+Gray+Items+PV+v2Missing Images = Gray Items PV v2<p>Hi</p> <p>After the final released of the SL 5, there's a error I am facing in all the browsers except IE. The problem is in the item template. The item template consists of a background color, multiple textblocks and an image (intialized via a uriSource).</p> <p>The images are in a db and are downloaded via a handler that fetches the image from the db and returns the bytes as the response. But in some cases, there's NO image present in the db and in that case, I dont return anything. The problem I face is that in the case of missing images, the items are GRAYED OUT completely and I dont see any background color or the textblocks..just one gray block! What should I do?</p> <p>Only in the case of IE, the gray blocks dont come and I see the colors and text properly (as if there was no image) but in case of Firefox, Chrome, Opera and Safari...the gray blocks show up! What is to be done?</p> <p>The http response that I send in case of empty images is like follows:</p> <pre class="prettyprint">HttpContext.Current.Response.ContentType = "image/jpeg"; HttpContext.Current.Response.Expires = 0; HttpContext.Current.Response.Buffer = true; HttpContext.Current.Response.Clear(); HttpContext.Current.Response.End();</pre>2011-12-22T08:08:41-05:00