Telerik Forums
UI for WPF Forum
2 answers
91 views
Hello.

It seems that changing MemoryButtonsVisibility doesn't affect anything atleast in the new VisualStudio 2013 Theme.
Yoan
Telerik team
 answered on 07 Oct 2014
4 answers
137 views

I’ve never used the chart controls before and I’m attempting to create an area chart in WPF that allows the area (difference) between the 2 lines to be colored based on the line color that is greater. Is there a simple example I can see. I’ve included an example snap shot of what I’m trying to do.

 

  Thanks,

    Wayne

Martin Ivanov
Telerik team
 answered on 07 Oct 2014
3 answers
155 views
Is there a quick way to change the default selected cell colour from that light brown to whatever other colour I wish?
Vanya Pavlova
Telerik team
 answered on 07 Oct 2014
3 answers
108 views
I'm trying to use the RadMaskedDateTimeInput control, using a mask of "g", which provides date and time input with the AM/PM indicator. The AM/PM indicator can be changed using the up/down arrows when SpinMode is enabled but there is no way to change the AM/PM value using the keyboard. Do you have any solution or it is impossible for this component to do this?

Thx in advance

Davide
Pavel R. Pavlov
Telerik team
 answered on 07 Oct 2014
1 answer
146 views
Hi,

I have an issue with the RadGridView when used with NHibernate and Lazy loading.

When the page initially loads the gridview appears empty, but if I scroll data appears; this is aldo tru for paging with the RadDataPager, the first page appears empty but if you move to the second page then back, the data can be seen.

I am using the MVVM pattern and exposing an instance of VirtualQueryCollectionView to the view; if I put a break point on the property, I can see it being hit when the grid binds to the ViewModel. Looking inside the instance of the VirtualQueryCollection, I can see my data in the QueryableSourceCollection property, but the results view shows an IEnumerable filled with nulls.

A simplified view of my code would be something like:

View

<telerik:RadGridView x:Name="Grid" ItemsSource="{Binding MyDataCollection}">

ViewModel

protected MyViewModel(MyDataRepository repository)
{
   Repository = repository;
   GetMyData()
}
 
public VirtualQueryableCollectionView MyDataCollection { get; set; }
 
private void GetMyData()
{
   MyDataCollection= new VirtualQueryableCollectionView(Repository.GetMyData() {LoadSize = 50, VirtualItemCount = 4000})
}

Repository

public IQueryable<MyData> GetMyData ()
{
   var session = Session.SessionFactory.OpenSession()
   return session.Query<MyData>()
                          .Where(a => Property1.Contains(a.Value));
 
}


Any advice would be more than welcome, however I am stuck with NHibernate and must use lazy loading because of the amount of data.

Thanks In advance.


Paul.
Dimitrina
Telerik team
 answered on 07 Oct 2014
1 answer
111 views
Hello.

I'm using 'RadCartesianChart' as multi vertical axis.

I have problems.

'RadCartesianChart.HorizontalAxis' is used DateTimeContinuousAxis.

This is updated each 1sec. And other RadDataView is using 'LegendItems' of this chart.

Currently, graph of chart is changed.

But, MultiVertical & RadDataView is not updated data.

I want to update date about upper control.

What should I do?

If possible, please provide me about sample project.


Petar Marchev
Telerik team
 answered on 07 Oct 2014
1 answer
116 views
Hello!

I found neither explanation in documentation nor sample about AutoInsertHyperlinks property.

How does it work?

For example:

Document = new RadDocument();
 
const string input = @"
sdfsdf
sdf
sdf
s";
var editor = new RadDocumentEditor(Box.Document);
editor.Insert(input);

RadRichTextBox show this as plain text.

What behaviour of AutoInsertHyperlinks property is standard?

And how I can use advantages of this property right?

Thank you.
Aylin
Telerik team
 answered on 07 Oct 2014
1 answer
196 views
I need that my Diagram makes zoom and it occupies all Grid where is stayed when I execute my application. I have saved the coordinates of shapes in a database, but these coordinates correspond to one type of screen, and if someone execute the application in an other screen to other size, I want that the Diagram makes zoom automatic to fill all screen. It's possible?
Martin Ivanov
Telerik team
 answered on 07 Oct 2014
1 answer
3.9K+ views
I am attempting to bind a GridViewComboBoxColumn's item source found in a child grid to a property in the data context of the parent row. I believe I need to use a relative source and find an ancestor; however, I am not sure what the ancestor type should be. I was hoping there was something similar to a ListBoxItem type but I have not found one.

Here is my Grid:
<telerik:RadGridView Name="ParentGrid" ItemsSource="{Binding ParentItemSource}">
            <telerik:RadGridView.Columns>
                <telerik:GridViewComboBoxColumn Name="Parent Attribute"></telerik:GridViewComboBoxColumn>
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition />
            </telerik:RadGridView.ChildTableDefinitions>
            <telerik:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <telerik:RadGridView Name="ChildGrid" ItemsSource="{Binding Values}">
                        <telerik:GridViewComboBoxColumn Name="Parent Value" ItemsSource="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ???}}, Path=ParentAttribute.Values}"></telerik:GridViewComboBoxColumn>
                    </telerik:RadGridView>
                </DataTemplate>
            </telerik:RadGridView.HierarchyChildTemplate>
        </telerik:RadGridView>

Here are my classes:

public class MyAttribute
   {
       public string Name { get; set; }
       public MyAttribute ParentAttribute { get; set; }
       public ObservableCollection<MyValue> Values { get; set; }
   }
 
   public class MyValue
   {
       public string Name { get; set; }
       public string Value { get; set; }
   }

What I would like to see happen is when the user changes the ParentAttribute (through the Parent Attribute combo box column), the ItemsSource of the Parent Value column in the child grid will be bound to the ParentAttribute.Values field.


 
Boris
Telerik team
 answered on 07 Oct 2014
3 answers
377 views
Hi,

I'm using the latest version of Telerik and I have a problem opening a PDF file. I created a USerControl which containe a RadPdfViewer and I am unable to load a document PDF file from disk.

Here is the piece of code I use to load my document:

            PdfDocumentSource doc = new PdfDocumentSource(new System.Uri(@"d:\document.pdf"));
            this.Viewer.Document = doc.Document;

The "doc.Document" are always null?!?

Thank's
Alain
Todor
Telerik team
 answered on 07 Oct 2014
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?