Telerik Forums
UI for WPF Forum
1 answer
186 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
76 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
539 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
217 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
649 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
137 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
205 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
8 answers
293 views
HI there,

I have a little problem. I want to show the FrozenColumnsSplitter but without allowing the user to change the freeze. This means CanUserFreezeColumns="False".
I set the frozen columns throught the code. How can I achieve the described behavoir?

Kind regards
Fx
Dimitrina
Telerik team
 answered on 14 Feb 2013
1 answer
200 views
Hello,

I have placed a RadRibbonView inside a prism region.

<ItemsControl x:Name="RibbonRegion" cal:RegionManager.RegionName="RibbonRegion"></ItemsControl>

Neither the region nor the RadRibbonView have an explicit Height set. Clicking the ApplicationMenu Button, to expose the Backstage, will cause the issue described in the attached image.
The Backstage won't expand to ocuppy the whole window size, it will instead look as though it's trapped inside the region.

I came up with a temp workaround: Adding Height="143" to the region, and adding in the code behind:

MyRibbonView.Height = SystemParameters.WorkArea.Height;

will solve the problem, but will cause unexpected behavior in, for example, the help ScreenTips.

I found a post claiming that adding

<ItemsControl.ItemsPanel>
    <ItemsPanelTemplate>
      <WrapPanel />
    </ItemsPanelTemplate>
  </ItemsControl.ItemsPanel>
inside the region will make it expand when needed and solve the problem, but it does not, and makes the whole region content disappear, also.

Thanks.
Tina Stancheva
Telerik team
 answered on 14 Feb 2013
6 answers
242 views
It seems if I have a column with IsGroupable set to false, I can still drag and drop it to the group panel and grouping still works.

I know this can be workaround by handling and canceling the Grouping event, but are you guys planning a fix for this?

Thanks
Vlad
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?