Telerik Forums
UI for WPF Forum
3 answers
140 views
Hi,
I have successfully changed the date/time formats used throughout my app (including Telerik controls) by using the following lines:

Thread.CurrentThread.CurrentCulture = (CultureInfo)Thread.CurrentThread.CurrentCulture.Clone();
Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd";
Thread.CurrentThread.CurrentCulture.DateTimeFormat.LongDatePattern = "yyyy-MM-dd";
Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortTimePattern = "HH:mm";
Thread.CurrentThread.CurrentCulture.DateTimeFormat.LongTimePattern = "HH:mm:ss";

However, there is still one instance where the ScheduleView stubbornly refuses to use my formats: when I click on an appoinment's edge and hold the mouse button to resize the appointment, previews are shown for both the start time and end time, but those previews use the AM/PM format. Is there a way to change that ?

Thanks,
Sebastien
Yana
Telerik team
 answered on 14 Sep 2011
12 answers
306 views
I'm not sure if I'm going about this the right way, but here's my situation.

I've got a MVVM Prism WPF app. In my shell, I created a RadToolBar and made it a region since it's an ItemsControl.

In my module, I created a userControl, then instead of deriving from UserControl, I derive it from Button. In my module initialization, I'm adding that derived button to the RadToolBar's region. I'm also creating a new RadToolBarSeparator and adding it to the region as well (just before adding my derived button) and it of course shows up with the right styling.

It adds it correctly and it works as expected, but it isn't taking on the style of the toolbar buttons that would be added the regular way. It just looks like a standard button. Do I need to implement the style explicitly?
Petar Mladenov
Telerik team
 answered on 14 Sep 2011
3 answers
215 views

Hi,

We are trying to use the MaskedInputCurrency control but we're having issues using different cultures.

Especially the data input goes haywire when using cultures with a different decimal seperator. (using the Dutch Culture for example)
Normally entering 123 in the currency control gives 123.00, but when switching culture the input becomes 1.23

Also we cant get a Negative value, when using the
UpdateValueEvent="LostFocus" but it works fine with "PropertyChanged"
You can enter a negative value, but when exiting the field it reverts back to the postivive value.
(except when programaticly setting a negative value, it stays negative all the time, and you cant switch to a positive one)

A smaller issue is that the negative sign (mostly '-' or '()' ) is shown twice ( '--123' and '((123)' ) when the control is unfocussed.

Hope you can help us,
Marinus

PS The MaskedNumeric Input works fine and doesn't have these issues, but it uses the wrong seperators (for numeric instead of currency)

PPS the code we are using; the converter is a toCents converter as we store the values a an Int. we are using the latest build 2.0823.40

 <telerik:RadMaskedCurrencyInput 
    IsCurrencySymbolVisible
="False"     IsClearButtonVisible="False"     InputBehavior="Insert"     Mask="#9.2"     SelectionOnFocus="SelectAll"     TextMode="PlainText"      SpinMode="PositionAndValue"     UpdateValueEvent="PropertyChanged"      Placeholder=" "     AutoFillNumberGroupSeparators="True"  >                 <telerik:RadMaskedCurrencyInput.Value>                     <t:XBinding Path="Parameters.Amount" Mode="TwoWay"                             Converter="{x:Static t:AmountConverter.Default}">                         <Binding.ValidationRules>                             <StaticResource ResourceKey="AmountValidationRule" />                         </Binding.ValidationRules>                     </t:XBinding>                 </telerik:RadMaskedCurrencyInput.Value> </telerik:RadMaskedCurrencyInput>
Petar Mladenov
Telerik team
 answered on 14 Sep 2011
1 answer
105 views
Hello Telerik,

I'm in the situation where the appointment items source is being refreshed async (from some other thread, but delegate to the GUI thread).

However when I select an item, the ensure selection of the appointment item doesn't have it's datacontext (occurenceinfo) set (if the item is removed and added to the items source).

Hence, there is sometimes an nullpointer exception.

Any toughts?

Rosi
Telerik team
 answered on 14 Sep 2011
0 answers
85 views

Hello

Why when in add range to the collection I don’t get to the data loading event?

How can I make it work without change the items source?

Best regard

Ehud

Avi Avni
Top achievements
Rank 1
 asked on 14 Sep 2011
5 answers
141 views
Hi,

I'm using
The RadGridView v. 2011_2_0712 of the Telerik Controls
Ado.Net Entity Framework 4.1
VistaDB 4.2.18.4 or MSSQL Server 2008

I'm trying to bind a simple RadGridView to a model and then to use the built-in functions.
I have two identical test projects and two identical sampleDBs the one is in VistaDB and the other in MSSql. In the first project I use the Entities from the model generated using the VistaDB and in the second project using MSSql. 

The binding is done like this in both projects.
public partial class MainWindow : Window 
    public MainWindow() 
    
        InitializeComponent(); 
   
        Entities context = new Entities(); 
        radGridView1.ItemsSource = context.Organisationseinheiten; 
    
}

The Sql script to generate the tables is like this.
CREATE TABLE [Organisationseinheiten] (
[OEID] Int PRIMARY KEY,
[Name] NChar(128) NOT NULL,
[Beschreibung] NChar(500) NULL
);
  
INSERT INTO Organisationseinheiten (OEID, Name, Beschreibung)
VALUES (1, 'OE1', 'OE1');
INSERT INTO Organisationseinheiten (OEID, Name, Beschreibung)
VALUES (2, 'OE3', 'OE1');
INSERT INTO Organisationseinheiten (OEID, Name, Beschreibung)
VALUES (3, 'OE3', 'OE1');
INSERT INTO Organisationseinheiten (OEID, Name, Beschreibung)
VALUES (4, 'OE4', 'OE1');

Summary:
Project 1
- RadGridView
- Ado.Net 4.1
- Model from VistaDB

Project 2
- RadGridView
- Ado.Net 4.1
- Model from MSSQL

The two DBs are generated with the same script and seem to been exactly the same. The generated models are exactly the same. BUT when I try to group columns in the project 1 then an exception is thrown. In project 2 the whole grouping, sorting and filtering functions are done well.

Anyone knows about issues of the RadGridView with Ado.Net or with VistaDB?

If it's requested can I upload these two test projects.

Thanks in advance
Walter
Vlad
Telerik team
 answered on 14 Sep 2011
1 answer
96 views
Are you planning on making it possible to place into a RadDocking instance other RadDocking instances?
Yana
Telerik team
 answered on 14 Sep 2011
1 answer
79 views
Hello,

I have a need to set up grouping by both a person's name and what location they work at.

The end result of what i am attempting to do is to have it selectable what person(s) and what location(s) you want to select and then show them on the grid, the catch is that some people only work in 1 location while some work in many.

For example  if we have Person A, Person B, Person C.  Person A works at Location 1, Location 2, Location 3; Person B works at Location 2, and Person C works at Location 3.

so the grid header would look something like:

                         Person A                           Person B         Person C
   Location 1    Location 2    Location3       Location 2       Location 3

I would have 5 columns total,  i have tried adding these as ResourceGroupDescription's in a GroupDescriptionCollection to the ScheduleView.GroupDescriptionsSource, and the resources to the ResourceTypesSource, but when i run it i end up with 9 columns, it makes a location1, 2 and 3 for each Person.

So can anyone tell me the correct way to make it only have the 5 correct columns instead of all 9?  Thank you.
Yana
Telerik team
 answered on 14 Sep 2011
6 answers
142 views
Hi,

In Scheduler Control it was very easy to handle the different cases of events.
I have the following problem in SchedView Control:
When the user "doubleclicks" an appointment then ShowDialog-Event is fired. In my case I set "e.Cancel" and I have my own dialog to Edit the data of the appointment. Fine!
But when the user user deletes an appointment (per single-click on the cross-symbol in the right corner) the same event (ShowDialog) is fired (before the Appoint_Deleting event is fired !!!!!). I cant´t find a solution to handle the difference between these cases (Edit or Delete) inside the ShowDialog-event.
I´m also missing the ShowsConfirmationWindowOnDelete property from Schedule-Control in ScheduleView-Control to suppress the default dialog and show my own dialog.
Thank you in advance.

Regards,
Stefan
Yana
Telerik team
 answered on 14 Sep 2011
1 answer
95 views
After i changed the size of the items (ColumnWidth and RowHeight), i get 
sometimes an ArgumentException when I reorder items per drag-drop.
For the DataTemplate, i use a RadFluidContentControl
System.ArgumentException: '-42,-42,-42,-42' is not a valid value for property 'Padding'.
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.RadTileView.OnDragInitialized(Object sender, DragInitializeEventArgs args) in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TileView\RadTileView.cs:line 948
   at Telerik.Windows.DragDrop.DragInitializeEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializeEventArgs.cs:line 94
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at Telerik.Windows.DragDrop.DragInitializer.StartDrag() in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializer.cs:line 169
   at Telerik.Windows.DragDrop.DragInitializer.DragSourcePreviewMouseMove(Object sender, MouseEventArgs e) in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializer.cs:line 153
   at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Thanks for help
Peter
Zarko
Telerik team
 answered on 14 Sep 2011
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?