Telerik Forums
UI for WPF Forum
3 answers
244 views
Hi Telerik, 

I would like to do like this: When I load the RadGridView (NOT when I validate cells), it will show me all the data with cell that has errors will be highlighted/ border by red color. If there are multiple errors in different cells, all the error cells will have red border color with tooltip.   

How can I do this?
Dimitrina
Telerik team
 answered on 20 Jun 2014
1 answer
222 views
Hello,

We'd like to change your manipulation to start the panning as follows:
(from) Ctrl + click
(to) right click

How do we realize this change?

We are looking forward to hearing from you.

Kind Regards,
Pavel R. Pavlov
Telerik team
 answered on 20 Jun 2014
8 answers
256 views
Hi, 

is there a way to access to RadImageEditor tools from code behind ... 

My intent is to change some images values such as brightness, contrast and sharpness from code and not from the UI.

Thx in advance

Davide
Todor
Telerik team
 answered on 20 Jun 2014
3 answers
178 views
Hi

I have a problem which could be solved by redusing filter distinct list (PART_DistinctValuesList) height. Problem occurs when application is running in "small screen resolution" browser (xbap), filter won't be fit inside of browser window when there are lot of items in distinct list. See picture filter_opened_when_run_in_browser.png about that problem.

Is there any easy way to change all filters list max height? I found this help http://www.telerik.com/forums/gridview-filter-fbfab7e2d676  but it didn't work when opened first time (see picture filter_first_open_maxheight_set_to_list.png) and works fine after second open (see picture filter_after_first_maxheight_set_to_list.png).

Regards
Harri
Yoan
Telerik team
 answered on 20 Jun 2014
1 answer
270 views

Hi,
I want to show the properties of an nested object a runtime. I defined a enumeration on which the object is created.

01.namespace RadGridView_SL4_AR_12
02.{
03.    /// <summary>
04.    /// A football position.
05.    /// </summary>
06.    public enum Position
07.    {
08.        GK, // create a GKPositionBehaviour
09.        DF, // create a DFPositionBehaviour
10.        MF, // create a MFPositionBehaviour
11.        FW  // create a FWPositionBehaviour
12.    }
13.     
14.    public class GKPositionBehaviour
15.    {
16.        public int A { get; set; }
17.    }
18. 
19.    public class DFPositionBehaviour
20.    {
21.        public int B { get; set; }
22.    }
23. 
24.    public class MFPositionBehaviour
25.    {
26.        public int C { get; set; }
27.    }
28. 
29.    public class FWPositionBehaviour
30.    {
31.        public int D { get; set; }
32.    }
33. 
34.}

Here is my viewmodel which does the instantiation of of the object.
01.namespace RadPropertyGridTester
02.{
03.    public class MyViewModel : INotifyPropertyChanged
04.    {
05.   
06.        private Position position = Position.DF;
07.        public Position Position
08.        {
09.            get
10.            {
11.                return position;
12.            }
13.             
14.            set
15.            {
16.                position = value;
17.                switch (position)
18.                {
19.                    case Position.DF:
20.                    Behavior = new DFPositionBehaviour();
21.                        break;
22.                    case Position.GK:
23.                    Behavior = new GKPositionBehaviour();
24.                        break;
25.                    case Position.MF:
26.                        Behavior = new MFPositionBehaviour();
27.                        break;
28.                    case Position.FW:
29.                        Behavior = new FWPositionBehaviour();
30.                        break;
31.                }
32.                 
33.                OnPropertyChanged("Position");
34.            }
35.        }
36. 
37.        private Object behavior = new DFPositionBehaviour();
38.        public Object Behavior
39.        {
40.            get
41.            {
42.                return behavior;
43.            }
44. 
45.            set
46.            {
47.                behavior = value;
48.                OnPropertyChanged("Behavior");
49.            }
50.        }
51.        // abbreviated for clarity
52.     }
53.}

When I start the program, the initial look is as expected, but when I change the property in the "Position" combo box, the property name of my Behavior object is not updated at all.
After changing to Position GK the value for the property name is supposed to be "A" and not "B".
How do i work around this bug?

 

Yoan
Telerik team
 answered on 20 Jun 2014
1 answer
125 views
Hi,
I would like to create possibility  drag and drop between TileList and CarouselPanel. I now how to implement drag and drop event in C# but I have problem with WPF. I don't know how to change style CarouselPanel to be able to drag CarouselItem to TileList. I would like to create animation when drag Item. I would like get something like this :
Nick
Telerik team
 answered on 20 Jun 2014
1 answer
46 views
Hi,
I would like to create possibility  drag and drop between TileList and CarouselPanel. I now how to implement drag and drop event in C# but I have problem with WPF. I don't know how to change style CarouselPanel to be able to drag CarouselItem to TileList. I would like to create animation when drag Item. I would like get something like this :

Nick
Telerik team
 answered on 20 Jun 2014
5 answers
194 views
Hi,

I am trying to use Telerik RadScheduleView, but I cannot
find a decent example online how to implement the following interfaces, in
order to get the entities for my database right

-         IAppointment, IExtendedAppointment
-         IResource
-         IExceptionOccurrence,
-         IResourceType
-         ICategory
-        ITimeMarker

I also tried to implement the default Telerik classes for
these, but when I try to create the database I get the following errors:

TelerikBaseClasses.Brush: : EntityType 'Brush' has no key
defined. Define the key for this EntityType.

TelerikBaseClasses.Transform: : EntityType 'Transform' has
no key defined. Define the key for this EntityType.

TelerikBaseClasses.BitmapEffect: : EntityType 'BitmapEffect'
has no key defined. Define the key for this EntityType.

TelerikBaseClasses.BitmapEffectInput: : EntityType
'BitmapEffectInput' has no key defined. Define the key for this EntityType.

TelerikBaseClasses.Geometry: : EntityType 'Geometry' has no
key defined. Define the key for this EntityType.

TelerikBaseClasses.PathFigure: : EntityType 'PathFigure' has
no key defined. Define the key for this EntityType.

TelerikBaseClasses.PathSegment: : EntityType 'PathSegment'
has no key defined. Define the key for this EntityType.

 

There is many more of these errors and I have no idea what
to do with them. I am using Entity Framework 6 code first.

I would like to get an example that shows how to generate a
database based on either those interfaces or classes.

Yana
Telerik team
 answered on 20 Jun 2014
2 answers
149 views
Hi,

I am creating my own list of categories for the
RadScheduleView, it displays ok with this code:

myScheduleView.CategoriesSource = context.Category.ToList();

When I create and save a new appointment I am able to
save it with the category Id from the list above.

var appointment = e.Appointment as SqlAppointment;

                if (appointment.Category.CategoryName != null)

                {
                    appointment.CategoryId = context.Category
                                                                 .Where(p => p.CategoryName == appointment.Category.CategoryName)
                                                                .Select(p => p.CategoryId).FirstOrDefault();
                }

                context.SqlAppointment.Add(appointment);

                context.SaveChanges();


However when I re-run the app and load this

myScheduleView.CategoriesSource = context.Category.ToList();
myScheduleView.AppointmentsSource = context.SqlAppointment.ToList();


It load the categories it loads the appointments the
appointments have their keys to the categories, however the RadScheduleView is
not showing the category for each of the appointment, and I don’t know why? It should
it knows the Sources and the id’s.

Any idea what am I missing?

Thank you
Yana
Telerik team
 answered on 20 Jun 2014
1 answer
186 views
Hello,

Seems that all posts that are remotely related to what I am experiencing are close to or more than a year old.

Once again I have the issue with the Telerik help that all code and samples are for static data sets and I find it really difficult to get samples of code that actually work in an MVVM environment.  Point in case, according to the Telerik PivotGrid help, the following code is supposed to define rows for a localdataprovider:

Telerik.Pivot.Core.PropertyGroupDescription propertyGroupDescription = new Telerik.Pivot.Core.PropertyGroupDescription();
                propertyGroupDescription.PropertyName = "Name";
                DateTimeGroupDescription dateTimeGroupDescription = new DateTimeGroupDescription();
                dateTimeGroupDescription.PropertyName = "Date";
                dateTimeGroupDescription.Step = DateTimeStep.Month;

                using (localDataProvider.DeferRefresh())
                {
                    localDataProvider.RowGroupDescriptions.Add(propertyGroupDescription);
                    localDataProvider.RowGroupDescriptions.Add(dateTimeGroupDescription);
                };

However as soon as I set the ItemsSource property to my actual collection of data, then the RowGroupDescriptions and ColumnGroupDescriptions collections are set to 0 and then nothing shows in the control.

Same if I set the ItemsSource before defining the groups, then the PropertyGroupDescriptions don't even get added to the collections.

I can't find any help on this scenario so I have posted here.

Rosen Vladimirov
Telerik team
 answered on 20 Jun 2014
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?