Telerik Forums
UI for WPF Forum
1 answer
325 views
Congrats on the forward thinking with respect to the Metro theme.

The docs are a little behind the code (we all sympathise), so I was wondering how to set the Metro theme, and select the Colors used in the theme. Purple is a bit....purple. :)

Bob
Dani
Telerik team
 answered on 15 Jul 2011
2 answers
335 views
I just downloaded the new Q2 bits (demo is impressively clean - nicely done!) and realized you're now offering a busy indicator similar to the one in Windows Phone - something I've been looking for for awhile now. The only question I have is if there is a way to change the color of the ellipses used in the control? I was looking through the them (BusyIndicator_style.xaml) and I can see where the fill is set to AccentBrush but I wasn't sure if it was possible to override this with another color. Purple doesn't really match my app very well.

Thanks in advance!

Edit: One thing that is missing from the demo is a way to change the theme on all the controls. What happened to that choice? I like the Metro one, but I would like to see some of the others too - especially for the main progress bar.
Dani
Telerik team
 answered on 15 Jul 2011
3 answers
82 views
Hello,

I want the RadScheduleViewer to scroll in TimelineView from currentdate to the next or previous appointment.

Do i have to implement a custom solution?

For what is the property AppointmentNavigationButtonsVisibility used?

It seem not to work. When the AppointmentNavigationButtonsVisibility is set to Allways nothing happens.

Please help !!!

Greetings
Valeri Hristov
Telerik team
 answered on 15 Jul 2011
3 answers
103 views
I'd like to have the pagesize for the data pager be dependent on how many items can fit in the gridview without scrolling. I'm assuming I can write code to do this, but was wondering if there might be a better way.
Vlad
Telerik team
 answered on 15 Jul 2011
2 answers
184 views
Hi,


I have a DataTable with numeric data that is bound to a RadGridView. When I sort a column by clicking the grid's header it is sorted by that column which is correct. The problem is that the sort applied to the column is a string sort and I would like it to sort numerically. I looked in the grid documentation under Sorting to no avail. Could you please tell me how this is done?


Best Regards,
Jose
Jose Simas
Top achievements
Rank 2
 answered on 15 Jul 2011
9 answers
115 views
Let DoubleValue be a non primitive type wrapping a double, with a TypeConverter attached that knows how to convert it from/to a Double, and suppose a GridViewDataColumn is bound via DataMemberBinding to a property of this type. Editing the value causes an InvalidCast exception, from String to DoubleValue, in GridViewDataControl.OnKeyDown. Although the exception is captured internally, it is still visible in the Output window of VS.

Going through a ValueConverter in the DataMemberBinding does not make a difference here: the same exceptions are still raised.

The internally raised exceptions are unpleasant and can cause problems with e.g. copy/paste, which I have noted in separate post.

jose
Top achievements
Rank 1
 answered on 15 Jul 2011
6 answers
175 views
Using a RadComboBox on a UserControl; compiled on Win7 x64 using VS2010 and executed on a WinXP. When the drop down on the combo box is activated the contents is behind the dialog box.

This is limited to a UserControl opened in a RadWindow

  RadWindow host = new RadWindow();
  host.Content = (new UserControl1());

If the UserControl1 contains a ComboBox then the dropdown appears behind the UserControl1 window.
George
Telerik team
 answered on 15 Jul 2011
1 answer
174 views
Greetings,

I've taken an interesting approach to binding in the RadGridView in order to meet some business requirements. Specifically, I'm extending my bound object from System.Dynamic.DynamicObject in order to dynamically "add" properties to the object at run time based on user selection. Here's a simplified version of my bound object:

public class GridItem : DynamicObject, INotifyPropertyChanged
{
    public GridItem(DateTime dateTime, decimal value)
    {
        _dateTime = dateTime;
        _value = value;
    }
 
    //NOTE: The DateTime property is private forcing the GridView to use the DynamicObject implementation...
    private readonly DateTime _dateTime;
    private DateTime DateTime
    {
        get { return _dateTime; }
    }
 
    //NOTE: The Value property is private forcing the GridView to use the DynamicObject implementation...
    private decimal _value;
    private decimal Value
    {
        get { return _value; }
        set
        {
            _value = value;
 
            OnPropertyChanged("Value");
        }
    }
 
    public override bool TryGetMember(GetMemberBinder binder, out object result)
    {
        result = null;
 
        switch (binder.Name)
        {
            case "DateTime":
                result = DateTime;
                break;
 
            case "Value":
                result = Value;
                break;
        }
 
        return true;
    }
 
    public override bool TrySetMember(SetMemberBinder binder, object value)
    {
        switch (binder.Name)
        {
            case "Value":
 
                decimal result;
                if(decimal.TryParse(value.ToString(), out result))
                {
                    Value = result;
                }
 
                break;
        }
 
        return true;
    }
 
    private static readonly IEnumerable<string> _members =
         new List<string>() { "DateTime", "Value" };
 
    public override IEnumerable<string> GetDynamicMemberNames()
    {
        return _members;
    }
 
    public event PropertyChangedEventHandler PropertyChanged;
    private void OnPropertyChanged(string propertyName)
    {
        if (PropertyChanged == null)
            return;
 
        PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    }
}

I add the items to my GridView using:

this.GridView.ItemsSource =
     new List<GridItem>()
          {
               new GridItem(DateTime.Parse("1/1/2009"), 10.9m),
               new GridItem(DateTime.Parse("3/31/2010"), 11.4m),
               new GridItem(DateTime.Parse("5/1/2011"), 12.5m),
          };

And my Grid is defined as such:

<Telerik:RadGridView x:Name="GridView" AutoGenerateColumns="False">
     <Telerik:RadGridView.Columns>
          <Telerik:GridViewDataColumn UniqueName="DateTime" Header="Date/Time"
               DataMemberBinding="{Binding DateTime}" IsReadOnly="True"
               DataType="{x:Type System:DateTime}" IsFilterable="True" />
          <Telerik:GridViewDataColumn UniqueName="Value" Header="Value"
               DataMemberBinding="{Binding Value}" DataType="{x:Type System:Decimal}"
               IsFilterable="True" />
     </Telerik:RadGridView.Columns>
</Telerik:RadGridView>

The approach works great for binding; however, the column filtering does not work. It seems to be broken when there's not a public property exposed.

I'm using the Q3/2010 Telerik controls.

Any help or work around would be appreciated. We must have column filtering.

Thanks a bunch.
Rossen Hristov
Telerik team
 answered on 15 Jul 2011
1 answer
210 views
Hi
In gridview filter option you can see drop down always start with "Is Equal To" is it possible to change to "Contains", i do not want to do any custom filters as i like inbuilt filters and just want to change filter drop down option to selected " Contains " option only, so if i want to filter something in column i just enter value and press "Filter" button and filter will filter value based on "Contains" option.



Kind Regards:
Dimitrina
Telerik team
 answered on 15 Jul 2011
3 answers
128 views
Hi there,
I have a GridViewComboBoxColumn in a nested hierarchical GridView, but somehow I can't set ItemsSource, DataMemberBinding and SelectedValueMemberPath properly from XAML. So, is there a simple way to find out, which ItemsSource is really set in the nested Grid at runtime, in order to fix the other props?
btw, my error looks like
BindingExpression path error: 'Name' property not found on 'object' ''Char' (HashCode=5177423)'. BindingExpression:Path=Name; DataItem='Char'
Cheers,
Hermann
Dimitrina
Telerik team
 answered on 15 Jul 2011
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?