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

[Solved] DatePicker in user control not working

5 Answers 204 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 24 Mar 2008, 06:49 PM
Hi all,

I am using a Promtheus radgrid on my web page.  I am using a user control to edit a row in my radGrid.  So when Edit is clicked, I display my user control with various textboxes and such.  I also use the radDatePicker for my date fields.  When I click Edit, my user control appears and the value I previously selected appears.  But when I click on the date icon, nothing happens.  Just as a test, I put a radDatePicker on my main web page and it did work.  So what am I doing wrong?  Here is how I defined the datepicker in my user control.:

<

telerik:RadDatePicker ID="tbPolicyAccountValueDate"

runat="server"

Text='<%# DataBinder.Eval( Container, "DataItem.PolicyAccountValueDate") %>'>

</telerik:RadDatePicker>

Thanks,
Bob

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 25 Mar 2008, 07:18 AM
Hi Bob,

Please use DbSelectedDate instead. Here is an example:

<telerik:RadDatePicker ID="tbPolicyAccountValueDate" runat="server"
    DbSelectedDate='<%# Eval( "PolicyAccountValueDate") %>'>
</telerik:RadDatePicker>

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Bob
Top achievements
Rank 1
answered on 25 Mar 2008, 03:52 PM
Vlad,

I made this change but it still does not work.  When I click the date icon nothing happens.  As I said in my original post, it does not work in my user control but does work on a web page.  Any other ideas?

Thanks,
Bob
0
Steve
Telerik team
answered on 25 Mar 2008, 04:09 PM
Hi Bob,

We've used this online example along with the DatePicker for the birthdate and could not reproduce such problems. Can you give it a try on your end and let us know what differs in your case?

Greetings,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Bob
Top achievements
Rank 1
answered on 25 Mar 2008, 05:46 PM
Steve,

I am confused by the example you sent me.  This does not seem to address my problem at all.  When I click on the Edit for a row in the grid, I get the birth date as a textbox in the user control.  I want to use your DatePicker control with the little icon that can be clicked on and then the present month appears.  Your example is not doing this.  Maybe read my original post again.

Thanks,
Bob
0
Sebastian
Telerik team
answered on 26 Mar 2008, 07:02 AM
Hello Bob,

Do you experience the odd issue with non-ajaxified grid or when the control is ajaxified by RadAjaxManager? If this is the case, please verify that you have ajax setting for the manager which marks the grid as initiator and updated control.  

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Bob
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Bob
Top achievements
Rank 1
Steve
Telerik team
Sebastian
Telerik team
Share this question
or