Telerik Forums
UI for WPF Forum
1 answer
146 views
Hello,

I'm trying to use use the ContentTemplateSelector propriety inside a RadPane this way :

<selector:CTS x:Key="CTS" DataTemplate1="{StaticResource SomeThing}" DateTemplate2="{StaticResource SomeThing2}"></selector:CTS>
<telerik:RadPane x:Name="FiltersPane" ContentTemplateSelector="{StaticResource CTS}" Content="{Binding Data, Mode=TwoWay}" >

But this don't work. On the other hand, those lines work just fine : 

<DataTemplate x:Key="SomeThing">
            <vw:aView DataContext="{Binding}"></vw:aView>
</DataTemplate>
 
<telerik:RadPane x:Name="FiltersPane" ContentTemplate="{StaticResource SomeThing}" Content="{Binding Data, Mode=TwoWay}">

So, if I use ContentTemplateSelector, it doesn't work. But if I directly set one template with ContentTemplate, it works fine. So, basicaly, all I want to know is if this is the right way to do and the problem come from my code or if it just the way I'm using ContentTemplateSelector that is wrong.

Thank you,
David  
David
Top achievements
Rank 1
 answered on 07 Jun 2013
3 answers
162 views
I am using the following code to render a ScatterLineSeries. The chart renders with points that do not represent real data. Up until 250 inches there is no data with a negative value, which the chart shows. Zooming into the chart, it can clearly be seen to render all values positive.

My data is an array of System.Drawing.Point(double, double), with x values at increments of 0.625 and Y values ranging from -3.5 to 3.5.

        <telerik:RadCartesianChart x:Name="uxChart">
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior />
            </telerik:RadCartesianChart.Behaviors>
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:LinearAxis x:Name="horizontalAxis"
                                    Minimum="{Binding XAxisMin}"
                                    Maximum="{Binding XAxisMax}"
                                    Title="{Binding XAxisTitle}" />
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis x:Name="verticalAxis"
                                    Minimum="{Binding YAxisMin}"
                                    Maximum="{Binding YAxisMax}"
                                    Title="{Binding YAxisTitle}" />
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:RadCartesianChart.Series>
                <telerik:ScatterLineSeries ItemsSource="{Binding Data}"
                                           XValueBinding="X"
                                           YValueBinding="Y" />
            </telerik:RadCartesianChart.Series>
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorLinesVisibility="XY" />
            </telerik:RadCartesianChart.Grid>
        </telerik:RadCartesianChart>
Petar Kirov
Telerik team
 answered on 07 Jun 2013
1 answer
68 views
Hi,

i use a RadDataform bind to a MVVM. This view contains some strings and an ObservableCollection<UserRollen>.
This Collection is bound to a GridView. In each row I have a button which should show me a Popup with details of
this Item.

How do I get the selected gridviewrow and the item which is selected?

Thanks
Best Regards
Rene
Ivan Ivanov
Telerik team
 answered on 07 Jun 2013
1 answer
103 views
I am in the process of creating a user control based on the customization example of the RadMenu.  I have placed the RadMenu in an expander on the left side of the UserControl and have it stretched vertically within the expander.  This works great for the top of the RadMenu control but I haven't been able to change the submenu/child elements to stretch vertically as well.  They always pop out directly to the right of the parent item (understandably).  Is it possible to change this behavior?  

Thanks so much.

Rosen Vladimirov
Telerik team
 answered on 07 Jun 2013
3 answers
242 views
Hello! Yesterday I put in my wpf application, normally functioning, two radsplitcontainers under raddocking, and from this moment my application, during debug mode in vs2010, takes a lot of time for each operation, a simply onover on a radbutton takes 2-3 seconds to appear and the response to every action is very slow, meaning 5-6 seconds. Closing the window has no effect since all the application, even with this window closed, becomes very slow. The application is normally functioning until I open the window containing these elements.

If I compile my application and i Run the ".exe" no issue, all is working fine.

Anybody find the same problem? Is there any solution?

Here is my code of the splitcontainers with two radgriviews inside:

<telerik:RadDocking x:Name="radDockingst" HasDocumentHost="False" Background="Transparent">

<telerik:RadSplitContainer x:Name="radSplitContainerst" Orientation="Vertical">

<telerik:RadPaneGroup>

<telerik:RadPane Header="Pane Left 1" >

<telerik:RadGridView Height="auto" ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Visible" telerikControls:StyleManager.Theme="Office_Blue" Margin="0,5,0,0" x:FieldModifier="public" x:Name="radGridRighe" FilteringMode="FilterRow" FontSize="11" RowHeight="18" CanUserSortGroups="True" CanUserSortColumns="True" CanUserSelect="True" AlternationCount="1" FontFamily="Tahoma" CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupPanel="False" IsReadOnly="True" Grid.Row="0" IsManipulationEnabled="True" />

</telerik:RadPane>

</telerik:RadPaneGroup>

<telerik:RadPaneGroup Background="Transparent">

<telerik:RadPane Header="Pane Left 2" Background="Transparent">

<Grid x:FieldModifier="public" Name="GridStandard">

<Grid.RowDefinitions>

<RowDefinition Height="0"/>

<RowDefinition Height="0"/>

</Grid.RowDefinitions>
</Grid>

 

</telerik:RadPane>

</telerik:RadPaneGroup>

</telerik:RadSplitContainer>

</telerik:RadDocking>

Please help me, I can't nomore test my application in debug due to slow performance.
CQT
Top achievements
Rank 1
 answered on 07 Jun 2013
1 answer
82 views
I have a RadGridView bound to a collection containing rows like the following:
public class RowViewModel : INotifyPropertyChanged
{
    public RowViewModel(Deal deal)
    {
        Deal = deal;
    }
 
    public Deal Deal { get; private set; }
 
    public event PropertyChangedEventHandler PropertyChanged;
 
    public void UpdateBookingStatus()
    {
        Deal.IsBooked = true;
        Deal.BookingTime = DateTime.UtcNow;
 
        OnPropertyChanged("Deal");
    }
 
    protected virtual void OnPropertyChanged(string propertyName)
    {
        var handler = PropertyChanged;
        if (handler != null)
            handler(this, new PropertyChangedEventArgs(propertyName));
    }
}
 
public class Deal
{
    public string Id { get; private set; }
    public DateTime ReceivedTime { get; private set; }
    public DateTime? BookingTime { get; set; }
    public bool IsBooked { get; set; }
 
    public Deal(string id, DateTime receivedTime)
    {
        Id = id;
        ReceivedTime = receivedTime;
    }
}

My grid has 4 columns bound to each of the Deal properties, with bindings such as 'Deal.Id', 'Deal.ReceivedTime', etc.

All displays correctly, but when I call the UpdateBookingStatus method, which updates a couple of Deal properties and then fires a PropertyChanged event on the Deal itself, the Deal.BookingTime and Deal.IsBooked column values are not always refreshed in the grid.  If I scroll the relevant rows out of view and then back into view, the values are updated correctly.

Is this expected?  Am I not supposed to be setting nested bindings on Columns?  Should the grid not listen for the OnPropertyChanged("Deal"event and update all columns using that property?

Thanks.
Marcus.
Rossen Hristov
Telerik team
 answered on 07 Jun 2013
1 answer
89 views
I have problem when i want to implicitly set Theme for my whole Application...

Every RadRibbonButton Style change ok, but the style of my TRadRibbonButton which is extended from RadRibbonButton doesn't accept newly set theme...

There must be something i have forgotten...could you help me...

Thank you
Dimitrina
Telerik team
 answered on 07 Jun 2013
2 answers
340 views
I have set a default filter on a boolean column in my RadGridView, so that it should only display rows where that column's values are true.  This works correctly, in that all the True rows are hidden.

However, because my backing collection only currently contains rows with a False value, the filter popup only shows the False checkbox option for selection, and doesn't show the True option that is actually checked.  See attached image.

This of course means that my default filter doesn't make any sense to the user until some rows with a True value arrive, which in this case could be hours.  They also can't clear the filter and then re-enable it for True values, as the True checkbox isn't there.

Given this is a boolean column, and there should always be True and False options, surely both options should always display as checkable options?  I understand this behaviour for columns that have infinite possible values, but not so much for finite values such as those in bool or enum columns.

Any suggestions for how I could tweak this for the desired behaviour?  I note that enum columns display all possible values in the Filter dropdown selectors (but not as checkable boxes) - even enabling this for bool columns would be useful.

Thanks in advance.

Marcus.
Marcus
Top achievements
Rank 1
 answered on 07 Jun 2013
3 answers
64 views
Hello,
I have an appointment for example from 2013.05.30. 9:00 to 2013.05.31. 16:00, and i have special slot for non working hours from 2013.05.30. 17:00 to 2013.05.31. 8:00.
I wouldn't like to divide the appointment into two parts, but I would like to cover it with a special slot.
How could I do that?
Yana
Telerik team
 answered on 07 Jun 2013
1 answer
113 views
Hai

      I need how to bind the data to a barcode(WPF) from entity context.

for example 
using(nothwindentites context = new nothwindentites ())
{
}

by using this context i want to bind the CustomerID to Barcode from CustomerTable.


thanks 

Ves
Telerik team
 answered on 07 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?