Telerik Forums
UI for WPF Forum
3 answers
204 views
How to pass value from datepicker when editing a existing entry in a gridview. For instance I have a column name ExpirationMonth with a cell data of AUG, and I want that to pass in a DatePicker Input, instead of seeing the watermark "Enter date". See the first Image.

The first image when editing a certain entry in a gridview, Aug does not show up in the ExpirationMonth, 2014 does not show up in Expiration Year.

Also when I add an entry still the same even it has a default value, set as
//for ExpirationMonth
DateTime.Now.ToString("MMM");
 
//for Expiration Year
DateTime.Now.ToString("yyyy");

But when I select a month for ExpirationMonth, month I selected appears in the DatePicker input. See the second Image.

What I did to show month and year in the Datepicker Input, here is the code snippet:
public CreditCardWindow()
    {
        InitializeComponent();
 
        CultureInfo cultureInfo = new CultureInfo("en-US");
        DateTimeFormatInfo dateTimeFormatInfo = new DateTimeFormatInfo();
        dateTimeFormatInfo.ShortDatePattern = "MMMM";
        cultureInfo.DateTimeFormat = dateTimeFormatInfo;
        dteExpirationMonth.Culture = cultureInfo;
        string dteMonth = dteExpirationMonth.SelectedValue.ToString();
        dteMonth.ToUpper();
 
        CultureInfo cultureInfo2 = new CultureInfo("en-US");
        DateTimeFormatInfo dateTimeFormatInfo2 = new DateTimeFormatInfo();
        dateTimeFormatInfo2.ShortDatePattern = "yyyy";
        cultureInfo2.DateTimeFormat = dateTimeFormatInfo2;
        dteExpirationYear.Culture = cultureInfo2;
 
 
    }


Regards,
Robert Peter Mansion
Kalin
Telerik team
 answered on 22 Aug 2014
1 answer
119 views
Hello, i still evaluating Telerik gantt. I have made me a sample project in mvvm and i add some gantttasks with sample
data. Now i want to use the ScrollingService.ScrollIntoView to item function but how can i access it from viewmodel?
I also using telerik viewmodelbase for the commands in my viewmodel. Can you please give me a hint?

Regards,
Robert

Kalin
Telerik team
 answered on 22 Aug 2014
1 answer
144 views
Is there any way that I can get the list of pages a document. Or any another way to work out pages from a document ?

Regards
Anand
Petya
Telerik team
 answered on 22 Aug 2014
1 answer
212 views
I am using telerik RadTreeMap control. It is showing error when we use DLL Telerik.Windows.Controls.DataVisualization, version- 2013.3.1316.45 is not supporting. when I use version - 2013.3.1316.40 then it work fine. But all over in our application we already used the DLL of version 2013.3.1316.45 and we cant use the old version DLL 2013.3.1316.40. So how we can use the DLL version 2013.3.1316.45 In RadTreeMap application, please give the solution as early as possible.

Thanks and regards
Shreejit Nechipurat

Martin Ivanov
Telerik team
 answered on 22 Aug 2014
2 answers
128 views
I have used RadTimeline in a user control and i am using it in a winform application.
1) The SelectionChanged Event dosent get triggered on mouse Click.
2) The MouseLeftButtonDown event gets triggered but the DataItem of sender is null.
3) Is it possible to trigger a event and get date and time  when user clicks on the year or month tabs. 
Tsvetie
Telerik team
 answered on 22 Aug 2014
1 answer
152 views
In our usage of RadDiagram, we enable our shapes to be positioned with subpixel accuracy.  However, we notice that the AdornerManipulator for our shapes is always a little bit larger and aligned exactly on pixel borders.  For instance, if have a diagram shape positioned at 20,30.5, the adorner will be positioned at 20,30.  If that same shape is 40x50 pixels, the bottom of the adorner will be at 60,31.

I think I found the code that does this in RadDiagram.UpdateManipulationAdorner; that code taking the Math.Floor of the position and the Math.Ceiling of the extents.  This makes the adorner lie exactly on a pixel but also makes it not match the adorned object.

This seems like surprising behavior to me; the manipulation-adorner ends up being not quite the bounds of the object adorned.  However, it also looks like someone pretty intentionally put code in place for this behavior.

We are on the 2013.3.1204 release; I don't think any of the release notes since then mention changes related to this functionality.

1) Is this a correct evaluation of what's happening?
2) What considerations led to the decision that the AdornerManipulator has this behavior?  What negative side effects might we expect if we were to remove the Ceiling and Floor calls and instead use the exact position and extents?
3) While we can certainly modify this behavior locally, is this something that you all would address in a future release, please?

Thank you!

-David

Petar Mladenov
Telerik team
 answered on 22 Aug 2014
1 answer
50 views
I want to draw a horizontal/vertical RadDiagramConnection when key Shift is pressed. How to achieve this?
Milena
Telerik team
 answered on 22 Aug 2014
5 answers
152 views
Hi,
    I want to store Some More information with RadDiagramConnection .
    So,Please  can any one suggest me ,how to Create Custom Property to RaddiagramConnection (Or) How To Create a Custom RadDiagramConnection?
Pavel R. Pavlov
Telerik team
 answered on 22 Aug 2014
1 answer
337 views
How can I move caret position to the end of document (last character in text in document)?
Petya
Telerik team
 answered on 21 Aug 2014
1 answer
85 views
Hi,
In the SelectionChanged event of my calender, I put a Yes/No popup so the user can tell if he is sure to change the date or not.
Here is the code :
 
 
void calendar_SelectionChanged(object sender, SelectionChangedEventArgs e) 
if (Condition)

{
        
        MessageBoxResult result =Popup.Show("Are you sure you want to change the selected dates ");
                
        if (result == MessageBoxResult.OK)
          {
          MyFonction();

          }
}
else
{            
MyFonction();
 
}
       
}

the problem is when I select a date and I click on Cancel, the calendar does not seem to finish his "selection", when I hover it I can see the days changed to gray and I have the popup that appears again.
Is there any way to control the process of selection ?
For exemple if there was a method "StopSelection" I'll put it here :

MessageBoxResult result =Popup.Show("Are you sure you want to change the selected dates ");                         if (result == MessageBoxResult.OK)​         
{        
  MyFonction();       
   }
StopSelection();
I hope I was clear, please let me know if it's not the case.
Yana
Telerik team
 answered on 21 Aug 2014
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?