Telerik Forums
UI for WPF Forum
0 answers
90 views
Never mind. I figured out the issue 
Sudeshna
Top achievements
Rank 1
 updated question on 26 Jan 2023
1 answer
130 views

I have one parent type “Aa” inherit from “Telerik.Windows.Controls.ScheduleView.Appointment”, with two inherited types “Bb” and “Cc”. while each one has different properties implementation.

 

I have a RadScheduleView which it’s AppointmentsSource bounded to my ViewModel collection of parent type “Aa” (ObservableCollection<Aa>)

 

I also have two baskets, first one is a list of “Bb” items while the second one is a list of “Cc” items.

 

I can drag any item from each basket (“Aa” or “Bb”) and drop them on the ScheduleView so a new Appointment is created.

 

My problem is that the newly created appointment is always created from parent type “Aa” no matter which basket I selected to drag.

 

I want it to work according to the origin dragged item type so the new appointment will match the type “Bb” or “Cc”.

 

 

I Prepared a Sample code you can see here:

 

https://gist.github.com/EfiNadell/bcc10a8f93b210b7eaf626e67cf459a2

Dilyan Traykov
Telerik team
 answered on 25 Jan 2023
2 answers
187 views

In the process of debugging an issue with the size of Diagram's ManipulationAdorner, I'm wondering how the size is set, please?

This is in WPF, and I'm currently on v. 2021.1.325.40.

In Visual Studio, in the Live Property Explorer, I see the Height and Width listed as being set via "Animation and Visual States" (see attached image), and the values are not what I want.  I'm kind of assuming the properties are being set and held via animation, but I'd be glad for the confirmation.

The issue is that the size of the ManipulationAdorner is incorrect.  The discrepancy happens as the size of the business object represented as selected in the Diagram is changing for business reasons.

In a particular situation, for simplicity, a single NodeViewModelBase is selected.  I see the NodeViewModelBase's Width and Height being set to the correct values as the size of the business object changes.  However, the process of updating the business object has some intermediate, incorrect values for Width/Height in quick succession.  These intermediate values are just as a result of property-change notification order, and one of these intermediate values "sticks" or is the incorrect value that shows.  The correct value is the final value set, however.

Deselecting and reselecting the object results in a correctly sized ManipulationAdorner.

 

I don't have a simple example at hand, unfortunately.  However, is there enough information here to enable any guidance for further debugging, please?  Could the quick and repeated setting of Width & Height be interacting with the timing of WPF's animation system or with the starting/stopping of animations, if these values are indeed being controlled by animation?

I don't think I see any questions of this sort here or elsewhere on other forums.

Thanks for any info and advice!

-David

David
Top achievements
Rank 1
Iron
Iron
 answered on 25 Jan 2023
1 answer
169 views

Hi,

I need to react to arrows keys in document host, but I discovered that arrows key, in docking, moves the focus on the various parts of docking areas: can I disable this interaction?
Thank you 

Luigi

Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 24 Jan 2023
1 answer
169 views

Suppose I have an Abstract Class C that inherits from Appointment and Classes A and B that inherit from C.

Class C is only inherited from Appointment but has nothing in it.

public abstract class C : Appointment { }

And classes A and B have overrides for Copy and CopyFrom

The AppointmentSource list is actually a C list.

I am currently having a problem with Drop when I drag an object of type A or B on the board and reach the

if (state.Appointment is A)
{
    base.Drop(state);
}

I get an Exception.

From what I see it probably comes from CreateNew, CopyFrom, etc.

If C is not abstract, it creates an object of type C, That is C which is neither A nor B

I verify it in AppointmentCreated

I would appreciate help on how to do this correctly

Martin Ivanov
Telerik team
 answered on 24 Jan 2023
1 answer
144 views

Hi all,

I'm a beginner in wpf and i have a question. My checkbox inside my GridViewCheckBoxColumn looks strange. it looks like a square filled or not instead of a check. How can i change this ?

 

 

to look like this

 

Here is the xaml code of my column

 

<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding SelectedProgram}"
                                            Header="Selection" Background="White"
                                            MinWidth="150" Tag="{windows:NameOf SelectedProgram, Type={x:Type local:AxisToCondition}}" IsReadOnly="False"
                                            AutoSelectOnEdit="True" EditTriggers="CellClick">
</telerik:GridViewCheckBoxColumn>

 

Is this simple to do ?

 

Thanks in advance and have a good day !

Stenly
Telerik team
 answered on 20 Jan 2023
1 answer
108 views

Hi team. I'm using EnableSmallAppointmentRendering  in

<telerik:RadScheduleView.ViewDefinitions>

to display short duration (0 minute), the problem is it will overlap the others appointment. below is my example.

As per highlighted, AMM Murobbi should appear at 13.15. not it overlap with 13.00 slot. how can I counter this issue so the appointment not display the overlap

Thank you

 

Dilyan Traykov
Telerik team
 answered on 18 Jan 2023
1 answer
166 views

On GridViewRow I have a style that sets SelectedBackground but it does not work on the alternate rows.

xaml example

<Setter Property="SelectedBackground"
                    Value="Yellow" />

Is there another property that I need to set so that it will also use the SelectedBackground  color when I select an alternate row

(I guessed SelectedAlternateBackground but this isn't present)

 

Thanks

Stenly
Telerik team
 answered on 17 Jan 2023
0 answers
165 views

Hello,

Is it possible to differentiate whether the user closed the RadPane (click on X in header of RadPaneGroup or ToolWindow) or whether it was closed programmatically (IsHidden=true)?

Best regards

Sergej
Top achievements
Rank 1
 updated question on 16 Jan 2023
1 answer
203 views

Hello,

I try to adjust the header from "default view.jpg" to "wanted view.jpg".

Where can i set the date format as i want it?

I've tried the approach from this link WPF ScheduleView - Styling the GroupHeaders - Telerik UI for WPF. But it didn't worked at all. Even by coping the exact code from your tutorial i get the error on pic: error custom template.JPG

Also is it possible to highlight the weekends in a certain color?

Is it possible to highlight specific dates like public holiday days also in a certain color?

I haven't really found anything about adding a new row on the timeline view, like i need in my "wanted-view.jpg" picture.

 

best regards

Martin Ivanov
Telerik team
 answered on 16 Jan 2023
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?