Telerik Forums
UI for WPF Forum
2 answers
105 views
Hello everyone,

I am trying to have a Range of 14 days as my X Axis for my Chart Control. The AddRange() only takes doubles, so is there a different method that I can use to get a Range from 13 days ago all the way up to and including Today? If anyone can help that would be great.

Thank you,
Chris
chris
Top achievements
Rank 1
 answered on 14 Sep 2011
3 answers
131 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
292 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
210 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
94 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
81 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
135 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
92 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
75 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
138 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?