Telerik Forums
UI for WPF Forum
1 answer
287 views
Good Afternoon,

The experience I'd like to my user is to update a percentage value with 2 decimal places via the up/down buttons without the percentage sign disappearing and extra zeroes appearing at the end whilst the user is editing the value.

Basically I'd like for the display not to change whence the value is edited.

Is it possible to format the editing to look the same as when the box is not being edited?

For example, if the value displays as 5.00 % as the user presses the up directional button, I would like the editing to read "5.01 %" and then "5.02 %" etc. rather then "5.0100", "5.0200" etc.

I hope this makes sense.

Thank you in advance,

David
Vladi
Telerik team
 answered on 27 Nov 2013
3 answers
139 views
Hi,

If I have the DayStartTime set to 06:00 am and an appointment starting at 05:00 am and ending at 10:00 am ScrollIntoView does not work even though the appointment is mostly visible on the calendar.

I know my code is working in general because an appointment that starts after the DayStartTime scrolls into view perfectly.

The logic should be that if any of the appointment is visible it should be able to scroll into view.

Thanks
Anthony
Kalin
Telerik team
 answered on 27 Nov 2013
1 answer
55 views
Hi,

I have created my own custom ScheduleViewDragDropBehavior class and have overridden and used most of the methods successfully including DragDropCanceled which works as expected.

If I override ResizeCanceled the Appointment returned in the DragDropState is a new empty Appointment, NOT the appointment that was just being resized.

This should contain the Appointment that was being resized.

Thanks
Anthony
Kalin
Telerik team
 answered on 27 Nov 2013
7 answers
276 views
When I have a simple chartview that has a spike in it, the spike appears to go well above the value it is intended to represent.  I'm guessing this is because the line gets vertically fatter as the slope is increased, and the value is considered on the "centerpoint" of the line. However, this can lead to extremely misleading charts.

I have attached an example where the value is supposed to be "1" but more appears to be about 1.05.

Mike

 
Peshito
Telerik team
 answered on 27 Nov 2013
3 answers
171 views
I have derived a custom appointment that implements IAppointment called AppointmentViewModel. I have created a customized EditAppointmentView Dialog, by taking the provided RadSchedulView template XAML and adding a few RadComboBoxes (that are not resources), and assigning the template to the RadScheduleView's EditAppointmentDialogStyle. After a bit of work, all is working as planned except for one problem. In our LOB app, the schedule represents appointments in a auto repair shop. We need to provide the user with a list of predefined repair symptoms that they can choose from when creating or editing the appointment. I have successfully added a RadComboBox to allow them to choose from the list of symptoms. After making a selection in the RadComboBox, I call code on the SelectedItem's setter, that calls an internal method on my derived Appointment to concatenate the selected symptom text to the Body property of the Appointment. All works, the RadComboBox, the concatenation code, everything, except the Body TextBox will not show the value stored for the Body until the Appointment is closed and reopened. I am calling OnPropertyChanged(() => Body)  both in the method that appends the symptom to the Body and on the Body setter itself. All seem to be ignored. I know about having to BeginEdit and CommitEdit the RadScheduleView when updating appointments with code and need the ScheduleView to update, but shouldn't the IAppointment behind the EditAppointmentView Dialog be able to edit one of it's own properties and have it be reflected in the open Edit Dialog if it is a TwoWay binding? Originally I didn't have the Body overridden in my derived Appointment, but did so later just to confirm the firing of the OnPropertyChanged.

Once again, the desired work is taking place and upon close and reopen the Body shows the appended symptom as desired, but not live when you make the change.  Am I missing something?

XAML snippet from customized EditAppointmentTemplate for Body TexyBox;

<TextBox
   Grid.Row="1"
   HorizontalAlignment="Stretch
   Margin="8,11,12,8"
   VerticalAlignment="Stretch"
   TextWrapping="WrapWithOverflow"
   VerticalScrollBarVisibility="Auto"
   HorizontalScrollBarVisibility="Auto"
   SpellCheck.IsEnabled="True"
   Text="{Binding Occurrence.Appointment.Body, Mode=TwoWay}"
   AcceptsReturn="True"
   AcceptsTab="True"
   IsReadOnly="{Binding IsReadOnly}"
/>

Property in my derived IAppointment that the Body TextBox is bound too;
 public override string Body
 {
     get
     {
         return base.Body;
     }
     set
     {
         base.Body = value;
         OnPropertyChanged(() => Body);
     }
 }

For what it's worth, here's the little method that is called to concatenate a string to the Body property. Note that I have tried calling OnPropertyChanged(() => Body) in this method as well, but currently have to commented out. The OnPropertyChanged(() => Body) of the Body itself is being fired.

        internal void AppendSymptomToAppointmentNote()
        {
            if (SelectedSymptom == null)
                return;         

            if (Body == null)
            {
                Body = "* " + SelectedSymptom + "\r\n";
//                OnPropertyChanged(() => Body);
            }
            else
            {
                if (!Body.Contains(SelectedSymptom))
                {
                    Body = Body + "* " + SelectedSymptom + "\r\n";
//                    OnPropertyChanged(() => Body);
                }
            }
        }


Yana
Telerik team
 answered on 27 Nov 2013
2 answers
145 views
Hi,

I am trying to serialize Span Class Collection object to XMl, Binary and JSON format but while implementing this, StyleDefinition Class which is the property of the Span Class class and having nested structure ( same class type variable inside the class ) not allow to perform the serialization process.

I had tried also JSON serialization which allow to skip looping structure but that also not allow to serialize Span collection object.

so is there any way to serialize Span collection object to any serialization type so I will save this object as file on my system. ?




Thanks & Regards
Ajita


Ajita
Top achievements
Rank 1
 answered on 27 Nov 2013
2 answers
127 views
The RadDiagram lets you turn off Cut, Copy, Paste, etc functionality, but there doesn't seem to be a way to turn off the Duplicate command.

How would I remove the Ctrl+D key binding from the RadDiagram?

Thanks
Terry
Top achievements
Rank 1
 answered on 26 Nov 2013
2 answers
426 views
Hi,

Is it possible to bind to the collection of selected dates / how would I use the selected dates in my view model?

thanks

David
Anthony
Top achievements
Rank 1
 answered on 26 Nov 2013
1 answer
189 views
I was trying to apply a nested style on a RadToolbar and on its children. I had problems applying the style to certain children like RadButtons and RadToggleButtons. The same occurs with normal WPF Toolbars:

http://stackoverflow.com/questions/20219595/wpf-why-are-nested-styles-not-always-working/20220084?noredirect=1#20220084

The solution is, that you have to override the special style, that the Toolbar defines for Buttons, ToggleButtons etc. For this you need the Toolbar's ToggleButtonStyle Resourcekey which is provided by a normal WPF Toolbar via

public static ResourceKey ToggleButtonStyleKey { get; }
Where do I find this resource Key on a RadToolBar and how do I apply a nested style on all RadButtons/RadToggleButtons of  a RadToobar?
Petar Mladenov
Telerik team
 answered on 26 Nov 2013
1 answer
153 views
There exists an event on the editor called PrintCompleted, that I can use to know when my print operation has completed. I need this notification so my viewmodel can navigate away from the document that was edited. So far so good. The problem lies when the user hits the print dialog's "cancel" button. I need to be able to know if that happens because there are still things I need to do. Since there is no "PrintCancelled" event, how will I ever know the user cancelled that operation from the system print dialog? Is there even a way?

Thanks in advance!
Petya
Telerik team
 answered on 26 Nov 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
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
Rating
SplashScreen
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?