Telerik Forums
UI for WPF Forum
1 answer
76 views
Hello

I have a right to left grid
The last column in my grid is a ComboBoxColumn (in the attached file named "A")
when I open the combo , the column 'moves' under the header of the previous column (named "B")
that happens only when there is a horizontal scroll.

Thanks.
Pavel Pavlov
Telerik team
 answered on 15 Oct 2010
7 answers
132 views
I have a RadGridView that is bound to items that are slow to create.  When many items are pasted into the grid, the UI freezes until all objects are created.

The slowness of the creation comes from database lookups and calculations.

Is there any way I can handle the creation of the objects by hand?  I would like to use a separate thread.

Thanks!
Yavor Georgiev
Telerik team
 answered on 15 Oct 2010
3 answers
102 views

Hi, when i use this piece of code, i ve got an error "Error 1 TestTelerik The property 'GroupingSettings.GroupDescriptors' cannot be set because it does not have an accessible set accessor. Line 62 Position 34. D:\VStudio\TestTelerik\TestTelerik\MainWindow.xaml" in the VS 2010 designer 

the code:

01.<telerik:RadChart  DockPanel.Dock="Top" x:Name="radChart">
02.   <telerik:RadChart.SeriesMappings>
03.     <charting:SeriesMapping>
04.       <charting:SeriesMapping.SeriesDefinition>
05.         <charting:BarSeriesDefinition />
06.       </charting:SeriesMapping.SeriesDefinition>
07.       <charting:SeriesMapping.GroupingSettings>
08.         <charting:GroupingSettings x:Name="GroupingSetting" ShouldCreateSeriesForLastGroup="True">
09.           <charting:GroupingSettings.GroupDescriptors>
10.             <charting:ChartGroupDescriptor Member="Level"/>
11.             <charting:ChartGroupDescriptor Member="Name"/>
12.           </charting:GroupingSettings.GroupDescriptors>
13.         </charting:GroupingSettings>
14.       </charting:SeriesMapping.GroupingSettings>
15.     <charting:SeriesMapping.ItemMappings>
16.       <charting:ItemMapping FieldName="Status" DataPointMember="YValue" />
17.     </charting:SeriesMapping.ItemMappings>
18.   </charting:SeriesMapping>
19. </telerik:RadChart.SeriesMappings>
20.</telerik:RadChart>

Any clue ?

Thx in advance

Cedric
Top achievements
Rank 1
 answered on 15 Oct 2010
1 answer
231 views
Hi,

By reading the licence agreement of telerik's product, I saw this:

You must include a valid copyright message in your Integrated Products in a location viewable by Authorized End-Users (e.g.  “About” box) that will serve to protect Telerik’s copyright and other intellectual property rights in the Software


I've no problem with that. Can you give me the sentence you want to be displayed? Because I'm not sure to know exactly what is a "valid" copyright message.

Thank you.
Donna
Telerik team
 answered on 15 Oct 2010
1 answer
372 views
Hi,

I have played around with the layout properties with no success attempting to align the menu items to the right hand side of the menu however I am unable to do so, is this a limitation or am I doing something wrong?

Thank you,

Xavier.
Dani
Telerik team
 answered on 15 Oct 2010
1 answer
89 views
Hi guys,

I'm evaluating RadControls and the chart is giving me grief. 
The data is pretty simple (attached).
Here is my XAML:

 <rad:RadChart Margin="20,20,0,0" Height="250" HorizontalAlignment="Stretch" x:Name="StatusChart" Grid.Column="2" >

Here is my code:
     
            SeriesMapping seriesMapping1 = new SeriesMapping();
            seriesMapping1.GroupingSettings.ShouldCreateSeriesForLastGroup = true;
            seriesMapping1.GroupingSettings.GroupDescriptors.Add(new ChartGroupDescriptor("JobStatusDesc"));
            seriesMapping1.ItemMappings.Add(new ItemMapping("MonthTotal", DataPointMember.YValue));
            seriesMapping1.ItemMappings.Add(new ItemMapping("StatusMonth", DataPointMember.XCategory));
            
            MonthlyTotalsChart.SeriesMappings.Add(seriesMapping1);
            MonthlyTotalsChart.ItemsSource = MonthlyData;

Fairly straightforward, but the chart (attached) skips a lot of the data! The data it does show is correct, but 201006 should also show a Raised value of 1, 201007 should show Raised, Cancelled and On Site values. One of the months (201008) isn't there at all, and 201009 is likewise missing values. No value above 5 is shown at all, but the chart seems to allocate space for the extra bars in the graph.

What gives?

Steven
Top achievements
Rank 1
 answered on 15 Oct 2010
4 answers
566 views
I've spent hours on this and have tried many ways.  For the life of me I cannot make a GridView display any image.

I have a class called Employee.  I then have a List<Employee> which is bound to the GridView ItemsSource.  All bindings are working just fine.  The first column in the grid is a GridViewImageColumn.  I have never had it display an image.  I've set my Employee.Photo property to be a Bitmap, and Image, a BitmapImage, and I've used System.Windows.Drawing as well as System.Windows.Controls, and System.Media.Imaging (I think that was the 3rd one).

When loading the image for the employee, here's the latest code I've tried:

BitmapImage bmp = new BitmapImage();
bmp.BeginInit();
bmp.UriSource = new Uri(@"FULL PATH TO THE FILE"UriKind.Absolute);
bmp.EndInit(); Employee.Picture.Source = bmp; SomeImageOnTheForm.Source = bmp; // To test the successful load.

What can possibly be wrong?  The Image on the form loads the picture just fine.  The grid never does.
Paul
Top achievements
Rank 1
 answered on 14 Oct 2010
1 answer
102 views
Hi,

Please tell me the way to override the custom color and appearance of  the CarouselScrollButton. I tried the following code and it didn't have any effect on button.
<br> <telerik:CarouselScrollButton Margin="2" CarouselScrollButtonType="LineLeft" Grid.Column="1" Height="40" Width="40" Command="{x:Static ScrollBar.LineLeftCommand}" Style="{StaticResource CarouselScrollButtonStyle}" ><br>                        <telerik:CarouselScrollButton.Foreground><br>                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"><br>                                <GradientStop Color="#FFD0F262" Offset="0.004"/><br>                                <GradientStop Color="#FFDEEC58" Offset="1"/><br>                            </LinearGradientBrush><br>                        </telerik:CarouselScrollButton.Foreground><br>                    </telerik:CarouselScrollButton>

Please tell me what  am i doing wrong.


Regards,
Raj.


Vanya Pavlova
Telerik team
 answered on 14 Oct 2010
5 answers
246 views
Hello,

I have problem using the event "MouseDoubleClick" on RadTreeViewItem.
It is handled for each branch item and it don't care about e.Handled = true.

Example :

        <telerik:RadTreeView IsDragDropEnabled="True" MouseDoubleClick="treeView_MouseDoubleClick">  
            <telerik:RadTreeView.ItemContainerStyle> 
                <Style TargetType="{x:Type telerik:RadTreeViewItem}">  
                    <Setter Property="HorizontalContentAlignment" Value="Stretch"/>  
                    <Setter Property="IsExpanded" Value="True"/>  
                    <EventSetter Event="MouseDoubleClick" Handler="treeViewItem_MouseDoubleClick"/>  
                </Style> 
            </telerik:RadTreeView.ItemContainerStyle> 
            <telerik:RadTreeView.ItemTemplate> 
                <HierarchicalDataTemplate ItemsSource="{Binding Children}">  
                    <Border BorderThickness="1" BorderBrush="LightGray" Margin="2" CornerRadius="5">  
                        <Grid> 
                            <Grid.ColumnDefinitions> 
                                <ColumnDefinition Width="Auto"/>  
                                <ColumnDefinition Width="*"/>  
                            </Grid.ColumnDefinitions> 
                            <TextBlock Grid.Column="0" Text="{Binding Key}" Margin="3,0,10,0"/>  
                            <GridSplitter Grid.Column="0" Width="1" Background="LightGray" ResizeDirection="Columns" dragDrop:RadDragAndDropManager.AllowDrag="True" dragDrop:RadDragAndDropManager.DragQuery="GridSplitter_DragQuery"/>  
                            <TextBlock Grid.Column="1" Text="{Binding Text}" Margin="3,0,0,0"/>  
                        </Grid> 
                    </Border> 
                </HierarchicalDataTemplate> 
            </telerik:RadTreeView.ItemTemplate> 
            <telerik:RadTreeView.Items> 
                <local:PairText Key="line1" Text="Some text for line1"/>  
                <local:PairText Key="line2" Text="Some text for line2"/>  
                <local:PairText Key="line3" Text="Some text for line3">  
                    <local:PairText.Children> 
                        <local:PairText Key="line3.1" Text="Some text for line3.1"/>  
                        <local:PairText Key="line3.2" Text="Some text for line3.2"/>  
                        <local:PairText Key="line3.3" Text="Some text for line3.3"/>  
                    </local:PairText.Children> 
                </local:PairText> 
                <local:PairText Key="line4" Text="Some text for line4"/>  
                <local:PairText Key="line5" Text="Some text for line5"/>  
            </telerik:RadTreeView.Items> 
        </telerik:RadTreeView> 
        private void treeView_MouseDoubleClick(object sender, MouseButtonEventArgs e)  
        {  
            MessageBox.Show("Tree");  
            e.Handled = true;  
        }  
 
        private void treeViewItem_MouseDoubleClick(object sender, MouseButtonEventArgs e)  
        {  
            PairText pair = (sender as RadTreeViewItem).Item as PairText;  
            MessageBox.Show("Item : " + pair.Key);  
            e.Handled = true;  
        }  
 

When I double click on "line3.2" I want to obtain only the "Item : line3.2" message but there is "Item : line3" and "Tree" messages too.

Have you any suggestions ?

Thanks,
Guillaume R.
Tina Stancheva
Telerik team
 answered on 14 Oct 2010
3 answers
79 views
Sometimes when refreshing my grid I'm getting a modal overlay (transparent navy blue in color) with a indeterminate load circle on it.

The data still updates under the modal.. but the modal does not go away.. this behavior is reproducible.. but seems to be specific to certain data I'm changing in my grid.

Any ideas?
Vlad
Telerik team
 answered on 14 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?