Telerik Forums
UI for WPF Forum
1 answer
91 views
Good Day,

According to the telerik demo on PDF integration for the book control, you must import the pdf to a RadFixedDocument, then set the itemssource of the book to RadFixedDocument.Pages. After attempting to bind the itemssource to the RadFixedDocument.Pages, it shows blank pages with "Telerik.Windows.Documents.Fixed.Model.RadFixedPage" in them.

I had even tried to duplicate the example in the demo and I'm still getting the same outcome.

Is there a way to solve this while still adhering to the MVVM pattern?

Thanks.
Tina Stancheva
Telerik team
 answered on 23 May 2013
1 answer
311 views

I have a RadGridView which contains GridViewComboBoxColumn as column.

Let consider RadGridView having ItemsSource as ObservableCollection<Product> and GridViewComboBoxColumn ItemsSource is List.

I want to set the GridViewComboBoxColumn SelectedItem property based on property in RadGridView ItemsSource i.e based on ProductTypeId in item/row/Product of ItemsSource/ObservableCollection<Product>.

However Product class has property ProductTypeId of type int and not ProductType object as property.

So how can I set GridViewComboBoxColumn SelectedItem so that it display value of Product.ProductTypeId as selected. And also I want to bind SeletedItem with Mode = TwoWay so that whenever ComboBox SelectedItem changes it will be reflected in RadGridView 
's ItemsSource.

One more thing the ProductId name is different in Product (Bound to RadGridView) class as well as ProductType class. However I can change this to be the same. Current it's like ProductType.Id and Product.TypeId.

Any help would be much appreciated.

Thanks.

Max
Top achievements
Rank 1
 answered on 23 May 2013
1 answer
181 views
I am using RadMap in a project that displays a large facility layout.  Users can pan/zoom the map to select, inspect, and modify equipment around the facility.  The use of RadMap's ZoomLevel, MinZoomLevel, and MaxZoomLevel are used to limit the user's zoom capabilities.

In this project, RadMap works great except for one issue.  Users constantly complain that the zoom increments are too large.  Two zooms in either direction make the map useless.  We are either looking at a postage stamp when zoomed out twice, or most of the equipment icons are off the screen when zoomed in a few times.

RadMap zoom levels are integer values.  I have seen other users ask if there is a way to use floating point zoom levels (such as "14.30").  The answer was always "No".

Are there any plans to add floating point zoom levels to RadMap in the future?  Are there any workarounds I could use in this case to make zooming more beneficial?
Andrey
Telerik team
 answered on 23 May 2013
8 answers
403 views
Hi,

I'm currently trying to display two datatypes in a single RadTreeListView. The first datatype, 'Desk', have only two properties: 'Name', and a property 'Books' containing the second datatype: 'Book'.

public class Desk
{
    public string Name { get; set; }
    public List<Book> Books { get; set; }
}
 
public class Book
{
    public string Name { get; set; }
    public string Location { get; set; }
    // Other stuff
}

I want to display a column 'Name' populated by both types, and a few other columns (in this example : 'Location') populated only for the child elements (Book).

Even though I wasn't able to create different templates for each types, the data could be binded since the property names are matching, and I can edit the Desk's properties. But the grid throws a 'Object does not match target type' exception when I try to edit a Book's properties.

<telerikGridView:RadTreeListView x:Name="RadTreeListView1"
                    AutoGenerateColumns="False"
                    IsReadOnly="False"
                    RowIndicatorVisibility="Collapsed"                                
                    ItemsSource="{Binding Path=Desks}">
    <telerikGridView:RadTreeListView.ChildTableDefinitions>
        <telerikGridView:TreeListViewTableDefinition ItemsSource="{Binding Path=Books}" />
    </telerikGridView:RadTreeListView.ChildTableDefinitions>
    <telerikGridView:RadTreeListView.Columns>                      
        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Path=Name}" Header="Name" Width="150"/>
        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Path=Description}" Header="Description" Width="*"/>
        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Path=Location.Name}" Header="Location" Width="100"/>
        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Path=Intention}" Header="Intention" Width="100"/>
        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Path=TreatmentType}" Header="Treatment Type" Width="100"/>
        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Path=AccountingTreatment}" Header="Accounting Treatment" Width="100"/>
        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Path=IfrsType}" Header="Ifrs Type" Width="100"/>                       
    </telerikGridView:RadTreeListView.Columns>
</telerikGridView:RadTreeListView>

Am I doing something wrong? Is there a workaround for this problem?

(enclosed screenshot)
Nick
Telerik team
 answered on 23 May 2013
3 answers
266 views
Guys - I've run a profile on an app where we're only using your GridView, and are completely overriding your styles (based on your metro themes, bringing it back even more) and have noticed thousands of ResourceDictionaries instantiated which identify as internal to your DLLs - are you using hard-coded references, and do you have some form of resourcedictionary caching I might be missing? dll versions are 2013.1.220.40

Cheers, 
AC

Hristo
Telerik team
 answered on 23 May 2013
4 answers
198 views
Hi,

i use a RadDataForm in a DialogWindow. I want to open the Dialog, bind the ItemSource on the Dataform and now
I want to get the DataForm in Edit Mode.

I tried AutoEdit="true" this will open my DataForm in EditMode, but on click on the OK Button the DataForm ist still
in Edit Mode!

How can I open the DataForm in Edit mode?

Thanks
Best Regards
Rene
ITA
Top achievements
Rank 1
 answered on 23 May 2013
6 answers
119 views
Hello everyone,

maybe thats more a mathematical question but i have a spline series for which i want to calculate the average value for in an given interval. what would be the best way to do this?
is there for example an way to get the interpolated value of the series at a certain position?

like for example i have the datapoints (x,y):
(13:15, 200), (13:57, 154),..., (18:31, 177)
now i like to know whats the average value between 15:30 and 17:30 o'clock .. which can be an interval in which i might have no 'real' values at all but only interpolated ones..

thanks in advance!
Mikk
Top achievements
Rank 1
 answered on 23 May 2013
3 answers
170 views
I am using RadBarcode39 in my Windows Phone 8 App but it is not being scanned correctly. So was wondering if there are recommendations for Height and Width properties to get it to scan properly. Also the bars don't appear to match a printed paper bar code. Below is what I am doing. Should I be doing something more/different ?

            <telerikDataViz:RadBarcode39 Name="BarCodeControl"
                                         Height="120"
                                         Width="425"
                                         Margin="5"
                                         VerticalAlignment="Center"
                                         HorizontalAlignment="Center"
                                         Text="90321331" 
                                         ShowChecksum="False"/>


Aniruddha
Top achievements
Rank 1
 answered on 22 May 2013
2 answers
506 views
Hello
We have the following View structure:

  <RadDocking x:Name="_radDocking" RadDocking.SerializationTag="_radDocking">
    <RadDocking.DocumentHost>
      <telerik:RadSplitContainer x:Name="_splitContainer" RadDocking.SerializationTag="_splitContainer" InitialPosition="DockedTop">
        <telerik:RadPaneGroup x:Name="_contentArea" RadDocking.SerializationTag="_contentArea" IsContentPreserved="True" >
        </telerik:RadPaneGroup>
      </telerik:RadSplitContainer>
    </RadDocking.DocumentHost>
  </RadDocking>


Inside code behind we add  some RadPane to the PaneGroup. This works good.


Now we have the requirement to change the selected Pane in the case they are "groupped" after 2s. User should see each pane without a click.

In the case we have 4 RadPane:
Pane1 - Pane2 - Pane3 - Pane4 - Pane1 - Pane2 .....

The timer is not the problem. But how can I set the RadPane with should have focus inside codebehind?

Thanks
Stephan
Top achievements
Rank 1
 answered on 22 May 2013
1 answer
145 views
Dear sir,

Can I copy diagram items (shape or connection) as image in clipboard so that paste it into MS office or other applications?
If RadControl diagram does not support this functionality, Could you give me some tips for this?

Regards,
Tina Stancheva
Telerik team
 answered on 22 May 2013
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?