Hello Telerik,
How can I show week number on timerulerlines?
I am following your tutorial:
<telerik:RadGanttView.TimeRulerLines>
<telerik:GroupTickLine>
<telerik:TickInterval Interval="OneMonth" FormatString="{}{0:MMMM, yyyy}" />
</telerik:GroupTickLine>
<telerik:MajorTickLine>
<telerik:TickInterval Interval="OneWeek" />
</telerik:MajorTickLine>
<telerik:MinorTickLine>
<telerik:TickInterval Interval="OneDay" FormatString="Day {0:dd}" />
</telerik:MinorTickLine>
</telerik:RadGanttView.TimeRulerLines>
but the week number is not displaying. just the word "Week" is showing!
Best Regards
kourosh
Hi, i m ashrul
i have problem here, so i have radgridview like this, i have to set selected item on child, in my case last data in is the last selected item automatically from code behind without click.
but i can't handle that.
my code like this :
int a = radTreeListView.Items.TotalItemCount;
var selectedItem = this.radTreeListView.Items[a-1] as Data;
and Data is my property class.
so what i want is, if user add a new data in radgridview so its automatically selected from code behind.
thanks in advanced.

<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.
