Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 28, 2009 03:51 PM by salluu
Jun 07, 2009 11:25 AM|LINK
Hi! Does anyone know any good asp.net Date picker?..thats free of use and whould match with the color of gray? Whould be great if it also has a Time picker aswell...but guess I can build that myself if it doesnt...
I have been looking around the web like a mad-man and have found some good controls...but none of em matches my needs...so whould be more then happy if you had any ideas where I could find one..
Huge thanks in advance![:)]
Jun 07, 2009 11:53 AM|LINK
in my current project we use the ASP.NET AJAX Control Toolkit calendar. It fits our needs and I have restyled all colors with CSS. Take
a look at the theming support on this page.
Just a tip: you stated that you searched the internet as a mad-man and found controls which didn't suit you. It's just too bad that you didn't mention which ones and why they didn't suit you as now people who want to help you, like me, don't have a clue
what you already found or tried.
Jun 07, 2009 12:27 PM|LINK
I did kind of want to avoid useing AJAX..but I guess I could take a look at it...
Yeah sorry about that...but my description of the control Im looking for didnt fit any of the controls that I found...for instance I looked at GMDatePicker and EclipseDatePicker and a few more....but either they didnt work in my project..or there style didnt
match..and the source code where "closed"...
Jun 07, 2009 12:30 PM|LINK
Check the out
Jun 07, 2009 01:01 PM|LINK
I have noe checked out the calendarExtender...but how do i create one dynamically? Im trying to create it as just an object and then place the object in a tabledata...but once I run the site the whole site seems to freeze...
And the only kind of installation for AJAX I did were to download the ,dll and add it to the bin folder of my project....
How shall I procced?[:O]
Jun 07, 2009 01:39 PM|LINK
you need to place scriptmanager control on your page. Also when you instantiate the calendar control you must also set the TargetControlID. Perhaps you can show your code on what's going wrong?
Another option would be to use one based on jQuery like this one:
Jun 07, 2009 04:50 PM|LINK
Ok..well this might be a stupied question..but im not so very familyar with AJAX yet...but the TargetControlID...should i set that to target a normal asp.net calendar..or what should it target?
Jun 07, 2009 05:03 PM|LINK
you must set it to a Textbox control (which you probably also have to instantiate dynamically depending on your needs). Take a look at this documentation:
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx and especially take a look at the Properties section.
You can create a composite control which has the calendar and textbox in one with the correct id's set and the targetcontrolid. This makes your code easier to manage and to write as then you can instantiate that one custom control instead of having to instantiate
a lot of control each time.
Jun 07, 2009 05:12 PM|LINK
yeah thanks [:)]
I will take a closer look at this soon and get back here to report how it all went...
Jun 07, 2009 05:51 PM|LINK
well..I have done the following now:
Declared a TextBox and an AjaxControlToolkit.CalendarExtender
and then Im useing the following code:
pickDateStartVisible.ID = "pickDateStart";
pickDateStartVisibleCalendarExt.TargetControlID = pickDateStartVisible.UniqueID;
and then I have added the TextBox into a TableDate which dispalys the TextBox just fine...but once I focus the TextBox it for some reason just wont show the calendar...and at the same page I do have an UpdatePanel which works just fine, so the ScriptManager
should be implemented correctly aswell....
any ideas?..sorry for beeing so "noobish" of me...but Im not used to AJAX programing yet...and definetly not the dynamical way...