This is a migrated thread and some comments may be shown as answers.

[Solved] How do I get started

8 Answers 194 Views
DatePicker for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Frode
Top achievements
Rank 1
Frode asked on 17 Jul 2012, 09:38 AM
Hi, I think I need some Using-External-Metro-Libraries-101 help. I'm trying to get the RadDatePicker to work in my project, but it renders incorrectly. Instead of the dropdown box with the current bound date showing, the ToString() of the underlying business object is rendered . I'm guessing there is something wrong with the template and/or style or referencing of these.

What I've done:
  • Added reference toTelerik.Core.dll
  • Added reference to Telerik.UI.Xaml.Input.dll
  • Added reference to Telerik.UI.Xaml.Primitives.dll
  • Added Telerik.Ui.Xaml.Input/Themes/Generic.xaml to the assets folder and referenced it in app.xaml under ResourceDictionary.MergedDictionaries
  • Added Telerik.Ui.Xaml.Primitives/Themes/Generic.xaml the samy way

So the control renders, and when I click on it, the selector control works perfectly. It's the rendering in the non-edit-mode that is problematic.

Suggestions?

8 Answers, 1 is accepted

Sort by
0
Accepted
Tsvyatko
Telerik team
answered on 17 Jul 2012, 10:58 AM
Hi Frode,

Although, this approach looks very logical it does not work in the new platform. In Metro, Microsoft have introduced new way of consuming resources by using loosely coupled files. 

In particular generic.xaml, is treated as resource and loaded implicitly. It should be placed in relative to the assembly location subfolder with the following structure - [AssemblyName]/Themes/Generic.xaml. For e.g. Chart will look for its generic.xaml in \Telerik.UI.Xaml.Chart\Themes\ folder. Since, this structure is not very straight-forward and trivial we have also created extension SDK to simplify the process (The SDK is installed by default with our installer).

If you have any further issues or questions do not hesitate to contact us.

Kind regards,
Tsvyatko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Frode
Top achievements
Rank 1
answered on 17 Jul 2012, 03:11 PM
Thanks, that did the trick.
0
Andy
Top achievements
Rank 1
answered on 24 Jul 2012, 11:09 AM
Sorry, you've lost me.

I've just downloaded and installed the RadControls for Metro, but I can't figure out how to place a DatePicker onto a page.



I can see the ExtensionSDK folder that has been installed along with all the binaries, but in VS2012 on the Tools menu, Extensions and Updates, the RadControls are not listed and I can't find any UI anywhere to get VS2012 to install it.



How do I install these controls and get started?
0
Tsvyatko
Telerik team
answered on 25 Jul 2012, 11:33 AM
Hello Frode,

 I have prepared document (will be included in the documentation as well) how to add reference to our Extension SDK.

Please have a look and let us know if it helps. If you have any further issues or questions do not hesitate to contact us.

Greetings,
Tsvyatko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Andy
Top achievements
Rank 1
answered on 25 Jul 2012, 12:03 PM
Thanks - but my problem was not with adding the reference to the RadControls for Metro assembly (although it was helpful to understand that when you talk about adding a reference to an Extension SDK, all you mean is that you 'Add Reference' to an item found on the Windows - Extensions tab in the Add Reference wizard UI).



I tried to add the controls to my toolbox, so went to 'Choose Items...' as normal and browsed to the assembly at C:\Program Files (x86)\Telerik\RadControls for Metro XAML Q1 2012 BETA\Binaries , but that didn't work. Next I tried to add a DatePicker by coding directly into the XAML but got the syntax wrong.

I have since discovered the samples at C:\Program Files (x86)\Telerik\RadControls for Metro XAML Q1 2012 BETA\Demos\Examples which shows how to do it, so I can see how to go forward now. Thanks.

0
Tsvyatko
Telerik team
answered on 25 Jul 2012, 12:11 PM
Hello Frode,

Thanks you your feedback. It will be very helpful as we can extend our documentation and design-time support in the right direction (according to current VS capabilities) to make it easier for our users to get started with our controls.

Regarding the VS toolbox support, we still have some issues, but we are optimistic that we will be able to add our controls for our next release.

Greetings,
Tsvyatko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Pruthvi
Top achievements
Rank 1
answered on 21 Sep 2012, 11:01 AM
hie... i'm using telerik tool datevpicker but it is not working while i'm saving and biinding to xaml tool it showing me the current time also for the date picker...... pls help me..................













0
Tsvyatko
Telerik team
answered on 24 Sep 2012, 08:20 AM
Hello Pruthvi,

You might want to check our demos solution (that came with our suite, placing shortcut in the desktop) where you can find binding the date picker value example.

Generally, the setup will look like this:

<telerikInput:RadDatePicker Header="Select date"  Value="{Binding SelectedDate}"/>

where SelectedDate is property of the DataContext provided:
public class SampleData
    {
        public DateTime SelectedDate
        {
            get;
            set;
        }
    }
}

If you have further questions do not hesitate to contact us.

Regards,
Tsvyatko
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
DatePicker for XAML
Asked by
Frode
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Frode
Top achievements
Rank 1
Andy
Top achievements
Rank 1
Pruthvi
Top achievements
Rank 1
Share this question
or