<Style TargetType="telerik:RadGridView"><Setter Property="ShowColumnSortIndexes" Value="True" /></Style>
The project builds, but when the first gridview is displayed I get the following error in visual studio (2012):
The property "ShowColumnSortIndexes" is not a DependencyProperty. To be used in markup, non-attached properties must be exposed on the target type with an accessible instance property "ShowColumnSortIndexes". For attached properties, the declaring type must provide static "GetShowColumnSortIndexes" and "SetShowColumnSortIndexes" methods.
When settings the property directly on an individual RadGridView, it works as expected.
Can you please show me how to set an application wide default value for this property? I'm using 2014.2
Thanks,
KJ
Hi,
using GridViewControl with about 7 Columns. I like to add a custom filter over all columns by using a Textbox above the GridView.
How can i do this, is there an exmaple somewhere?
Thanks a lot
best regards
Rene
Hi,
I am currently trying to get some access to the validation state inside a cell through UI automation.
What is set when a validation error occurs is GridViewEditorPresenter.ErrorMessage. I thought, I could bind for example AutomationProperties.ItemStatus of the presenter to this message but unfortunately the GridViewEditorPresenter does not provide an AutomationPeer, so it is not visible to UI automation tools. Then I though about adding a peered element parallel to the presenter, but GetChildrenCore() of the parent cell does not deliver other thing than the presenter's content.
So my question ist: How to access the validation error message through UI automation?
Thanks,
Arthur
I am not sure if this is by design, but I noticed if I create an Exception at runtime using a Custom Appointment and change a field, it doesn't update the UI until I do something like change the View and come back. I have found a hack where I delete the appointment and then immediately re-add it. But is there a way to tell the UI to update after adding an Exception? Here is some example code I made to show that on a button click, I am just creating an Exception and adding it to an Appointment. I want to change the border color. But it doesn't change until I change the Schedule View and come back.
public MainWindow()
{
InitializeComponent();
DataContext = this;
var resourceType = new ResourceType("Location") { AllowMultipleSelection = true };
var room1 = new Resource("Room 1");
var room2 = new Resource("Room 2");
var room3 = new Resource("Room 3");
resourceType.Resources.Add(room1);
resourceType.Resources.Add(room2);
resourceType.Resources.Add(room3);
var groupDescription = new GroupDescriptionCollection
{
new DateGroupDescription(),
new ResourceGroupDescription { ResourceType = "Location" }
};
ScheduleView.GroupDescriptionsSource = groupDescription;
ScheduleView.ResourceTypesSource = new ResourceTypeCollection { resourceType };
var app = new CustomeAppoinment { Start = new DateTime(2015, 05, 07, 4, 50, 00), End = new DateTime(2015, 05, 07, 6, 50, 00), Subject = "Test" };
RecurrencePattern pattern;
RecurrencePatternHelper.TryParseRecurrencePattern("FREQ=DAILY;COUNT=10", out pattern);
app.RecurrenceRule = new RecurrenceRule(pattern);
app.Resources.Add(room1);
app.Resources.Add(room2);
Appointments.Add(app);
}
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
{
var appointment = Appointments[0].Copy();
var customAppointment = new CustomAppointment
{
Start = appointment.Start,
End = appointment.End,
RecurrenceRule = appointment.RecurrenceRule,
Subject = appointment.Subject,
IsAllDayEvent = appointment.IsAllDayEvent,
UniqueId = Guid.NewGuid().ToString(),
BorderColor = Brushes.Green
};
foreach (var item in appointment.Resources)
{
var resource = item as Resource;
customAppointment.Resources.Add(resource);
}
Appointments[0].RecurrenceRule.AddException(Appointments[0].Start, customAppointment);
//Workaround. Remove and re-add the appointment to update the UI.
var appt=Appointments[0];
Appointments.Remove(appt);
Appointments.Add(appt);
}
private ObservableCollection<CustomAppointment> _appointments = new ObservableCollection<CustomAppointment>();
public ObservableCollection<CustomAppointment> Appointments
{
get { return _appointments; }
set { _appointments = value; RaisedPropertyChanged("Appointments"); }
}
public event PropertyChangedEventHandler PropertyChanged;
public void RaisedPropertyChanged(string propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null)
{
var e = new PropertyChangedEventArgs(propertyName);
handler(this, e);
}
}
<
telerik:RadGridView
Name
=
"radGridView1"
HorizontalAlignment
=
"Left"
/>
radGridView1.ItemsSource = logTable.DefaultView;
Here is my Code. Can I use GridViewcolumn and datatemplate for this ? I want Radbutton in every row. Once I click on that button, I want to pass the row details to ICommand. How can I do this ?
<telerik:GridViewColumn Width="100">
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>
public ICommand ShowCommand
{
get
{
return new RelayCommand(this.ShowDetails);
}
}
Hi, I have products under framework 3..5 and I want to add new modules for increase features in some searches with the RadDateTimePicker control.
Are there any dll for put this control under framework 3.5?
The arquitectura of my clients can't be updated becouse they have other applications supported with the framework 3.5.
Regards
Hi ,
I am trying to make background using a custom shape and zoom in/out and pan with other shapes. All seems to work but when I tried to run layout, the background shape also participate in layout. Is there a way to exclude specific shape when doing layout ?
TreeLayoutSettings layout = new TreeLayoutSettings() { TreeLayoutType = TreeLayoutType.TreeLeft };
Diagram.Layout(LayoutType.Tree, layout);
Regards,
Sungwoo
How can I remove Select all and column values in Filter in WPF RadGridView.
I just want to show Dropdown selections like Is Equal to, Starts with and contains.
How can I do this?