I am new to .NET 3.5 , WPF, infragistics and MVVM.
I have two calender controls and button control ( when clicking the button user see a list of events between the date range. We follow MVVM pattern
Start Date(Date Picker) 2. End date(Date Picker) 3. search button
My bussiness gave me some set of rules through which user will be validated.
I have done all validation for the date controls except for the following two:
when editing the date picker (manually with out using calender and typing the date) the change event is never recognized in View Model
Date picker is not allowing null values ( i need my one my date picker to be empty in page load).
If any body wants i can post my code also..
thanks
Divya
There is an ASP.NET version of the datepicker that allows nullable, found here on CodeProject. There was a similar question posted but it was for WinForms here. Ok, the code is for Winforms, maybe you might be able to port it for webforms i.e. asp.net.
Hope this helps,
Best regards,
Tom.
Related
My requirement is that I need to create a simple sap.ui.unified calendar and once I click on a particular date in the calendar,it should navigate to a SAP Planning calendar which should give the meeting details for the particular day alone.I have created the sap.ui.unified calendar and a seperate sap planning calendar.Iam unaware of how to navigate to a particular date's event in planning calendar on click of a date in smple calendar. Can anyone help me how this can done?I have used the "select" event for the calendar.But it selects the whole calendar.Can anyone provide code of how an event can be applied to a particular date for a calendar?
You can use this method for single date selection (api) of class sap.ui.unified.Calendar:
getSingleSelection();
After event select (which you used) is raised.
You can get the selected date from the calendar with the method oCalendar.getSelectedDates().
There is also an example in the OpenUI5 Explored on how to get the selected date.
My JavaFX application uses FXML and in one of its forms, it needs to show appointment dates in a given month. The user can then click a date to add a new appointment. I would like to use JFX Extra's CalendarPicker (here) for this purpose. I don't know if it is the right library but I think CalendarPicker is preferable if it can do the work. Can somebody show me how to do this?
The control project has a CalendarPickerFXMLTest which shows how to do a calendar picker in FXML.
https://github.com/JFXtras/jfxtras/blob/8.0/jfxtras-controls/src/test/resources/jfxtras/scene/control/test/CalendarPickerFXMLTest.fxml
Make sure you add all the required jars to your project, like jfxtras-common and possibly jfxtras-fxml. After accessing the in fxml defined CalendarPicker control in Java, you can set the highlighed calendars list. If the styling of the highlighting doesn't suite you, you can change it in CSS using the .highlight class
https://github.com/JFXtras/jfxtras/blob/8.0/jfxtras-controls/src/main/resources/jfxtras/internal/scene/control/CalendarPicker.css
I'm using the Silverlight Toolkit DatePicker control.
If an user enters an invalid format date for example foo/bar/2001 then the DatePicker automatically 'ignores' the date and sets it back to the last date.
This behaviour is fine, except I'd like to actually show the date in error to the user (not corrected) and display some validation message etc so the user knows what the issue is
Does anyone have a snip or sample I can use that works in this way?
Any help greatly appreciated.
You could handle the DateValidationError event. Calendar control in Silverlight using C# has a bit of sample code showing how the event handler could be wired up.
I am using codeplex wpf toolkit and want to show current date at the bottom of calendar same as date time picker of windows form shows, tried various properties but could not find a solution. Please help
If i understand you correctly,you want to show the current selected date in the calender part of the datepicker.For that you want to customize the control template of the Datepciker COntrol.Go through the link below to get started
http://msdn.microsoft.com/en-us/magazine/dd882520.aspx
Edit
To have a Today Button in the calender check the below thread
http://wpf.codeplex.com/discussions/85516?ProjectName=wpf
Is there any property , option available in the date picker control so that if user want to select today from any date from current date ?
e.g if user is view current month of last year then he has the option to select current date ?
just see this link and how they are implementing the Today button in the Datepicker WPF Toolkit). This link is from the WPFToolkit discussion forum. May be this will help you.
http://wpf.codeplex.com/Thread/View.aspx?ThreadId=85516
i think there is no option that there is a button directly in the control.
You can use a button outside the control, or something like this to set the current date.
Or you build a custom control....
I just hacked together a simple example. It is VS 2010. www.mbgr.de/CurrentDateWpf.zip.
No warranty at all on this one. Use at your own risk :-)