This is a migrated thread and some comments may be shown as answers.

RadDateTimePicker issue

4 Answers 67 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Mallikarjun
Top achievements
Rank 1
Mallikarjun asked on 23 Jul 2008, 05:51 AM
Hi,

I am using RadDateTimePicker control. I want to control the pop up window that opens when we select calender/Time view. I mean i need to control the height & width.

Currently if the RadDateTimePicker is at the bottom of the page & if we select the calender button/Time View then the pop up is chopped off.

Any help is really appreciated.

Thanks,
Mallikarjun

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 23 Jul 2008, 12:42 PM
Hello Mallikarjun,

Refer to the following code library, which elaborates on opening the TimeView depending on control position.

Kind regards,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mallikarjun
Top achievements
Rank 1
answered on 23 Jul 2008, 01:11 PM
Hi Maria ,

Thanks for the sample. I am using the RadDateTimePicker control. Below is the code that i modified according to your sample.

RadDateTimePicker

rad = new RadDateTimePicker();

rad.ID =

"rad";

rad.PopupButton.Attributes[

"onclick"] = "PopupUpdating(\"" + rad.ClientID + "\");";

rad.TimeView.Attributes[

"onclick"] = "PopupUpdating(\"" + rad.TimeView.ClientID + "\");";

Panel2.Controls.Add(rad);

For calender view the pop up works fine but for TimeView "PopupUpdating" is not getting fired. Am i missing something?

Thanks,
Mallikarjun
0
Mallikarjun
Top achievements
Rank 1
answered on 24 Jul 2008, 05:55 AM
HI,

Can any one please help me to solve the issue?
I even tried modifying the code for TimeView. Below is the sample

RadDateTimePicker rad = new RadDateTimePicker();

rad.ID =

"rad";


rad.TimePopupButton.Attributes[

"onclick"] = "PopupTimeViewUpdating(\""+rad.ClientID+"\",\"" + rad.TimeView.ClientID + "\");";

TimeView does not have any default container like calender & show popup function will fail

Thanks,
Mallikarjun
0
Maria Ilieva
Telerik team
answered on 24 Jul 2008, 12:37 PM
Hi Mallikarjun,

Refer to this link, which provides approach for getting the TimeView wrapper.

Kind regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Dock
Asked by
Mallikarjun
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Mallikarjun
Top achievements
Rank 1
Share this question
or