Hello,
After i updated my telerik UI for WPF i got the following error when i tried to execute my programs:
FileNotFoundException: Could not load file or assembly 'Telerik.Windows.Themes.Fluent, Culture=neutral' or one of its dependencies. The system cannot find the file specified.
When try to build my programs, i get the following warning's:
Assembly 'Telerik.Windows.Themes.Fluent' is not referenced by this project
It seems the theme has disappeared for some reason.
Can someone help me?
Regards
Hello Telerik,
I want to have insert, delete and update inline on ganttview. My requirements are:
1) context menu must show anywhere on the line, both grid part and view part of the ganttview.
2) on parent lines (summeries), I don't want the context menu to be activated/shown.
3) I want 3 items in context menus:
1- Add/Insert
2- Delete
3-Edit
4) I want to be able to edit just the grid part of the ganttview. (Is it possible to edit tasks directly on the view part too?)
5) of course the UI must be updated as soon as change is done, ie the view part.
Is there any example / sample on this? I appreciate your guidance and comments.
Best Regards
Kourosh
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)?