Telerik Forums
UI for WPF Forum
4 answers
181 views
Hi 
I have a property grid in my window and i want to control the property value change by an event such as ValueEditing.

Is this feature already supported?

Thanks,
Akram
Akram
Top achievements
Rank 1
 answered on 18 Dec 2012
2 answers
60 views
This is a (somewhat) obscure issue that has been driving us nuts for months now, but we finally seem to have narrowed it down. The issue is that when we used the RibbonView as a Prism region and activated RibbonTabs in that region, the RibbonTab would occasionally fail to render. What I mean by "fail to render" is that the RibbonTab would get added, but would be completely empty; just a blank, grey tab.

We fought this for months assuming that we had a bug somewhere in our region management code. The problem even went away for some unknown reason, but came back just this week. After scratching our heads for a while, we figured out that if we set IsAutoSize=False on all our RadRibbon elements and made sure to set Size=<somevalue> then the problem would go away. If we tried to use auto-sizing then the problem would come back and even get worse as we made more and more elements use auto-sizing.

This appears to be a similar issue: http://www.telerik.com/community/forums/wpf/ribbonview/ribbongroups-not-visible-issue.aspx

So the good news is that we figured out a viable work-around. The bad news is that there appears to be an issue with how size is calculated. I'm sure the folks at Telerik can whip up their own sample to see what's happening. Meanwhile, we're just glad to have identified a solution that will let us roll into production.

Greg
Greg
Top achievements
Rank 1
 answered on 18 Dec 2012
1 answer
117 views
Hi,

if I select a Row the Indicator doesn´t change!
The Arrow remains in the first-row any suggestions?

regards
Yoan
Telerik team
 answered on 18 Dec 2012
2 answers
137 views

I made a simple example:

public class TestData  
    {  
        public static IEnumerable<TestData> Generate(int count)  
        {  
            var rnd = new Random();  
 
            for (int i = 0; i < count; ++i)  
            {  
                yield return new TestData()  
                {  
                    SomeDtmProperty = DateTime.Now,  
                    SomeFltProperty = (float)rnd.Next() / (float)rnd.Next(),  
                    SomeIntProperty = rnd.Next(),  
                    SomeStrProperty = new string((char)((rnd.Next() % ((int)'z' - (int)'a')) + (int)'a'), rnd.Next() % 20 + 10)  
                };  
            }  
        }  
 
        public string SomeStrProperty { getset; }  
        public int SomeIntProperty { getset; }  
        public DateTime SomeDtmProperty { getset; }  
        public float SomeFltProperty { getset; }  
    } 
public
 partial class Window1 : Window  
    {  
        ObservableCollection<TestData> m_TestDataCollection = null;  
 
        public Window1()  
        {  
            InitializeComponent();  
            InitData();  
            gvTest.ItemsSource = m_TestDataCollection;  
        }  
 
        void InitData()  
        {  
            m_TestDataCollection = new ObservableCollection<TestData>(TestData.Generate(100));  
            m_TestDataCollection.Add(  
                new TestData()  
                {  
                    SomeStrProperty = "The last row"  
                });  
        }  
    } 
<Window x:Class="WpfApplication6.Window1"  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  
    Title="Window1" Height="300" Width="500">  
    <Grid>  
        <telerik:RadGridView x:Name="gvTest"/>  
    </Grid>  
</Window> 
Steps to reproduse:

1) Run this code

2) Scroll the grid down using right scrollbar

3) last row (marked "The last row") is half-visible (or invisible at all), despite of right scrollbar is bottom down (if you can't reproduce please set some another value in generate method)

4) Now scroll using mouse wheel. Everything is OK.

PS. I use Q3 without SP1 (will migration to SP1 fix this?)

Igor
Top achievements
Rank 2
 answered on 18 Dec 2012
2 answers
69 views
Hi,

I have 4 ScheduleViews on one page to represent a particular concept in my application.
I have created a class that inherits from ScheduleViewDragDropBehavior.

How do I determine which ScheduleView is being subjected to the drop (the "sender") within Drop method?

Thank you,

- Rebecca
Rebecca
Top achievements
Rank 1
 answered on 18 Dec 2012
1 answer
128 views
I used the RadControlsScenario to create a Window just to see how it works and things went well until I tried to Compile and open it.   The first think I found was no RadControlsScenario.Show(), How do you show the window.  The second is The name 'InitializeComponent' does not exist in the current context.  My namespace is the same as the main window that would be calling it.

An object reference is required for the non-static field, method, or property 'System.Windows.Window.ShowDialog()'

Built with RadControl Scenario
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Threading.Tasks;
using Telerik.Windows.Controls;
 
namespace My.Controls
{
    /// <summary>
    /// Interaction logic for RadSalesPersonRCS1.xaml
    /// </summary>
    public partial class RadSalesPersonRCS1 : Window
    {
        public RadSalesPersonRCS1()
        {
            InitializeComponent();
        }
    }
}

Where I try to open it from my main Window
private void MenuItem_ViewSalesPerson(object sender, RoutedEventArgs e)
      {
          RadSalesPersonRCS1 salesperson = new RadSalesPersonRCS1();
          RadSalesPersonRCS1.ShowDialog();
           
      }



Boyan
Telerik team
 answered on 18 Dec 2012
1 answer
155 views
Hi,

I am using both the silverlight timebar and kendo UI datepicker in the same page.
So, my requirement is to use both the controls(Timebar or kendo datepicker).
On changing the date in any one of the control(ex: timebar)  should deflect the same in other control(ex: datepicker).
On changing the kendoUI datepicker, I can trigger the radtimebar code behind and change the selectionstart and selectionend values.
But, the radtimebar is not rendered with the changed date.
Is there anything to refresh the radtimebar to display the changed content?
Greatly Appreciate your help on this.

Thanks in advance,
Nirmal Kumar Boopalan
Tsvetie
Telerik team
 answered on 18 Dec 2012
3 answers
143 views
Hi
I have a problem when using RadContextMenu against the CollectionEditor fields, when it is first time to open the context menu then the collection editor pop up automatically hidden.

Please advice me what to do to keep the pop up open.

Thanks,
Akram
Maya
Telerik team
 answered on 18 Dec 2012
1 answer
259 views
I am coding in WPF C# using MVVM design pattern. We try to adhere strictly to the pattern and put nothing in the code behind unless there is no option or it is completely unreasonable to do so. Having said that, I am working with a Telerik RadTreeView. Here is a snippet of it in my XAML:

<telerik:RadTreeView IsExpandOnSingleClickEnabled="True" IsLineEnabled="True" Margin="5"
                                
ItemsSource="{Binding ItemsView}"
                                
SelectedItem="{Binding SelectedWidget, Mode=TwoWay}"
                                
ItemTemplate="{StaticResource NodeTemplate}" />


Currently the tree is working properly so that if you highlight a tree item and click the OK button on the view, all is good. However, I need to also allow the user to double click on one of the tree items. This means I already have a command and method, protected override void OkAction(), in my view model with the needed logic. Telerik supplies a property called ItemDoubleClick that is supposed to supply functionality for the tree item double click. But I can't find anything to allow me to do this in the view model. In other words, how do I do the binding? We also have a behavior setup in our project for double clicking that I was told I could use, but I have no experience with behaviors. I'm still a little wet with WPF.

 

I would appreciate any help or direction anyone can provide.

XAML for NodeTemplate:

<Grid.Resources>
            <DataTemplate x:Key="WidgetTemplate">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/Resources/gear1.png" Margin="1" Stretch="None" />
                    <TextBlock Text="{Binding Name}" VerticalAlignment="Center" Margin="6,0,0,0" />
                </StackPanel>
            </DataTemplate>

            <HierarchicalDataTemplate x:Key="NodeTemplate" ItemsSource = "{Binding Children}" ItemTemplate="{StaticResource WidgetTemplate}">
                <TextBlock Text="{Binding Name}"/>
            </HierarchicalDataTemplate>

        </Grid.Resources>
Hristo
Telerik team
 answered on 18 Dec 2012
1 answer
92 views
Hello,

i have Autocomplete and IsEditable Combobox, this has dropdown entries  1. "United States Minor Outlying Islands" and 2. United States.
The User enters "Un" and combo box auto comleted to "United States Minor Outlying Islands", its ok.
The User can delete Text " Minor Outlying Islands" and has "United States" text now, but Selected Value was not changed to "United States"



Vladi
Telerik team
 answered on 18 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?