Telerik Forums
UI for WPF Forum
2 answers
123 views
hi 

1- is it possible to  handle the event when the user rename a sheet ?
2- how to add a new sheet in Sheetselector?
nacer eddine
Top achievements
Rank 1
 answered on 12 Feb 2015
10 answers
403 views
Hi,
I export to Excel and it work fine, but when one of the rows contains a xml value I get an error when opening up the exported file in Excel: 

"Problems during load:
Problems came up in the following areas during load:
Table - file cannot be opened because of errors."

The error log is like this:
XML PARSE ERROR:  Malformed or illegal processing instruction
  Error occurs at or below this element stack:
    <ss:Workbook>
     <ss:Worksheet>
      <ss:Table>
       <ss:Row>
        <ss:Cell>
         <ss:Data>

I guess Excel gets confused when there's two xml tags in the file?
I use 'xml' extension and ExportFormat.ExcelML

I read another thread about export where there was a problem regarding german umlaut letters.
The solution was to use encoding

byte[] buffer = Encoding.UTF8.GetBytes("<meta charset=\"utf-8\">");
stream.Write(buffer, 0, buffer.Length);

I there a similar way to fix this? to somehow format/encode the xml value so that the file can be exported.... 
Dimitrina
Telerik team
 answered on 12 Feb 2015
6 answers
254 views

Hello,

I want to print a RadScheduleView using MVVM.

Any help please.
Amaravathi
Top achievements
Rank 1
 answered on 12 Feb 2015
1 answer
125 views
Hi!

I wish to disable column resizing (for example, DataGridViewColumn) while editing cell in standard manner. When I type too long text in cell then column width is growing up that is unnecessary for me. I tried to set column width in design time to "Auto" or to particular width - no effect at all. Can anybody help me?
Dimitrina
Telerik team
 answered on 12 Feb 2015
1 answer
209 views
I have this class

public class myObject
  {
 
  public String Name { get; set; }
  public List<String> Tags{get;set;}
 
 
  }
this ViewModel
public class ViewModelMainWindow:ViewModel
  {
 
  System.ComponentModel.ICollectionView m_myListOfObject;
 
  public ICollectionView MyListOfObject
    {
    get { return m_myListOfObject; }
    set { m_myListOfObject = value; }
    }
 
 
 
  }
I initialize my App
public partial class App : Application
  {
  MainWindow m_ViewMainWindow;
  ViewModelMainWindow m_ViewModelMainWindows;
 
  List<myObject> m_myListOfObject;
 
  protected override void OnStartup(StartupEventArgs e)
    {
    Init();
    m_ViewMainWindow.Show();
    }
 
  void Init()
    {
    m_ViewMainWindow = new MainWindow();
    m_ViewModelMainWindows = new ViewModelMainWindow();
 
 
    PropertyGroupDescription groupDescriptionPorte = new PropertyGroupDescription("Tags");
 
    m_myListOfObject = new List<myObject>();
 
    m_myListOfObject.Add(new myObject());
 
    m_myListOfObject.Last().Name = "Element 1";
    m_myListOfObject.Last().Tags = new List<string>();
    m_myListOfObject.Last().Tags.Add("Tag 1");
    m_myListOfObject.Last().Tags.Add("Tag 2");
    m_myListOfObject.Add(new myObject());
 
    m_myListOfObject.Last().Name = "Element 2";
    m_myListOfObject.Last().Tags = new List<string>();
    m_myListOfObject.Last().Tags.Add("Tag 1");
    m_myListOfObject.Last().Tags.Add("Tag 3");
    m_myListOfObject.Add(new myObject());
 
 
    m_myListOfObject.Last().Name = "Element 3";
    m_myListOfObject.Last().Tags = new List<string>();
    m_myListOfObject.Last().Tags.Add("Tag 2");
    m_myListOfObject.Last().Tags.Add("Tag 4");
 
 
 
    m_ViewModelMainWindows.MyListOfObject = CollectionViewSource.GetDefaultView(m_myListOfObject);
 
    m_ViewModelMainWindows.MyListOfObject.GroupDescriptions.Add(groupDescriptionPorte);
 
    m_ViewMainWindow.DataContext = m_ViewModelMainWindows;
 
 
    }
  }

How can I view the groups by tags "Tag 1", "Tag 2", "Tag 3", "Tag 4" in a RadGridView?
In m_ViewModelMainWindows.MyListOfObject I have 4 groups, but in RadGridView of MainWindow I have 3 groups of list.

The MainWindow.xaml is
<Window
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="grouping_by_tags.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="137*"/>
            <RowDefinition Height="183*"/>
        </Grid.RowDefinitions>
 
        <telerik:RadGridView HorizontalAlignment="Left" Height="320" VerticalAlignment="Top" Width="517" ItemsSource="{Binding MyListOfObject}" Grid.RowSpan="2"/>
 
 
    </Grid>
</Window>

Best regards

Riccardo
Stefan
Telerik team
 answered on 12 Feb 2015
18 answers
248 views
Hello!

I use merge field type otherwise you offer and I have two questions about it. 

1. How can I redraw field from code then I update any properties in it?
2. How can I make two way binding for field result value (e.g. it calls my function then I change field in editor)?

Thank you.
Boby
Telerik team
 answered on 12 Feb 2015
1 answer
115 views
I have a problem with RadPieChart , when i get a small series then labels overlap. I will apreciate your help
Petar Marchev
Telerik team
 answered on 12 Feb 2015
3 answers
233 views
Could not load file or assembly 'EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. 

I am using EF version 6.  How can I make this work?
daniel
Top achievements
Rank 1
 answered on 12 Feb 2015
1 answer
90 views
Hi,

I got some axis on the left and right side and it turns out the left margin of the plot area is a few pixels thick when the right margin is not. 
Left side: https://dl.dropboxusercontent.com/u/55589036/Pictures/Screenshots/20150210105316.png
Right side: https://dl.dropboxusercontent.com/u/55589036/Pictures/Screenshots/20150210105510.png

How can I add the same margin to the right side as it appears on the left side?
Petar Marchev
Telerik team
 answered on 12 Feb 2015
1 answer
86 views
Is there a way to limit which shapes can be connected? 

For example, my diagram has three shapes, Ellipse, Hexagon and Star. Ellipse can be connected to Star and Hexagon can be connected to Star; however, Ellipse can never be connected to a Hexagon.

Milena
Telerik team
 answered on 12 Feb 2015
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?