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

RadDatePicker in control issue..

1 Answer 31 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Carlo
Top achievements
Rank 1
Carlo asked on 20 Oct 2010, 10:19 PM
Hi,

I am using a RadDatePicker in a setup that is similar to the ActiveSkill example (i.e. a RadSplitter with two RadPanes), the right most
RadPane is the destination pane for my custom control that is loaded by Page.LoadControl and added by Page.Controls.Add().

Now I noticed that if I create a custom control with only a RadDatePicker in it, the calender popup button does not do anything,
if I move the control to the page with the RadPanes and the RadSplitter (i.e. out of the custom control) it works fine.

What am I missing?

Thanks,
-Carlo

1 Answer, 1 is accepted

Sort by
0
Carlo
Top achievements
Rank 1
answered on 21 Oct 2010, 12:25 AM
Found the issue..

My controls were loaded with:

 

// Load the control and set its id

 

 

Control control = Page.LoadControl(newControlPath);

 

 

control.ID = newControlPath;

The issue was that newControlPath was something like control.ascx,
it's the dot in the newControlPath that is then assigned to control.ID that
broke down everything.

As soon as I add some code to strip off the dot and anything after it, everything
works fine.

-Carlo

 

Tags
General Discussions
Asked by
Carlo
Top achievements
Rank 1
Answers by
Carlo
Top achievements
Rank 1
Share this question
or