WPF: calendar control date in bold - c#

I retrieve some dates from my database and i want show that dates in my calendar control in c# wpf using a bold style.
How can i do this only from code behind? Is it possible?
Thanks

Related

Is it possible to have a Textbox show calendar dropdown?

Without place a TextBox over a Calendar control and hiding/showing controls and synchronizing values between controls, is it possible to have a Textbox and a button next to it, that when clicked, shows the calendar dropdown?
I would use the DateTimePicker control, however I want to set the value to NULL without having to show & use the checkbox.
I also want that the control is empty without any default date which is grayed out.
Implementing a custom control based on this answer is trivial, but I was wondering if a calendar dropdown can be shown without the need to have a hidden DateTimePicker.
This is pretty much the definition of a DateTimePicker...

Telerik radgridview cell co-ordinates in c# winforms

I want to show a specific date time picker control on a particular cell in Telerik RadGridView in C# Windows form. For this I need to know the co-ordinates of that particular cell relative to that form. I don't want to set the full column to DateTimePicker since the datatype won't be fixed for all the rows of that particular column. How can I retrieve the current cell co-ordinates so that I can show a separate DataTimePicker control at that position?
RadGridView uses editors for its cells. To achieve your scenario you should create a custom editor and assign this editor in the EditorRequired event for the particular cell. Here is an article from the Telerik UI for WinForms documentation which says how you can create and use custom editor: http://www.telerik.com/help/winforms/gridview-editors-using-custom-editors.html

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

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.

WPF Gridview Zindex

I have a datepicker control that I am using to set a date field in a gridview control, my datepicker shows a date and a button to display a calendar you can use to pick a date. This works great on its own but when I add this to a gridview the calendar pops up and the columns and rows cover up parts of the calendar. Setting the ZIndex for the calendar doesn't help because the other rows are on different panels? How can I get around this? I tried raising the ZIndex of the VisualParent but no luck.
Update, the gridview is very standard, 4 columns one of which is a date column, the datatemplate for that column creates a datepicker which initially looks like a text box and a button, the button is placed on a canvas panel and when clicked a calendar is added to the canvas. The canvas is the only panel that allows its children to stretch over its own boundaries so the button is 10 x 10 or so and the calendar is 200 x 200. When the calendar pops up it normally just covers up adjacent fields but when placed on a gridview each cell of the gridview that is "after" the datepicker covers up the calendar. I'm supposing I need to raise the zindex of my cell but I can't find a way to do this?
Could you provide more info about gridview and datepicker? Especially are they your custom controls or do they belong to any open source or commercial libraries or separate?
You also mentioned that DataTemplate has Canvas as a panel. Even though a Canvas can contain large elements, it does not necessarily show all of its children. This may or may not relate to your problem, though.
P.S. Sorry I had to post this as an answer. My reputation does not allow me to comment?
Wow, this should be done using a popup or an expander.

Categories

Resources