Telerik Forums
UI for WPF Forum
7 answers
284 views
When I install the Q1 2010 WPF suite, the first time I start Visual Studio, I get an error. The second time there is no error but the theme's are not installed and it is not possible to use the designerarea. It constantly shows an error that it cant find the theme.
Stefan Kamphuis
Top achievements
Rank 2
 answered on 29 Mar 2010
2 answers
108 views
Adding a new row at a Grid has a little bug it seems like, if you use the insert row.

How to reproduce it:
- Set ShowInsertRow="True" at the RadGridView
- Start setting some values at the row (don't add the data by pressing enter or reaching the end of line!)
- Click somewhere else eg. another row.
- Try to finish adding the data
- The row won't disappear and let you add another row
 
The important step is that you leave the insert row before the data gets added by pressing somewhere else.
Adrian Weidermann
Top achievements
Rank 1
 answered on 29 Mar 2010
1 answer
150 views
I have tried the following products with Visual Studio 2010 for memory and performance profiling with WPF.

JetBrains dotTrace 3.1
red-gate Ants Memory Profiler 5

Both have crashed and have not allowed me to actually get snapshots of the memory to determine if me and my dev team are releasing all events and references.

Does anyone have any experience with products that work well for memory profiling?

Thanks,
Ron

Boyan
Telerik team
 answered on 29 Mar 2010
2 answers
106 views
I described the issue in this blog post.
   http://markjerde.blogspot.com/2010/03/radwindow-multimonitor-issue.html

Live Writer makes it so easy to put screenshots & text together.  ;-)

Mark
Mark Jerde
Top achievements
Rank 1
 answered on 29 Mar 2010
3 answers
120 views
Hi, does you guy have some Pivot table Grid in WPF (or silverlight ) available ?

Is it something coming soon ?

And if it does exist, what are the performance capabilities of this grid in "pivot table" mode ?
Tgaud
Top achievements
Rank 1
 answered on 29 Mar 2010
1 answer
75 views
I tried to place various UIElements at the Grid header and as long as i don't want them to take the whole width of the column everything is alright. If i want them to stretch for example i get some weird issues. The element is always at autosize unless i set a specified size. So my next step was to try and bind it to the width of the column itself. That didn't work either, the size is updated to the right value but the UIElement is only shown at autosize. The workaround i found was to just set the size to 1000 for example that way it always takes the whole space (up to width 1000 of course).

Or did i just miss something at my code ? ;)

                <Controls:GridViewDataColumn x:Name="IdDefinitionGroup" UniqueName="IdDefinitionGroup" Width="100" IsSortable="True" IsFilterable="True"  
                                             DataMemberBinding="{Binding IdDefinitionGroup, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, UpdateSourceTrigger=PropertyChanged}"
                    <Controls:GridViewColumn.Header> 
                        <Grid Width="{Binding ElementName=IdDefinitionGoup, Path=Width, Mode=TwoWay}"
                            <TextBlock Foreground="#15428b" HorizontalAlignment="Stretch" 
                                       Text="Id" ToolTip="Test ToolTip"/> 
                        </Grid> 
                    </Controls:GridViewColumn.Header> 
                </Controls:GridViewDataColumn> 



Stefan Dobrev
Telerik team
 answered on 29 Mar 2010
5 answers
226 views
I am investigating whether I can use the selectedItem property from the Carousel and use it with the DrapAndDropManager in order to drag the item to a listbox? Similar to the examples, but with the Carousel.

I tried using the example and applying it to the Carousel control, but I keep getting the error "Cannot convert type 'System.Windows.Controls.ItemsControl' to 'Telerik.Windows.Controls.RadCarousel' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion". when I set up the drag event handler.

Please advise on how I should handle this. I've attached a copy of my code.
    private void OnNurseDragQuery(object sender, DragDropQueryEventArgs e)  
        {  
            CarouselItem nurseItem = e.Options.Source as CarouselItem;  
 
            RadCarousel carousel = CarouselItemsControl.ItemsControlFromItemContainer(nurseItem) as RadCarousel;  
 
            if (e.Options.Status == DragStatus.DragQuery && nurseItem != null)  
            {  
                e.Options.Payload = carousel.SelectedItem;  
                ContentControl cue = new ContentControl();  
                cue.ContentTemplate = this.Resources["ApplicationDragTemplate"as DataTemplate;  
                cue.Content = carousel.SelectedItem;  
                e.Options.DragCue = cue;  
                e.Options.ArrowCue = RadDragAndDropManager.GenerateArrowCue();  
            }  
 
            e.QueryResult = true;             
              
              
       } 


Well, since I've made this post, I've figured out to use the carouselpanel inside a listview which is working just fine, I just now need to get the listBox that I'm dragging to, to accept the drop. the code runs, but I never get the Drag.Status.DragComplete action to work.
Milan
Telerik team
 answered on 29 Mar 2010
12 answers
359 views
Hi,

I have a collection of DateTime and i'd like a RadCalendar with each DateTime from my collection highlited (or underlined or so...).
I have tried to follow the technics described at this url (http://www.telerik.com/help/wpf/radcalendar-selectors.html) with the DayTemplateSelector propertie.

The problem is when i'm trying this code (copy paste from the documention above) :

<telerik:RadCalendar x:Name="calendar" 
                    DayTemplate="{x:Null}" 
                    HorizontalAlignment="Center" 
                    SelectionMode="Extended" 
                    VerticalAlignment="Center"
   <telerik:RadCalendar.DayTemplateSelector> 
       <!--Custom Template selector, sill actually choose just one template--> 
       <my:CustomTemplateSelector> 
           <my:CustomTemplateSelector.DefaultTemplate> 
               <!--A custom template--> 
               <DataTemplate x:Key="defaultTemplate"
                   <TextBlock Text="{Binding Text}" /> 
               </DataTemplate> 
           </my:CustomTemplateSelector.DefaultTemplate> 
       </my:CustomTemplateSelector> 
   </telerik:RadCalendar.DayTemplateSelector> 
</telerik:RadCalendar> 

I have a compilation error saying :

The Key attribute can only be used on a tag contained in a Dictionary (such as a ResourceDictionary). (at line <DataTemplate x:Key="defaultTemplate").

When i delete the Key attribute, my software runs but each day in the RadCalendar are a DayButton.ToString() representation (i.e. Telerik.Windows.Controls.Calendar.CalendarButtonContent") and not the Day number.

Is the example in the documentation wrong ? Or i have commited a mistake.

Many Thanks in advance.
Michael
Top achievements
Rank 1
 answered on 29 Mar 2010
7 answers
345 views
Hi,

Is there a way to select and focus first row in grid at design time. I am using MVVM pattern. Since i cant get access to the grid from ViewModel and also dont want to write any code in codebehind, is it possible to do this at design time in View.
When i give SelectedIndex="0", it selects the fist row, but the focus is not there.

Any help is much appreciated.

Thanks

Sujith
VS
Top achievements
Rank 1
 answered on 29 Mar 2010
1 answer
95 views
Hi,
I am trying to create a wpf web application, and i want to use the carousel control. I have dragged the item on to the page, and visual studio creates the control and everything looks fine and there appears to be no problems. The telerik.windows.controls and navigation references are referenced in the project.

I go to the xaml.cs  to go and bind some data to the control and type in the name of the control, but it can't not be found. If i drag other controls such as a textbox it is found and can be referenced. This driving me mad as I can't seem to be able to get hold of this control. I have tried this on two machines and in different projects and still no luck.

Any help would be great.


Thanks

Simon
Milan
Telerik team
 answered on 29 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?