Telerik Forums
UI for WPF Forum
1 answer
225 views
Hi
I am trying to use a single propertygrid that will be bound to an object that changes its type depending on user input.

This works fine when AutoGeneratePropertyDefinitions="true". However, I want to define my own property definitions depending on the type.

How do you recommend I do this?

Thanks
Craig
Radiation
Top achievements
Rank 1
 answered on 15 Feb 2013
1 answer
113 views
Considering purchasing the WPF controls.  Looking at using the Diagram control to 'diagram' our companies data work flow which will include having probably 200-500 shapes with connectors, etc.  As well as probably adding listboxes to the shapes, etc. I would also probably group many of the shapes in container controls. Has anyone done anything similiarly to this.  Concerned if the control can handle this kind of volume
Miro Miroslavov
Telerik team
 answered on 15 Feb 2013
1 answer
72 views
OK, I realize that the subject line of this thread is pretty wide. I'll try to narrow it down.

We're working on a LOB app that will use WPF. We have a WCF service which returns a list of results from a search, initiated by the user. The results include things like client first and last name, and the client ID. Right now we have the results displayed in a listbox, for each record. The issue is that a client may have multiple records in the database. Now we're displaying each record, but that seems wasteful, or at least very 1990's VB6 type of code. Instead we want to use a control which allows for some expandable regions. Naturally, the first thing that came to my mind was the out-of-the-box WPF Expander control. I've used it before, but more or less like a tab control. In this case what we want to do is show the client's first & last names, and client ID, but then in the collapsible regions data from each of the separate records related to that client. (As you can imagine, we have several clients with the same first and last names, so client ID is the only thing that differentiates between them.)

So the first thing I did was perform a web search and I came across a blog post by Karl Shifflet on ListBox grouping. I've been working my way through this, and I'm sure it will work. But we have the full suite of Telerik controls for WPF, Silverlight, ASP.NET, etc, and so I thought I'd ask on this forum, is there a Telerik control which we could use, which will speed development? I took a quick look at the Telerik Expander control, but want to know if there's another one I should consider instead? And it would be great to see some code examples, too, please.
Rossen Hristov
Telerik team
 answered on 15 Feb 2013
1 answer
169 views
I am attempting to set some resources to be read only in a given a view. I am doing this by creating a slot but it is making all of my resources read only. I need the end user to be able to interact with 1 of the slots.

Here is the code that I am using to set up the special slots. What else do I need to do to make this work?

private void CreateReadOnlySlots()
       {
           EventSlots = new ObservableCollection<Slot>();
 
          Slot slot = new Slot() { Start = DateTime.MinValue, End = DateTime.MaxValue};
 
          foreach (EventType e in Enum.GetValues(typeof(EventType)))
          {
              if (e != EventType.Macro)
              {
                  slot.Resources.Add(new Resource(e.ToString(), "Event Type"));
              }
          }
 
          slot.IsReadOnly = true;
          EventSlots.Add(slot);
       }

The xmal for this control looks like this
<telerik:RadScheduleView
                             AppointmentsSource="{Binding TimelineData, Mode=TwoWay}"
                             SpecialSlotsSource="{Binding EventSlots}"
                             AppointmentEdited="eventsTimeline_AppointmentEdited_1"
                             AppointmentSelectionChanged="eventsTimeline_AppointmentSelectionChanged_1"
                             NavigationHeaderVisibility="Collapsed"
                             ShowDialog="RadScheduleView_ShowDialog"
                             ResourceTypesSource="{Binding EventTypes}"                               
                             TimeRulerItemStyleSelector="{StaticResource TimeRulerItemStyleSelector}"
                             GroupHeaderStyleSelector="{StaticResource GroupHeaderStyleSelector}"
                             Name="eventsTimeline" VerticalAlignment="Top">
           <telerik:RadScheduleView.AppointmentSelectionBehavior>
               <ecu:SingleAppointmentSelectionBehavior></ecu:SingleAppointmentSelectionBehavior>
           </telerik:RadScheduleView.AppointmentSelectionBehavior>
            
           <telerik:RadScheduleView.ViewDefinitions>
               <telerik:DayViewDefinition
                   VisibleDays="1"
                   MajorTickLength="5min"
                   MinorTickLength="1min"
                   TimerulerMajorTickStringFormat="{}{0: HHmm}"
                   DayStartTime="00:00:00" DayEndTime="3:00:00" Orientation="Horizontal">
               </telerik:DayViewDefinition>
           </telerik:RadScheduleView.ViewDefinitions>
           <telerik:RadScheduleView.AppointmentStyleSelector>
               <ecu:EventStyleSelector
                       AudioEventStyle="{StaticResource AudioEvent}"
                       OdorEventStyle="{StaticResource OdorEvent}"
                       LightingEventStyle="{StaticResource LightingEvent}"
                       SmokeEventStyle="{StaticResource SmokeEvent}"/>
           </telerik:RadScheduleView.AppointmentStyleSelector>
 
           <telerik:RadScheduleView.GroupDescriptionsSource>
               <telerik:GroupDescriptionCollection>
                   <telerik:ResourceGroupDescription ResourceType="Event Types" />
               </telerik:GroupDescriptionCollection>
           </telerik:RadScheduleView.GroupDescriptionsSource>
       </telerik:RadScheduleView>
Yana
Telerik team
 answered on 15 Feb 2013
0 answers
67 views
Hello, I have a little doubt has as above each column to create an empty row inside the grid proprio
to be used as a filter.

Ex. Imagine a data grid with 10 columns and the first row that is empty and editable, so that
fassa information entered into the filter of the selected column.

graciously
André
Andre
Top achievements
Rank 1
 asked on 14 Feb 2013
5 answers
518 views
We using PRISM to to deploy a modular based app.

Each module will have a dedicated tab on the RibbonView.

I know that I can "hard-code" a ribbontab.  However, I would prefer that each module would have an associated XAML with the appropriate controls for the module in it (i.e. separation of design from development).

Is there a way to create a tab's controls in XAML and then "inject" or load that XAML into a ribbontab at runtime?

Thanks,
Joshua
Pavel R. Pavlov
Telerik team
 answered on 14 Feb 2013
6 answers
204 views
Hi guys,

I am porting code from our winform scheduler (home made) to the new schedulerView control of Telerik.
So to reproduce the same view, I am using a SchedulerView with a TimelineViewDefinition. I set the property DayStartTime and DayEndTime on my TimelineViewDefinition.
When executing my project, I noticed that these values are used only for the first day of my calendar.
Is it possible to extend this behavior for all days ?

To see what I wanted to do, please see the attached file.


Thank you
Vladi
Telerik team
 answered on 14 Feb 2013
1 answer
518 views
Another thread described how to change the border color of the control, but I can't figure out how to target the up and down arrow buttons in an IntegerUpDown control and change the brush for the arrows. Is this possible?
Masha
Telerik team
 answered on 14 Feb 2013
2 answers
126 views
After installing, I am not able to browse through the controls in the WPF Demos program. The application is crashing on each invocation of a control, just after downloading the sample.

Why?? How can I fix it?

Regards,
Wolfgang
W
Top achievements
Rank 1
 answered on 14 Feb 2013
2 answers
197 views
Hi,

In the diagraming component - is there a way how to do custom snapping? E.g. I have several components that can be joint together (say pipes) and if they are close enough with their correct edges they will snap. Something like the existing functionality IsSnapToItemsEnabled but not to edges but to custom points on an item...

Also - I would like to enable rotation only by steps of 90 degrees... Is there an easy way to achieve this?

Thanks,
Jarda
Hristo
Telerik team
 answered on 14 Feb 2013
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
LayoutControl
ProgressBar
Sparkline
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
Callout
Rating
Accessibility
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
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?