Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
15 views
I have RadDatePicker in detail window for grid. I need to modify background color dynamically so I added new script to Calender like this:
datePicker.Calendar.ClientEvents.OnLoad = initMethodName;
Now I noticed that calendar is never destroyed from page. If I close detail window and open it again then initialization method is called twice.
It looks that table element with id "<ctrl_name>_calendar" is always there and never unloaded.

Can you help me how to dispose this object or remove event from it?

Thank you.
Petr
Top achievements
Rank 1
Iron
 asked on 16 Feb 2024
0 answers
150 views

Hi,

We have upgraded the current 2013 Telerik version to Telerik AspNet Ajax Net45 2021.2.616. Following the upgrade the RadDatepickers have stopped working. Although the calendar popup appears as expected, if a date is clicked (whether it’s on a date or empty cell) the popup closes.

Whilst looking into this we noticed that the older version has a click event attached to the RadCalendarPopup which does not get added when the 2021 version is used. 

The RadDatePicker control used for testing

<asp:Panel id="Wrapper" runat="server">
    <telerik:RadDatePicker ID="RadDatePicker" Style="display: none;" MinDate="01/01/1900" MaxDate="12/31/2200" runat="server" Skin="Cse" EnableEmbeddedSkins="false">
        <Calendar ShowRowHeaders="False" FastNavigationStep="12"></Calendar>
        <ClientEvents OnDateSelected="TelerikRadDateTimePicker_DateSelected" />
    </telerik:RadDatePicker>
</asp:Panel>

 

The OnDateSelected is fired when the Go button is clicked. The onClosing method used sets the event. set_cancel() to true.

A screenshot attached

  • RadCalendarPopup in version 2013
  • Version 2013 Scriptresource snippet
  • RadCalendarPopup  in version 2021
  • Version 2021 Scriptresource snippet

The 2021 version has wrapped the div click event in an If condition which we are unable to satisfy to get the click event added to the RadCalendarPopup div. Due this the calendar click event is treated as a document click event which closes the popup.

Could you please explain why the click event is wrapped around the If condition and help us find a workaround for this.

Thanks

Sureni
Top achievements
Rank 1
 asked on 06 Oct 2021
1 answer
79 views

How Can I Set Date Filter Like this in RAD GRID AJAX ( ASP.NET C#)

Please Ref . Below Image

Regards

Sarthkee

Attila Antal
Telerik team
 answered on 09 Aug 2021
1 answer
87 views

Hello Telerik-Team,

Could you tell me, how I can change the title text of the time selection?
I want to translate it to my language. I added a screenshot, where I marked, what I mean.

Regards

Peter Milchev
Telerik team
 answered on 03 Dec 2020
8 answers
77 views

How do i remove the 'Summary' and 'Cellspacing' attributes from the Timeview? This is causing my website to not validate through https://validator.w3.org/.

 

I have tried setting summary="" and cellspacing="-1", gridlines="None", but nothing happens. I think your 'Summary' attribute is broken.

 

 

Rumen
Telerik team
 answered on 17 Nov 2020
6 answers
1.0K+ views
Hi 

Is it possible for the RadDateTimePicker to display and select the hours and minutes separately?
Marin Bratanov
Telerik team
 answered on 11 Jun 2019
1 answer
51 views
When using fields with the date/time picker (or even just the date picker) how can we get the picker to skip over the date/time dropdowns? If I enter a date of 1/2/2019 and tab I want it to go to the next field and not the date/time dropdowns. This not only will remove two tabs but also prevent the dropdown from continue to show until someone clicks somewhere else.
Rumen
Telerik team
 answered on 03 Jan 2019
6 answers
67 views

Hello, please open a demo page https://demos.telerik.com/aspnet-ajax/datetimepicker/overview/defaultcs.aspx?skin=Bootstrap and select Bootstrap skin.

Note that the left top & bottom corners are not rendered correctly. Most likely it's related to the "box-sizing: content-box".

Rumen
Telerik team
 answered on 10 Dec 2018
3 answers
109 views

How set default time like "00:12:00" in RadDateTimePicker?

I have set TimePopupButton-Visible="false" and only want to select the date...

Rumen
Telerik team
 answered on 26 Jul 2018
1 answer
564 views

Target environment where bug is replicable: Windows 10 Enterprise 64-bit.

There is a bug in the DateTimePicker widget.  If you select a time by clicking in the UI, it partially disregards your selection and forces the time to be set in AM time.  As an example, select 3 PM in the UI and the result will be set to 3 AM.  The only exception to this is with 12PM (or any derivative of that hour, such as 12:30PM).  Presumably that is because the default time of a DateTimePicker is 12PM.

I do not know what version of Telerik we use at my company--someone else in my company has the license information and I cannot be bothered.  Regardless, it does not matter.  Just go to the Telerik website with any Windows 10 machine and replicate the issue.  Link here: https://demos.telerik.com/aspnet-ajax/datetimepicker/overview/defaultcs.aspx

This bug cannot be replicated in all environments.  For example, at my office, we have a server where the behavior is not replicated (Windows Server 2012 R2 64-bit).

Attila Antal
Telerik team
 answered on 10 Jul 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?