Showing posts with label calender. Show all posts
Showing posts with label calender. Show all posts

Saturday, March 24, 2012

CalenderExtender in frameset problem

I have created an AJAX webpage which has been placed inside a HTML frameset(intranet at work). Outside the frameset, the calender extender works fine but inside the frameset I get a javascript permissions error. Anyone else had this problem?

Thanks,

Steve

Hi Stevedale,

I think your problem is a caused by Frameset + javascript rather than AJAX. First , you should check whether they are in different domains. Then please remove the interactions between the two Frameset. CalendarExtender is generated by a bunch of javascript. Here are two wonderful links(Link1,Link2);

If all these don't work, please feel free to let me know. And a tiny repro is preferred.

Best regards,

Jonathan

Calender Question

Hey, All my calender inputs are done with the ajax calender control, only problem is all the dates are coming up "American-style" ie MMMM d YYYY, is there a bit of code that`ll format this correctly? i just want the date to look like (if its today for instants) 16/07/07

Thanks in advance si!

You can set the format property to "dd/MM/yy" 
<ajaxToolkit:Calendar runat="server" TargetControlID="Date1"CssClass="ClassName"Format="dd/MM/yy"PopupButtonID="Image1" />

When i went to update the test date i got the error :

The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

Is there a way of formatting the data in the database ? Si!


Here is a link that will help you to format in SQL

http://www.sql-server-helper.com/tips/date-formats.aspx

Calender hide onBlur problem

I know that the calendar extender is suppose to hide when you click outside of the control, but it's not for me. I'm using the calendar control in association with a button. Both the button and the control are being added dynamically to the page. The follow is the code used to build these controls.

oNewImage =New Image

oNewImage.EnableViewState =True

oNewImage.TabIndex = 0

oNewImage.CssClass ="CalendarPopup"

oNewImage.ID ="CalendarPopup" &CInt(glintCountCalendarImage)

oNewImage.ImageUrl ="..\images\CALENDAR.ICO"

oNewImage.Visible =True

oNewAjaxCalendar =New AjaxControlToolkit.CalendarExtender

oNewAjaxCalendar.TargetControlID = oNewTextBox.ID.ToString

oNewAjaxCalendar.OnClientShowing ="showingCalendar"

oNewAjaxCalendar.PopupButtonID = oNewImage.ID.ToString

oNewAjaxCalendar.Format ="MMddyy"

oNewAjaxCalendar.CssClass ="icmsCalendar"

oNewAjaxCalendar.PopupPosition = AjaxControlToolkit.CalendarPosition.BottomRight

oNewAjaxCalendar.ID ="AJAXCALENDAR" &CInt(glintCountCalendarImage)

oNewAjaxCalendar.OnClientDateSelectionChanged ="hideCalendar"

oNewTextBox.Attributes.Add("JUSTIFY","RJ")

oWebForm.Controls.Add(oNewImage)

oWebForm.Controls.Add(oNewAjaxCalendar)

Hi James,

Use an ImageButton instead of an Image!

Let me know how that works out ;)
Kind regards,
Wim

Calender Extenders cssClass problem in Gridview

hi all

i have an HTML table in one of gridview's cell which is always hidden at startup. there is one textbox and one calander extender in that HTML table. In the same cell there is Link Button. On click event of that LinkButton i make that hidden table visible.(this process is done on server side). Problem is that when i perform this operation then after that Calander Extender's css class disturbs and does not show the appropriate design.

i dont know why this problem occured. and now this problem is solved automatically. I havn't done any thing for it.. this is really strangeHuh?

calender extender problem

i have a large form that contains about 12 date field. if i place 12 calenders extender the page loading become very slow. is there any way to use only one calender for this 12 field, so this calender appear at the field that the user type in.

Hi

Here a dude says he got a fix for it:http://forums.asp.net/p/1088868/1627224.aspx

You should test it first!

Kind regards,
Wim


thx for your reply

calender extender in not getting reconized

I am making a textbox with an calender extender and when i add the extender it says that is not an reconized element. Everything else that i have tried works and i jsut cant seem to figure this out. Any body have an answer?

Hi Kashwmu,

kashwmu:

Everything else that i have tried works and i jsut cant seem to figure this out.

Do you mean when you add other Ajax Controls it works??

Based on your description, we suggest that you should check whether you have installedAsp.Net 2.0 Ajax Extensions V1.0 or not. To install it, please referencehere. Also , you should check whether you have added reference to the AjaxControlToolkit.dll. Here are some usefulvideo tutorials.

If all these don't work, please feel free to let me know with more information including your source code.

Best regards,

Jonathan

Calender Extender

HI All,

Am having a Calendar Extender inside a FormView and Formview is Inside UpdatePanel.
Problem am facing is that Calendar Comes Messy when it get activated. I tried CssClass but its not working.

Any Solution?

Hi Barrysuku,

To troubleshoot this issue, we really need the source code to reproduce the problem, so that we can investigate the issue in house. It is not necessary that you send out the complete source of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business logic from it.

Best regards,

Jonathan

this is a common issue that has a workaround on codeplex...I dont remember the link but all you need to do is put another calendarextender in your updatepanel and hide it via css


HI Jonathan,

I was able to solve that problem what i did is i added css class for CalenderExtender and its working fine now.

Now am having two issues if you can solve those for me.

First is how dela with FileUpload inside Updatepanel as am not getting filename.But when in scriptManager if i disable EnablepartialRendering to false then it works.Temporary am doing this.

Second how to load TreeView with ObjectDataSource or DataSet

Thanks

Regards

Barry


Hi Barrysuku,

In this thread, we are mainly discussing aboutCalenderExtender ,as indicated by the first post and the title.

Since your new question is not directly related to the original issue, it would be best if you open up a new thread for the new question. In this way, our discussion here will not deviate too much from the original issue. This will make answer searching in the forum easier and be beneficial to other community members as well.

Thank you for your understanding.

Best regards,

Jonathan

calender Entender

How can get the date with time in a text box using calender Extender

You can get the date from calendar and get the time from DateTime.ShortTime() and concenate them.

Hi bikash,

Go through this Url:http://msdn2.microsoft.com/en-us/library/az4se3k1.aspx

I think u can able to find the solution in this url. Hope this helps.

Thanks & Regards,

Rajak Shaik.


Hi,

Thank you for your post!

Why not go to the official site http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx to check it out?

it show you the sample.

If you have further questions,let me know.

Best Regards,

Calender control positioning problem

I have got two issues with calender control

1)I have body scroll="no" and div's overflow to auto(as i have menu in top div locked and content page in other div) When i use calender control the position of popup is offset to the targetcontrolid i.e it is not docked below targetcontrol id. TargetControl is at the bottom of div so user has to scroll to reach that control. Is there any way to render the popup aligned with targetcontrol as it is done when body scroll="yes". I have also tried with body's style="overflow-y:hidden" and got same offset issue.

2) In addition to above scenario, if i have dropdownlist below target control, than calender control seems to be hidden partially. Is there any way to set z-index so that calender control will always be rendered on top of dropdownlist.

It's the divs that are controling where the calendar is position. Did you play with the absolute value? That will let you add the calendar wherever you want in the page, the only control that has problems positioning with divs is the dropdown in IE6. Do you want me to send you some div code?
sure you can send me the code...i will highly appreciate that..

Calender Control in IE 5.5

I have a Calender control on my site and when people access using IE 5.5 the browser crashes most of the time. When it does not crash it says something about the scripts causing the browser to run slow.

Are the AJAX controls compatable with IE 5.5?

many people have said similar things with ie 5.5

the OFFICIAL list of compatible browsers unfortunately starts at IE 6

http://www.asp.net/ajax/documentation/live/BrowserCompatibilityForASPNETAJAX.aspx

hth,

mcm

Calender control in asp.net

Hi, Could anyone please tell me how can i display datepicker when i click textbox or button and i want the date to be in textbox.

could any one give me code to do thhis? i have master page in my project

Thanks for any assistance

Have a look at the ASP.NETAJAX Calendar control.


Hi Tweety,

If you want use CalendarExtender, please download theAjax Control Toolkit. And some pretty samples are contained inside the package.

I hope this help.

Best regards,

Jonathan


Hi. thanks for both of you

im using ajax calender tool kit, jus searchin for good design(i mean css) to apply.

if u have any please suggest me.

thanks again


It really depends on your application as to what style to apply, but if you read thecalender page (specifically the theming section) it will show you how you can customize it to suit your application.


<asp:TextBoxID="TextBox5"runat="server"Width="120px"CssClass="textile"></asp:TextBox></td>

<cc1:CalendarExtenderrunat=serverTargetControlID=textbox5Format="dd/MM/yyyy">

</cc1:CalendarExtender>

im using this code.i have a pblm here once i selected date my date appears in textbox but the calender still can able to see until i clik some where on the page...

why like this?


That's how the control has been built. View thecalendar page for 3 different examples on how it behaves.


Hi Tweety,

If you want to hide the Calendar immediately after we selected a date, you should add thisOnClientDateSelectionChanged="function hideCalendar(cb) { cb.hide(); }" to your source code. OnClientDateSelectionChanged is one property of the CalendarExtendar.

Hope this helps.

Best regards,

Jonathan


Hi thanks but once a date is selected calender hide , but when i reclick the textbox it wont appears...

did i need to quote another javascript here to make calender visible when i click textbox after date selection?


Its fixed...thanks.

http://forums.asp.net/t/1067091.aspx?PageIndex=2

i found my soluntion here..

thanks for everyone.

forums.asp.net ROCKS!!!!

Calender Control

Hi,

i am using ajax controls in asp.net.and the problem is with calender control,when i run the application the controls goes behind the text boxes.so whats will be he solution???

Regards ASAD

Just a quickie idea but what if you change the z-index in the styles? will that help?


Hi Asadikram02,

Has your problem been resolved yet ? This kind of issue often occurs on select control and we resolve it by identify its z-index property. Here is the Article which shows the solution. http://support.microsoft.com/default.aspx?scid=kb;en-us;177378

<script>
function setindex()
{
div1.style.zIndex=text1.value;
select1.style.zIndex=text2.value;
getindexes();
}

function getindexes(){

text1.value=div1.style.zIndex;
text2.value=select1.style.zIndex;
text3.value=5;
}
</script>
Above is a sample to set the z-index for a select control. It is similar to your problem.

If it doesn't work , please post your simple sample which contains this issue. Thanks

Best regards,

Jonathan

calender control

well the ajax calender control goes behind the text boxes ...so whats will be the solution

Hi Asadikram02,

This question has been answered athttp://forums.asp.net/p/1153988/1893050.aspx#1893050.

This kind of issue often occurs on select control and we resolve it by identify its z-index property. Here is the Article which shows the solution. http://support.microsoft.com/default.aspx?scid=kb;en-us;177378

Best regards,

Wednesday, March 21, 2012

CalendarExtender Pops up below DropDownList - need help

Hi, I've used CalendarExtender with a TextBox. In the next row I had a dropdownList. Now, when I click the imagebutton, the Calender pops-up below the DropDownList.

Can any one help me with this?

Hi,

Please refer to this post: http://forums.asp.net/p/834115/834115.aspx#834115