<telerik:RadGridView Name="playersGrid" ItemsSource="{Binding Players}" AutoGenerateColumns="False"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding Number}"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding Position}"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding Country}" IsReadOnlyBinding="{Binding IsReadOnlyProperty}"/> <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding ClubID}" SelectedValueMemberPath="ID" ItemsSourceBinding="{Binding AvailableClubs}" DisplayMemberPath="Name" /> </telerik:RadGridView.Columns> </telerik:RadGridView>/// <summary>/// A football player./// </summary>public class Player : INotifyPropertyChanged{ public event PropertyChangedEventHandler PropertyChanged; private string name; private int number; private Position position; private string country; private bool isReadOnlyProperty; public bool IsReadOnlyProperty { get { return this.isReadOnlyProperty; } set { if (value != this.isReadOnlyProperty) { this.isReadOnlyProperty = value; this.OnPropertyChanged("IsReadOnlyProperty"); } } } private int clubID; public int ClubID { get { return this.clubID; } set { if (value != this.clubID) { this.clubID = value; this.UpdateIsReadOnlyProperty(this.clubID); this.OnPropertyChanged("ClubID"); } } } public string Name { get { return this.name; } set { if (value != this.name) { this.name = value; this.OnPropertyChanged("Name"); } } } public int Number { get { return this.number; } set { if (value != this.number) { this.number = value; this.OnPropertyChanged("Number"); } } } public Position Position { get { return this.position; } set { if (value != this.position) { this.position = value; this.OnPropertyChanged("Position"); } } } public string Country { get { return this.country; } set { if (value != this.country) { this.country = value; this.OnPropertyChanged("Country"); } } } public IEnumerable<Club> AvailableClubs { get { return from c in Club.GetClubs() where c.ID == this.ClubID select c; } } public Player() { } public Player(string name, int number, Position position, string country, int clubID, bool isReadOnlyProperty) { this.name = name; this.number = number; this.position = position; this.country = country; this.clubID = clubID; this.isReadOnlyProperty = isReadOnlyProperty; } protected virtual void OnPropertyChanged(PropertyChangedEventArgs args) { PropertyChangedEventHandler handler = this.PropertyChanged; if (handler != null) { handler(this, args); } } private void OnPropertyChanged(string propertyName) { this.OnPropertyChanged(new PropertyChangedEventArgs(propertyName)); } public override string ToString() { return this.Name; } public static ObservableCollection<Player> GetPlayers() { return new ObservableCollection<Player>(Club.GetClubs().SelectMany(c => c.Players)); } private void UpdateIsReadOnlyProperty(int clubID) { if (clubID == 2 || clubID == 3) { this.IsReadOnlyProperty = true; } else { this.IsReadOnlyProperty = false; } }}
Hi,
I was wondering if there was a way to provide the format to display a formatted DateTime like we do with the DateTimeFormatString in other grids. I am looking to have the datatype of the field as DateTime to preserve the filtering. Any advice in this regard would be greatly appreciated.
Thanks,
Sri

Hi there,
is there no german localization for the spreadsheet ribbon?
Best regards

Is there a way to serialize/deserialize a RadCartesianChart instance? I saw methods to export to an image, but that is not what I want.
I have an application that creates/shows instances of RadCartesianChart. I want to render the same chart in a separate application and let users interact with it. Are there any other approaches that can be recommended to handle this problem?
Kind Regards,
Albert

Hi, I am creating a project using the valiadtion as IDataErrorInfo, but I need to create a simple edit form that the RadMaskedTextInput components have the Value option filled with a value.
This is my example TextInput:
<telerik:RadMaskedTextInput Value="{Binding Interessado, Mode=TwoWay, ValidatesOnDataErrors=True, NotifyOnValidationError=True, ValidatesOnExceptions=True}"
x:Name="Interessado"
EmptyContent="Nome ou razão social"
Culture="pt-BR"
Mask=""
InputBehavior="Insert"
UpdateValueEvent="PropertyChanged"
HorizontalAlignment="Stretch"/>
And this is my validation class:
public class Validations : IDataErrorInfo
{
public string Interessado { get; set; }
#region IDataErrorInfo
public string this[string columnName]
{
get
{
if ("Interessado" == columnName)
{
if (String.IsNullOrEmpty(Interessado))
{
return "Campo Nome do Interessado é obrigatório!";
}
}
return "";
}
}
public string Error
{
get { throw new NotImplementedException(); }
}
}
So, how can I set the Value with a text (because I am using the Value option for Binding)?

Is it possible to change the order of the items used in the filter?
Now they are being set by the order of the columns of the gridviewcolumns
Hi.
I had Page with RadRichTextBox like word format.
It almost same with default telerik word project.
I want RadRichTextBox filled in Grid's RowDefinition(1), could resize.
Please see attched files. How can I fill it to row ?
sorry for so basically.
thanks.

Nothing happens if you try to change order of items in grid grouping panel by drag and drop. However it worked in version 2015.
Any idea? Is that bug? I could not find any solution on forum too.
Thanks for any hints!
Hi all,
we have a problem with tracking buttons in our application after changing library (Nevron to Telerik).
Previously we did use (Nevron) in our WinForms application but now we are using RadButton (Telerik).
We had:
public partial class
{}
after the change, we have:
public partial class RadButton
{}
That was only changed in our code.
For automatically tests we are using Ranorex 8. After this change, we can not use this same test which we created before.
Is any solution how we do not need to change all Ranorex tests?
before in Ranorex was: "button[@controlname='NextButton']"
after: "container[@controlname='NextButton']
Please see attachments:
Thank you for any solution.
Br,
Pawel