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

The popup button vanished

3 Answers 54 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Matthew Bishop
Top achievements
Rank 1
Matthew Bishop asked on 16 Feb 2009, 05:20 PM
Once again I have updated the rad controls to the latest version and had problems.

This time its the popup button vanishing on a RadDatePicker.

All of our RadDatePickers are added to the page at runtime. When this happens the button is missing. Yet if I manually add a RadDatePicker to the aspx page, the button appears.

We do not use any custom skins.

The cssclass for the RadDatePicker button is class="rcCalPopup" for a dynamically created RadDatePicker with or without a manually added radDatePicker. The cssclass is the same for the manually added RadDatePicker.

Also, the button appears fine in the live examples.

Matt

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 19 Feb 2009, 08:42 AM
Hello Matthew,

I've just tested by adding RadDatePicker on Page.Load event as  follows:
protected void Page_Load(object sender, EventArgs e)  
    {  
        RadDatePicker picker = new RadDatePicker();  
        picker.ID = "MyPicker";  
        this.Form.Controls.Add(picker);  
    } 

and it is working properly. Can you show us your code of how you are adding RadDatePicker on the page?

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Matthew Bishop
Top achievements
Rank 1
answered on 19 Feb 2009, 10:02 AM

I have a method that adds a RadDatePicker if the form is presenting the data as a date (there are other formats that the data could be presented as). The tabelCell is what the control is added to. string d is the data. string id is the client side id. string r is for if it is a required field. This code has worked fine since the begining of 2008 when it was written.

private void addDate(ref TableCell tc, string d, string id, string r)  
        {  
            RadDatePicker dp = new RadDatePicker();  
            dp.ID = "TÇ" + id;  
            typeList += "ÆD";  
            try  
            {  
                dp.DbSelectedDate = Convert.ToDateTime(d);  
                reqCheck = true;  
            }  
            catch { }  
            if (r == "1") { rList2 += "Æ" + dp.ID; dp.Attributes.Add("onchange", "checkReq();"); }  
            dp.Calendar.Skin = "Web20";  
            dp.SharedCalendar = RadCalendar1;  
            dp.ClientEvents.OnDateSelected = "checkReq3";  
            tc.Controls.Add(dp);  
            calanderUsed = true;  
        } 

I have temporarily manually added a hidden RadDatePicker to the aspx form, which them makes the popup button appear.
0
Nikolay Rusev
Telerik team
answered on 23 Feb 2009, 03:25 PM
Hello Matthew,

Due to the fact that I am still unable to replicate the issue which you are facing I suggest you create small runnable application which replicates the problem and send it to us via formal support ticket.
Thus we'll be able to help you more on this.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Calendar
Asked by
Matthew Bishop
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Matthew Bishop
Top achievements
Rank 1
Share this question
or