Telerik Forums
UI for WPF Forum
2 answers
206 views
Hi,


I've got a little problem with grid virtualization. I've got this grid view:

<telerik:RadGridView Name="mailRecipients" 
                             Grid.Row="0" 
                             ItemsSource="{Binding ElementName=departmentMailRecipients, Path=MailRecipients}" 
                             ActionOnLostFocus="CommitEdit" 
                             AutoGenerateColumns="False"   
                             ColumnsWidthMode="Auto" 
                             ShowGroupPanel="False"   
                             Sorting="MailRecipients_Sorting" 
                             PreviewKeyDown="MailRecipients_PreviewKeyDown" 
                             telerik:GridViewCell.IsEditorVisibleChanged="MailRecipients_IsEditorVisibleChanged">  
            <telerik:RadGridView.Columns> 
                  
                <!-- Department column --> 
                <telerik:GridViewDataColumn DataMemberPath="Department"   
                                            CellStyle="{StaticResource GridViewCellStyle}" 
                                            HeaderText="{x:Static properties:StringResources.Department}"   
                                            IsReadOnly="False"   
                                            IsGroupable="False">  
                    <telerik:GridViewDataColumn.EditorSettings> 
                        <telerik:ComboBoxEditorSettings ItemsSource="{markup:EnumValues {x:Type entities:Department}}" /> 
                    </telerik:GridViewDataColumn.EditorSettings> 
                </telerik:GridViewDataColumn> 
                  
                <!-- Mail type column --> 
                <telerik:GridViewDataColumn DataMemberPath="MailType" 
                                            CellStyle="{StaticResource GridViewCellStyle}" 
                                            HeaderText="{x:Static properties:StringResources.Type}"   
                                            IsReadOnly="False" 
                                            IsGroupable="False">  
                    <telerik:GridViewDataColumn.EditorSettings> 
                        <telerik:ComboBoxEditorSettings ItemsSource="{markup:EnumValues {x:Type entities:MailType}}" /> 
                    </telerik:GridViewDataColumn.EditorSettings> 
                </telerik:GridViewDataColumn> 
                  
                <!-- Address column --> 
                <telerik:GridViewDataColumn HeaderText="{x:Static properties:StringResources.Email}"   
                                            CellStyle="{StaticResource GridViewCellStyle}" 
                                            IsReadOnly="False" 
                                            IsGroupable="False">  
                    <telerik:GridViewDataColumn.DataMemberBinding> 
                        <Binding Path="Address" NotifyOnValidationError="True">  
                            <Binding.ValidationRules> 
                                <validationRules:MandatoryRule /> 
                                <validationRules:EmailRule /> 
                            </Binding.ValidationRules> 
                        </Binding> 
                    </telerik:GridViewDataColumn.DataMemberBinding>      
                </telerik:GridViewDataColumn> 
                  
                <!-- Delete column --> 
                <telerik:GridViewColumn> 
                    <telerik:GridViewColumn.CellStyle> 
                        <Style TargetType="{x:Type telerik:GridViewCell}">  
                            <Setter Property="Template">  
                                <Setter.Value> 
                                    <ControlTemplate TargetType="{x:Type telerik:GridViewCell}">  
                                        <Border Background="{TemplateBinding Background}" 
                                                BorderBrush="{TemplateBinding BorderBrush}" 
                                                BorderThickness="{TemplateBinding BorderThickness}">      
                                            <Button Style="{StaticResource GridImageButton}" 
                                                    Click="Delete_Click">  
                                                <Image Source="{StaticResource Delete}" /> 
                                            </Button> 
                                        </Border> 
                                    </ControlTemplate> 
                                </Setter.Value> 
                            </Setter> 
                        </Style> 
                    </telerik:GridViewColumn.CellStyle> 
                </telerik:GridViewColumn> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 


When user delete the content of the address column for the first row (The mandatory rules mark the cell as invalid) then scroll until the last row and rescroll on the first row,
the old content is displayed. Is there a way to leave the invalid content of a cell when user scroll down/up? (I know that wrap the
grid into a ScrollViewer avoid the virtualization but I prefer find another way, this bug occurs also on Grid with huge amount of data in my application)



Xavier.
Steffen
Top achievements
Rank 1
 answered on 15 May 2009
2 answers
159 views
Hi,

I seem to have a problem with a multiple-series bar chart.  I have a custom X-Axis, which works fine.   The Y-Axis is simply a number of phone calls figure, so the auto-scale axis would be fine.  However, the values do not seem to marry up with those in the bar series.  The image below illustrates this (flickr link, not sure if you can embed pics on here) :


As you can see, the rightmost green bar = 111, which seems to line up with the Y-axis - however, none of the others do. 

The XAML for the chart is as follows (incomplete, the remainder is legend name, title etc):
<control:RadChart x:Name="skillBarChart"   
                telerik:Theming.Theme="Office_Black"  > 
                       <control:RadChart.DefaultView> 
                         <chart:ChartDefaultView > 
                            <chart:ChartDefaultView.ChartArea > 
                                <chart:ChartArea    x:Name="BarChartArea"  
                                                    LegendName="CustomLegend"  
                                                    FontFamily="Arial" FontSize="18"  
                                                    Height="446.848" Width="985"
                                    <chart:ChartArea.AxisX> 
                                        <chart:AxisX    MajorGridLinesVisibility="Collapsed" 
                                                        Title="Skill" /> 
                                    </chart:ChartArea.AxisX> 
                                    <chart:ChartArea.AxisY> 
                                        <chart:AxisY    MajorGridLinesVisibility="Collapsed" 
                                                        MinorGridLinesVisibility="Hidden"  
                                                        Title="Calls" AutoScale="True"  
                                                        MinValue="0" MaxValue="500"/> 
                                    </chart:ChartArea.AxisY> 
                                    <chart:ChartArea.Background> 
                                        <LinearGradientBrush    EndPoint="0.5,1" StartPoint="0.5,0"
                                                <GradientStop           Color="#FF000000" Offset="0"/> 
                                                <GradientStop           Color="#FF63B2DE" Offset="1"/> 
                                        </LinearGradientBrush> 
                                    </chart:ChartArea.Background> 
                                </chart:ChartArea> 
                            </chart:ChartDefaultView.ChartArea> 

I'm populating the chart as follows (again a snippet) :

 
                 
                            foreach (string s in skillname) 
                            { 
                                DataPoint Idp = new DataPoint(); 
                                Idp.YValue = noOfInCalls[Array.IndexOf(skillname, s)]; 
                                Idp.XValue = Array.IndexOf(skillname, s); 
                                series1.Add(Idp); 
                                 
 
                                DataPoint Odp = new DataPoint(); 
                                Odp.YValue = noOfOutCalls[Array.IndexOf(skillname, s)]; 
                                Odp.XValue = Array.IndexOf(skillname, s); 
                                series2.Add(Odp); 
                            } 
                    skillBarChart.DefaultView.ChartArea.DataSeries.Add(series1); 
                    skillBarChart.DefaultView.ChartArea.DataSeries.Add(series2); 


I then reformat the X-Axis with specific values for the 'skillname' to which each Y value corresponds, but do not do anything with the Y-Axis.   However,  I still get the issue as shown in the image.  The '120' marker in the image is also cut off by the chart title area which I cannot seem to resolve.

Any assistance gratefully received!  Thanks!

Richard

Brian Seay
Top achievements
Rank 1
 answered on 14 May 2009
7 answers
200 views
Hello, 
How can i set format (for example dd/MM/yyyy) for DatePickerEditorSettings? 
 I don't want the format depended on the culture.
Don't found some property for it.

Could you help me?
Thanks.
Rossen Hristov
Telerik team
 answered on 14 May 2009
1 answer
126 views

Hi

I  am unable to run your online wpf demo; see stack trace below

PLATFORM VERSION INFO
 Windows    : 6.0.6001.65536 (Win32NT)
 Common Language Runtime  : 2.0.50727.3053
 System.Deployment.dll   : 2.0.50727.3053 (netfxsp.050727-3000)
 mscorwks.dll    : 2.0.50727.3053 (netfxsp.050727-3000)
 dfshim.dll    : 2.0.50727.3053 (netfxsp.050727-3000)

SOURCES
 Deployment url   : http://demos.telerik.com/wpf/
 Application url   : http://demos.telerik.com/wpf/Telerik.Windows.Examples.exe.manifest

IDENTITIES
 Deployment Identity  : Telerik.Windows.Examples.xbap, Version=1.0.5.104, Culture=neutral, PublicKeyToken=06e954e71cc7b2f5, processorArchitecture=msil
 Application Identity  : Telerik.Windows.Examples.exe, Version=1.0.5.104, Culture=neutral, PublicKeyToken=06e954e71cc7b2f5, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
 * Online only application.
 * Browser-hosted application.

ERROR SUMMARY
 Below is a summary of the errors, details of these errors are listed later in the log.
 * An exception occurred while downloading the application. Following failure messages were detected:
  + Value does not fall within the expected range.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
 No transaction error was detected.

WARNINGS
 There were no warnings during this operation.

OPERATION PROGRESS STATUS
 No phase information is available.

ERROR DETAILS
 Following errors were detected during this operation.
 * [13/05/2009 14:50:06] System.ArgumentException
  - Value does not fall within the expected range.
  - Source: System.Deployment
  - Stack trace:
   at System.Deployment.Internal.Isolation.IEnumSTORE_ASSEMBLY.Next(UInt32 celt, STORE_ASSEMBLY[] rgelt)
   at System.Deployment.Internal.Isolation.StoreAssemblyEnumeration.MoveNext()
   at System.Deployment.Application.ComponentStore.CollectCrossGroupApplications(Uri codebaseUri, DefinitionIdentity deploymentIdentity, Boolean& identityGroupFound, Boolean& locationGroupFound, String& identityGroupProductName)
   at System.Deployment.Application.SubscriptionStore.CommitApplication(SubscriptionState& subState, CommitApplicationParams commitParams)
   at System.Deployment.Application.DeploymentManager.SynchronizeCore(Boolean blocking)
   at System.Deployment.Application.DeploymentManager.SynchronizeAsyncWorker()

COMPONENT STORE TRANSACTION DETAILS
 No transaction information is available.

 



I am using IE8


P

Kaloyan
Telerik team
 answered on 14 May 2009
1 answer
106 views

I try to run this short code sample but I have an error "There is no source code available for the current location". When I press the "start" button of VS2008, I have a box which ask me to point to RadCalendar.cs (???). If I press "cancel" I have the "There is no source code ...." message

Here is my code

<

 

Window x:Class="Window1"

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

Title="Window1" Height="299" Width="663" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">

 

 

 

<Grid>

 

 

 

<telerik:RadCalendar x:Name="calendar" IsTodayHighlighted="true"

 

 

SelectionChanged="OnCalendarSelectionChanged" SelectionMode="Extended" Columns="3"

 

 

ViewsHeaderVisibility="Visible" Culture="fr-FR" Margin="0,0,0,79">

 

 

 

</telerik:RadCalendar>

 

 

 

</Grid>

 

</

 

Window>

I have an official version WPF Q1 (14th april).

 

Boyan
Telerik team
 answered on 13 May 2009
1 answer
97 views
I have a WPF application with a Line chart.

I have a bunch of things that I cannot figure out how to do...
(1) When I user selects a particular value (in another control), which can be used to identify a particular data point in my chart, I want to be able to "highlight" that point on my chart. Is it possible to do that?
(2) Is it possible to make the circle which represents each data item bigger?
(3) When I add more data to the dataseries, the distance between two points on the X Axis keeps shrinking. Is it possible to keep that distance constant and scroll horizontally instead?

Any help with this is greatly appreciated.

Thanks,
-Sunandini


Giuseppe
Telerik team
 answered on 13 May 2009
1 answer
184 views
Hi,

As you can see in the code below, I create a RadGauge dynamically in the codebehind. The problem is the needles are not animated if I code like in this way. Do I miss something in the code?

Needle ndl = new Needle();
ndl.Foreground = new SolidColorBrush(Colors.Yellow);
                        ndl.Background = new SolidColorBrush(Colors.Yellow);
                        RadGauge rg = new RadGauge();
                        rg.Height = 100;
                        rg.Width = 100;
                        
                        ndl.IsAnimated = true;
                        ndl.Duration = new Duration(TimeSpan.FromSeconds(2));
                        rsStat.Min = 0;
                        double d = 0;
                        if (Double.TryParse(Value, out d))
                        {
                            rsStat.Label = new LabelProperties();
                            rsStat.Label.Location = ScaleObjectLocation.Inside;
                            rsStat.Label.FontSize = 8;
                            rsStat.Indicators.Add(ndl);
                            rsStat.Max = Math.Pow(10, Math.Ceiling(Math.Log10(d)));
                            ndl.Value = d;
                        }
Andrey
Telerik team
 answered on 12 May 2009
4 answers
146 views
I notice that there is a Windows control in Silverlight. Any liklihood of a similar control in your WPF tools because I need to implement am MDI interface in both silverlight and WPF. Many thanks
Valeri Hristov
Telerik team
 answered on 12 May 2009
3 answers
138 views

Hi,

I have used RadCarouselPanel with Button (Images used in the ex.) control as items as well appllied style to button. The problem is I am not getting scroll effect while clicking on button as demo shows  whereas it shows as Carousel effect on the form.

  <telerik:RadCarouselPanel x:Name="Panel1" VerticalAlignment="Center"
            IsOpacityEnabled="True" IsScalingEnabled="True" IsPathVisible="True"
            PathPadding="50" CanHorizontallyScroll="True" CanVerticallyScroll="True" >
                <Button  Style="{DynamicResource StudyMode}">Menu 1</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 2</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 3</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 4</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 5</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 6</Button>
            </telerik:RadCarouselPanel>

I can not understand what is missing. I could not find any method / way to get it work.

Thanks in advance for any help

Punit
Top achievements
Rank 1
 answered on 12 May 2009
1 answer
131 views
Do your chart controls have any export abilities? i.e. PDF, Excel, etc.

I read that charts could be saved as an image. Is it possible to save as a vector graphic?
Vladimir Milev
Telerik team
 answered on 11 May 2009
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?