Telerik Forums
UI for WPF Forum
1 answer
211 views
I think there is a bug with RadTimePicker or at least I don't understand why this does not work:

 

 

<Telerik:RadTimePicker

 

 

StartTime="0:0:0"

 

 

EndTime="0:10:0"

 

 

TimeInterval="0:0:10"

 

 

/>

 

>

 



My feeling is that seconds are not taken into account

Thanks
Kaloyan
Telerik team
 answered on 19 Nov 2009
1 answer
79 views
I have the following scenario: (NOTE: this is just a simplified example of my data schema)

I have a list of Orders. Each Order has a list of OrderDetails. Each OrderDetail has a type. I want to display a grid that shows for each order each OrderDetail.Type as a column.

So you have what would look like this: (Keep in mind that there are other detailtypes that are not used e.g. Type 2, 4, 5 and that new detailtypes can be created)
Order1
     -> Detail1.Type = "Type 1"   Detail1.Value = "Value for Detail 1 Type 1"
     -> Detail2.Type = "Type 3"   Detail2.Value = "Value for Detail 2 Type 3"
     -> Detail3.Type = "Type 6"   Detail3.Value = "Value for Detail 3 Type 6"
Order2
     -> Detail1.Type = "Type 1"   Detail1.Value = "Value for Detail 1 Type 1"
     -> Detail2.Type = "Type 6"   Detail2.Value = "Value for Detail 2 Type 6"
Order 3
     -> Detail1.Type = "Type 3"   Detail1.Value = "Value for Detail 1 Type 3"


I want to show a column for each detail type used in any orderdetail for any order. Also, there is no fixed list of these types because new orderdetail types can be added. So basically I am showing my orderDetail values horizontally instead of vertically and I create a column for each detailtype that exists in any orderdetail of an order even though some orders will not necessarily have a orderdetail with one of the types.
NOTE: A type can only be in one orderdetail per order.

And my resulting Grid should look like this:

Order  |                 Type 1                 |                 Type 3                 |                 Type 6                 |
   1           Value for Detail 1 Type 1         Value for Detail 2 Type 3           Value for Detail 3 Type 6
   2           Value for Detail 1 Type 1                                                        Value for Detail 2 Type 6
   3                                                        Value for Detail 1 Type 3


I have gone so far as creating a Dictionary of <Order, OrderDetail> and placed null in the OrderDetail value if it does not have a value for a type but I cannot figure out how to display this in a grid without programatically creating the grid.

Any ideas would be appreciated.

Thanks,
Pavel Pavlov
Telerik team
 answered on 19 Nov 2009
5 answers
262 views
Using RadGridView Q3 release.

I have a RadGridView in my main window. There is a datatrigger implemented to change the row's color to red when an "IsModified" property is set. This works well when the grid loads, but I have not been able to accomplish this from a window owned by the main window.

I have tried the following:
 ((Owner as MainPricingWindow).grdSearchResults.SelectedItem 
                
as SecurityVO).IsModified = true;

 

 

 

That sets the property appropriately, but doesn't change the grid row style in the owner window. The ItemsSource of the grid is an ObservableCollection and the object (SecurityVO) implements INotifyPropertyChanged. The IsModified property calls raises the PropertyChanged event. All this seems to happen normally when the grid is loaded with some rows that have IsModified set. It will not change the row when the property is modified from a child window.

One additional thing I should add. The style fo the grid row in question is set via a DataTrigger. So the foreground color of the row is set if a particular property of the SecurityVO is set to true.
 
I guess I'm missing something. Any help would be appreciated.

Thanks.

 

Charles
Top achievements
Rank 2
 answered on 19 Nov 2009
3 answers
74 views
I get an error deploying to the client when a grid has more than 10 columns
xml parser problem i think
works on clients machine when I reduce the columns to less than 10.
Works fine on my dev machine..
Milan
Telerik team
 answered on 19 Nov 2009
1 answer
121 views
I don't see anything in the readme for the Q3 controls, (no breaking changes) about MouseDown in the grid view...
I'd been using a late Beta from late Oct or early Nov witthout issues.

Installed the Q3 as we were heading into user acceptance testing tomorrow, and wanted to be off the beta. As I'd used a late beat, I'd assumed that the only coding changes would be bug fixes, as beta's shouldn't have funcationality changes (that's an alpha for me!!)Now my UI which used MouseDown extensivally is no longer working. Mouse down works for the right mouse still, but not left. No compile error and the MouseLeftButtomDown doesn't work either!!

So how do I capture a simple click event in my UI!! I've only got DoubleClick, but this is WPF, bit winform, and users are used to using just a simple click to perform tasks. I don't want to use any code behind events, and I have this UI pattern in dozens of grids, and to refactor would take too long.

 

<telerik:RadGridView Grid.Column="1"
Grid.Row="1"

 

Grid.ColumnSpan="2"

 

 

 

Name="telerikRadGridView1"

 

 

 

AutoGenerateColumns="False"

 

 

 

IsReadOnly="True"

 

 

 

ItemsSource="{Binding Source={StaticResource BLWeighCarrierList}}"

 

 

 

DataLoaded="telerikRadGridView1_DataLoaded"

 

 

 

MouseLeftButtonDown="telerikRadGridView1_MouseLeftButtonDown"    (Doesn't work)

 

 

 

MouseDown="telerikRadGridView1_MouseDown"                                    (Doesn't work)

 

 

 

MouseDoubleClick="telerikRadGridView1_MouseDoubleClick"                (Don't want to use)

 

 

  

 

 

 

 


I'll go back to the BETA for now.

 

Milan
Telerik team
 answered on 19 Nov 2009
1 answer
56 views
I have 2 data templates that are each bound to a different radPanelBarItem.  They both have checkboxes and I was wanting to change data templates when checked.  For example when I check a checkbox in the second radPanelBarItem it gets moved to the first radPanelBarItem and into its data template, as the data templates are different.  Thanks!


Tihomir Petkov
Telerik team
 answered on 19 Nov 2009
1 answer
97 views
Hi.
I have some trouble with ComboBox. I create window as shown below:

<Window x:Class="WpfApplication3.Window1"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    Title="Window1" Height="300" Width="300"

    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

    xmlns:tRB="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar">

        <telerik:RadComboBox Name="cBox"

            IsEditable="True"

            VerticalAlignment="Top">

            <telerik:RadComboBox.Items>

                <telerik:RadComboBoxItem Content="qwer"/>

                <telerik:RadComboBoxItem Content="asdf"/>

            </telerik:RadComboBox.Items>

        </telerik:RadComboBox>

</Window>



After double clicking on text i can't select any control in this window or close it. How can i resolve this problem?
Valeri Hristov
Telerik team
 answered on 19 Nov 2009
1 answer
86 views
hello all,

i am getting this error when i try to group on flds inside a grid. this does not happen always though, its very random but frequent error.
 please can anyone through some light on this.

i am using wpf controls version 2009.2.813.35

regards,
Sandy
Vlad
Telerik team
 answered on 19 Nov 2009
9 answers
332 views
On the RadCarousel how do i programatically set the item centered in the RadCarousel as the selected item?

I am having an issue where you key over to the next item and then try to click on the previous item that is still selected.  The item does not move via mouse click because it is already selected.


Thanks
capsule
Top achievements
Rank 1
 answered on 18 Nov 2009
2 answers
217 views

Hi,

I'm trying to figure out how to databind the RadTileView correctly.

The following XAML:

<Grid>
    <telerik:RadTileView
        Margin="12"
        Name="radTileView1"
        ItemsSource="{Binding}">
        <telerik:RadTileView.ItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding Path=Description}" />
            </DataTemplate>
        </telerik:RadTileView.ItemTemplate>
    </telerik:RadTileView>
</Grid>

Will get me the boxes with the title bar showing my Description property and the panel part of the box showing the name of the class. I'm not sure where to put the binding information for the body of the panel, and I can't find anything about databinding for this control in the docs. Is there an example somewhere of this control databound?

Arthur Vanderbilt
Top achievements
Rank 1
 answered on 18 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?