Telerik Forums
UI for WPF Forum
3 answers
205 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
292 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
140 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
93 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
211 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
167 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
197 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
3 answers
162 views
Hi,

after using the ScrollTimeRuler function, is it possible to get the value of the TimeRuler for future reference???

Thank's
Alain
Kalin
Telerik team
 answered on 20 Jun 2014
10 answers
397 views
Hello,

So here's my problem : I have 2 GridViewComboBoxColumn, let's call them cb1 and cb2, filled by default. I want that if I select a value in cb1, values in cb2 change ; if I select another value in cb1, values in cb2 change again.

To do so, I wanted to .Clear() my ObservableCollection<String> which is bound to my cb2, and then to .Add(new String()).

The problem is that an OutOfRangeException occurred on the .Clear() function. I saw somewhere that it was because I can't change anything on a property which is bound to the SelectedValueMemberPath property of the comboBox ; that's why I removed this row in my code. Now it works, I can empty and fill my ObservableCollection, but I can't get the selectedValue in cb2 anymore.

 Here's a sample of my problem, though I couldn't do anything for the dataSet which is filled by an Sql query in my code. Instead, I kept only one column inside, "reference", which represents the reference of the cameras used in my grid, in cb1. Values in cb2 are set in the Resources class.

SampleProject

Thanks for your help !
Christophe
Top achievements
Rank 1
 answered on 20 Jun 2014
1 answer
154 views
Hi.
I've been playing around with the TreeListView, which I like very much.
However, I notice that when enabling the brushes, the lines are broken when the row height becomes bigger than default (for example, a cell has a lot of text so the row height doubles).

This is the code (and I've attached a screenshot) :

<Grid DataContext="{Binding Source={StaticResource SampleDataSource}}">
         <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        
        <telerik:RadTreeListView AutoGenerateColumns="False"
        TreeLinesVisibility="Visible"
                                 ItemsSource="{Binding People}" Margin="10">
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
            </telerik:RadTreeListView.ChildTableDefinitions>
            <telerik:RadTreeListView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Width=".3*"
                                    Header="Name" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding SurName}" Width=".3*"
                                    Header="Surname" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Address}"
                                    Header="Address" TextWrapping="Wrap" Width=".3*"/>
            </telerik:RadTreeListView.Columns>
        </telerik:RadTreeListView>
</Grid>
Nick
Telerik team
 answered on 20 Jun 2014
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Rating
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?