DatePicker week number silverlight - c#

Can i enable week number in silverlight DatePicker ? And how ?

That is not possible with the standard DatePicker control, have you considered adding another control like a label and when the user clicks the date you display the week in the label.
ScreenShot

Related

Stop DatePicker from resetting the TimeOffDay when new date is selected

I have a DatePicker which displays the date only and a separate TextBox that displays the time. Both elements use TwoWay binding.
My issue is that when ever I adjust the date using the DatePicker, my time resets to 00:00. Is there a way to disable this behavior and leave the TimeOfDay alone? I can't seem to find an answer anywhere.
I know I could grab the time with a GotFocus event and then manually restore, but it seems messy.
The DatePicker and TextBox should be bound to two different source properties, a DateTime? and a TimeSpan respectively.
The built-in DatePicker control selects only a date without any specific time so it makes no sense to try to display the time of the selected date in a TextBox.

C# webform calendar

Have a webform that I'm looking to have a calendar that a user can choose the date from the calendar and it then displays the selected date in a textbox. When I choose a calendar from the toolbox how do i minimize the calendar on the generated webpage so it doesn't display the calendar all the time, like only when a drop down is chosen (it takes up alot of space and looks awful).
tried to dispaly the selected date like this but it doesn't work:
TextBox10.Text = "Date" + Calendar1.SelectedDate;
From the sound of what you are trying to do I would recommend either using the AJAX Control Toolkits Calendar Extender or using jQuery UI Datepicker functionality

Selection in Date Control

Now, I am working with asp.net , C# and I have made custom controls . In my custom controls especially in Date control, I want to select only month and day part in OnFocus Event.
Right Now, I have wrote
control.select();
then , as usual, the text of the control(2012/08/04) will be selected.
But now I want to give selection only on the part of the month and day(08/04). I am searching many ways to do it. But I haven't got any ways until now. So I would like to know that Can I give a selection on only month and day part(08/24) of a Date Control.
With regards

Display only chosen dates in datepicker

I have history window with date picker but there’s some days without any record in DataBase, I want to disable this days in the datepicker.
Any ideas please.
Thank you
You can use the DayRender event handler for disabling the dates in the datepicker. Refer this sample site to know.
Have a look at the DatePicker.BlackoutDates Property. Dates in this collection will appear as disabled on the drop-down calendar.

Showing calendar Control

I am creating a web application in which i have to select a date. I am using Calendar control. But it occupies too much space and other labels and text boxes are not shown in proper alignment. Is there anything I Can do in which when i click on an image, the calendar control opens, but on the textbox, so that it does not occupy any space.
Regards,
Jigar
One possible solution is to use a purely client side date picker, which displays a "pop-in" calendar when the TextBox is selected. Search the web for "date picker" to find tons of JavaScript implementations, including the jQuery UI Datepicker.

Categories

Resources