Telerik Forums
UI for WPF Forum
1 answer
495 views
I am using the RadWindow.Alert dialog to show warnings. How can i show some informations (without warining-symbol) with the same layout?
Nasko
Telerik team
 answered on 12 May 2015
2 answers
200 views
Hi,

I'm trying to set a default value for RadGridView's property ShowColumnSortIndexes. I've tried to do so by adding a style to App.xaml:

<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

Patrick
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 12 May 2015
5 answers
197 views

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

ITA
Top achievements
Rank 1
 answered on 11 May 2015
3 answers
146 views

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

Dimitrina
Telerik team
 answered on 11 May 2015
1 answer
128 views

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);
            }
        }

 

 

Vladi
Telerik team
 answered on 11 May 2015
7 answers
1.5K+ views
I just started with a trial of your controls. I am running a WPF datagrid side-by-side with your radgridview to compare operation. The radgridview scrolling is too slow and jerky with my small test data set (8 columns, 2500 rows of doubles). My XAML is simple

<telerik:RadGridView Name="radGridView1" HorizontalAlignment="Left" />

 I bind to a datatable as follows:

radGridView1.ItemsSource = logTable.DefaultView;

I notice that your radgridview has some features I probably don't need for this application, such as grouping by column, and some filtering in the columns. Can I turn these off and get faster scrolling?


Dimitrina
Telerik team
 answered on 11 May 2015
1 answer
245 views

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);
            }
        }

Dimitrina
Telerik team
 answered on 11 May 2015
1 answer
120 views

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

Kalin
Telerik team
 answered on 11 May 2015
2 answers
122 views

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

Sungwoo
Top achievements
Rank 1
 answered on 11 May 2015
2 answers
335 views

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?

crazy05
Top achievements
Rank 1
 answered on 08 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?