I have a DB table (SQL Server) that contains two fields: EmployeeNumber and HiringDate.
I want a calender control in ASP.NET which will display the events for all the HiringDate's , and the EmployeeNumber for each employee hired on that date.
Does anyone know of a control which provides this functionality?
You can use the calendar control just fine; you just have to tap into the dayrender event, and then manually write HTML for every event you want to display in that time slot. There's nothing out of the box that supports data binding, that I know of, that isn't a third party control costing money.
Another great client-side plugin that may be of use is JQuery fullcalendar, which takes JSON to bind to.
Related
I wanted to ask whether there's a control like a big grid calendar that we can use to manage all the appointments. Like in our cell phone we have calendar and we can save reminders, birthdays, etc. I'm looking for same thing but for the desktop & its size should be at least 600x400.
When the users clicks an individual date the details should be shown.
Is there any control like that available?
There are Calendar controls that might have a view that looks like what you need. For example
BetterCalendar - which is free, open source and pretty nice. Or you can use any of the commercial controls like the one from Infragistics.
You could use the Devexpress components - they provide a good calendar control and also a range of layout controls you could use for the appointment grid.
I've been working in silverlight to do a date-oriented application. I started off with changing the calendar template to contain a listbox on every date, and I created a listbox containing simple items.
I implemented an easy drag drop on both those elements, so now I can drag from the listbox containing the items to the listbox on a date and have an event.
Downside is: In the event, I don't know which date it was dropped to.
How can I figure this out?
Please note: The date dropped to is not necessarily the date currently selected...
As it turns out, using a different drag drop implementation (http://silverlightdragdrop.codeplex.com/) got me to the date relatively easy:
DateTime datetime = (DateTime)((DropTarget)sender).DataContext;
All thanks for viewing and thinking...
I've been asked to develop a system wherein employees can mark on a form their availability on a given day of the week - for instance an employee could mark themselves as available on a given time on a given week, and unavailable on some other time. It looks a little like this:
http://img697.imageshack.us/img697/842/mvcb.jpg
Currently this works by rendering checkboxes within the table, picking up click events in each cell and marking the checkbox and hence the cell appropriately. I'm using the JQuery "click n drag checkbox" plugin from here. However, I've been informed that there could well be more than two states for a given cell (for instance available, unavailable, available in a given circumstance), in which case binding to a checkboxes checked value isnt going to be a lot of help.
I've never used javascript or asp.net before and am unsure as to the best way to approach this problem. Ideally I could stick a data structure behind each cell which I could update to a certain state and then get my cell colour by binding to this - however I'm at something as a loss as how to best achieve this.
Add a click event to the cell - e.g. click on the cell. Each click could then change the status of the cell. This status could then be store via ajax or using a submit button like on a form. Each cell could relate to a hidden form field which is where you status could be kept.
Maybe take some inspiration from google calendar. There you can select a timespan in the month view by click-dragging a range of days. I guess thats a faster way of entering longer timespans. (Like the lower part of the dragon)
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.
My current situation is to display an unknown number of Plantypes and within those Plantypes display a list of Participants(also unknown number), the participants have a textbox and a dropdown that is editable (you can't edit the individual rows, there is one update that does a bit of validation then updates all rows.)
I currently have a gridview nested withing a repeater, the repeater displays the Plan in a label and OnItemDataBound I call a method to populate the gridviews. It looks great, but I can't figure out how to save all the data at once. I'm not opposed to handling this a different way, as in loose the gridview and or repeater, if someone has a better idea.
This is C# and framework 2.0...there is no sorting or paging on the gridviews...just some links and the fields to update.
thanks in advance,
Padawan
HTTP is stateless. Since a user physically can only update one record at a time you should implement some way to save as the user goes. This can be a simple as having a row focus and row blur events and do the saves using AJAX on blur(unfocus). Maybe make is modal as they edit so they cannot leave the page without saving.