Telerik Forums
UI for WPF Forum
1 answer
270 views
Hi,

I was not able to Bind Checked Items in RadTreeView to a list of predefined entities.

What is the preferred approach bind the list of hierarchical data in two way mode to checked Items in tree. So that check/uncheck will  update the bound list.

Regards,
Deepak N
Kiril Stanoev
Telerik team
 answered on 01 Oct 2009
3 answers
105 views
I apologize if this is covered somewhere else but I have been unable to find it so far.  I'm trying to "sync" a detail screen with a Telerik gridview.  The user will edit the information on the detail screen and then save.  I want the save process to update the grid information but I want to be able to return to the record being edited.  This is a multi-user scenario so there is no guarantee that a record would return in the same position so I'm trying to come up with a way to "Find" the right record to fill the SelectedItem property.  I would like to be able to utilize the data's primary key to search the grid and selected that record, is this possible?  I've been looking at the FindRecord method but without success.

Thanks,
-Sid Meyers.
Stefan Dobrev
Telerik team
 answered on 01 Oct 2009
1 answer
137 views
Hai,
    I am using 2D pie chart. In that i want to change ChartLegend Foreground color as Black. When i use the below code it doesn't works.

RadChart.DefaultView.ChartLegend.Foreground =

new SolidColorBrush(Colors.Black);

How can i do this?

Thanks.

 

Velin
Telerik team
 answered on 01 Oct 2009
13 answers
459 views
Whenever I try to load the demo it crashes on my machine.  The error log is below.

PLATFORM VERSION INFO
    Windows             : 5.1.2600.131072 (Win32NT)
    Common Language Runtime     : 2.0.50727.1433
    System.Deployment.dll         : 2.0.50727.1433 (REDBITS.050727-1400)
    mscorwks.dll             : 2.0.50727.1433 (REDBITS.050727-1400)
    dfshim.dll             : 2.0.50727.1433 (REDBITS.050727-1400)

SOURCES
    Deployment url            : http://demos.telerik.com/wpf/

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 manifest. Following failure messages were detected:
        + Exception reading manifest from http://demos.telerik.com/wpf/Telerik.Windows.Examples.xbap: the manifest may not be valid or the file could not be opened.
        + Manifest XML signature is not valid.
        + No signature was present in the subject.


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.
    * [11/7/2008 9:01:28 AM] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
        - Exception reading manifest from http://demos.telerik.com/wpf/Telerik.Windows.Examples.xbap: the manifest may not be valid or the file could not be opened.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifest(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
            at System.Deployment.Application.DeploymentManager.BindCore(Boolean blocking, TempFile& tempDeploy, TempDirectory& tempAppDir, FileStream& refTransaction, String& productName)
            at System.Deployment.Application.DeploymentManager.BindAsyncWorker()
        --- Inner Exception ---
        System.Deployment.Application.InvalidDeploymentException (SignatureValidation)
        - Manifest XML signature is not valid.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
            at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
        --- Inner Exception ---
        System.Security.Cryptography.CryptographicException
        - No signature was present in the subject.

        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Internal.CodeSigning.SignedCmiManifest.Verify(CmiManifestVerifyFlags verifyFlags)
            at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.


Vlad
Telerik team
 answered on 30 Sep 2009
1 answer
157 views
Hi,

I have two radgridview. The first has only MasterGridviewTemplate, the second has MasterGridviewTemplate and ChilGridViewTemplate.

The first grid has a column name is Price. It's FormatString is {0:#,##0.00} . it shows prices like 8.26 although incoming values is 8.2600. It is good, I want to this.

But I could not achive this on the second grid's ChildGridViewTemplate. On the second grid's ChildGridViewTemplate has a column name is Price. It's FormatString is {0:#,##0.00} . But it shows prices like 8.2600. I want to show it as 8.26.


Please help.
Nedyalko Nikolov
Telerik team
 answered on 30 Sep 2009
1 answer
98 views
Hi,
first of all I'm sorry for my English.
I'm a new user, I'm trying to binding a fieldFilterDescription property  (value) to Textbox Property (text)
I used an example found in this forum "SilverlightGridCustomFilterRow"
In SilverlightGridCustomFilterRow the binding work well, but in my vb code WPF
the binding don't work.
When I change the textboxproperty don't change the fieldFilterDescription property
   
What's Wrong?

Dim ffd As FieldFilterDescription = Nothing 
 
For Each cell As GridViewHeaderCell In cells 
    Dim column As GridViewDataColumn = DirectCast(cell.Column, GridViewDataColumn) 
    Dim descriptions As IEnumerable(Of FieldFilterDescription) = radGridView.FilterDescriptors.OfType(Of FieldFilterDescription)() 
    ffd = (From fd In descriptions Where fd.FieldName = column.UniqueName Select fd).FirstOrDefault() 
 
    Dim element As FrameworkElement = Nothing 
    element = New TextBox() 
    element.Height = 24 
    element.Margin = New Thickness(3, 3, 3, 5) 
    If ffd IsNot Nothing Then 
       ffd.Filter1.[Operator] = Telerik.Windows.Data.FilterOperator.Contains 
       BindText(element, "Value", ffd.Filter1) 
 
    End If 
next 
 
 
 
Private Sub BindText(ByVal ptextBox As TextBox, ByVal pproperty As String, ByVal source As Object) 
 
            Dim textProp As DependencyProperty = TextBox.TextProperty 
            If Not BindingOperations.IsDataBound(ptextBox, textProp) Then 
                Dim b As Binding = New Binding(pproperty) 
                b.Source = source 
                b.Mode = BindingMode.TwoWay 
                b.Path = New PropertyPath(pproperty) 
                ptextBox.SetBinding(TextBox.TextProperty, b) 
            End If 
 
End Sub 
 

Best regards
Marco
Stefan Dobrev
Telerik team
 answered on 30 Sep 2009
1 answer
48 views
[Newbie question]

Hi,

I'm trying to set up a simple line chart.
My code is very simple:

 

DataSeries ds1 = new DataSeries();  
ds1.LegendLabel = "Random";  
ds1.Definition = new Telerik.Windows.Controls.Charting.LineSeriesDefinition();   
FillDataSeries(ds1); // Fills series data points with XValue and YValue   
chartArea1.DataSeries.Add(ds1); 

When the code runs, a NullReferenceException is thrown.
----------------------------------------------------------------------------------------------------------

 

System.NullReferenceException: Object reference not set to an instance of an object.

   at Telerik.Windows.Controls.Charting.BaseAnimationConverter.GetAnimationSettings() in c:\Builds\WPF_Scrum\Chart_WPF_2009_Q2_SP1\Sources\Development\Controls\Chart\Chart\Animations\BaseAnimationConverter.cs:line 163
-----------------------------------------------------------------------------------------------------------

what am I missing?

Thanks.

 

 

Velin
Telerik team
 answered on 30 Sep 2009
1 answer
61 views
Hello,
I want to use Items.Add to feed my Grid, instead of ItemsSource.  Does the current version support Unbound mode?   I'm using 2009 Q2 SP1.

Regards,
Marco
Milan
Telerik team
 answered on 30 Sep 2009
6 answers
123 views
Hello,
the questions is listed like below

1 After doing the following example the chart crashed.
 for (int i = 0; i < 2; i++)
   {
          ChartArea.DataSeries.First().Add(new DataPoint(i, 8E-308));
   }

2 When five hundred or more DataPoints are added to the chart the refresh rate of the chart is so slow that it always makes me think the chart crashes.

Do you have any solutions?Thanks!
zai yunfeng
Top achievements
Rank 2
 answered on 30 Sep 2009
1 answer
70 views
Hi,

The requirement is to select  the next row after deletion of a row ,which is triggered due removal of item leading to Items Collection Changed event.
I tried  creating custom Grid with the following code and It did not work for me [for simplicity i'm selecting first element in the below code snippet]

//In constructor
Items.CollectionChanged += ItemsOnCollectionChanged;
    
        private void ItemsOnCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
        {
            if(args.Action==NotifyCollectionChangedAction.Remove)
                SelectedItem = Items[0];
        }
Milan
Telerik team
 answered on 29 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Iron
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Iron
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?