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

click on calendar image and calendar pop ups

3 Answers 157 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vasya Ivanov
Top achievements
Rank 1
Vasya Ivanov asked on 22 Feb 2011, 07:41 PM
Hi guys,
I have following code in aspx:

<

 

td align="center" class="TD" style="width: 93px; height: 5px" valign="middle">

 

 

<asp:TextBox ID="TextBoxSec4Date1" runat="server" BackColor="LightSteelBlue" BorderStyle="None"

 

 

contentEditable="false" Font-Size="X-Small" MaxLength="10" Style="left: 0px;

 

 

position: relative"

 

Width="55px"></asp:TextBox>

 

 

<asp:Image ID="Image1" runat="server" BackColor="Black" BorderStyle="Solid" Height="16px"

 

 

ImageUrl="../Image/icon-calendar.gif"

 

 

Style="left: 3px; position: relative; top: 3px" Width="23px" />

 

 

</td>

 


When user click on image calendar pop ups and placed in textbox.
How can I do that?
Thanks so much for your help

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Feb 2011, 05:12 AM
Hello Vasya,

You can achieve the desired requirement by using the RadDateTimePicker. Here is the example.
aspx:
<telerik:RadDatePicker ID="RadDatePicker1" MinDate="2006/01/01" runat="server">
        <DatePopupButton ImageUrl="../Images/Image1.jpg"  HoverImageUrl="../Images/Image2.jpg"/>
</telerik:RadDatePicker>

Please take a look at the following documentation for more on RadDatePicker.
http://www.telerik.com/help/aspnet-ajax/calendar_gettingstarted.html

Thanks,
Shinu.
0
Vasya Ivanov
Top achievements
Rank 1
answered on 23 Feb 2011, 10:23 PM
Hi,
thanks for responding,but can you be more specific,provide more example(sorry since I am new to .NET:
I need textbox next to image(the same back color) and click on image and choose date and this date appeared in text box.

Thanks
0
Shinu
Top achievements
Rank 2
answered on 24 Feb 2011, 06:00 AM
Hello Vasya,

The RadDatePicker can be used in this scenario. It comes up with InputArea, Popup Control, and Calendar Popup Button. Here is an example which explains more on RadDatePicker
http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/custompopup/defaultcs.aspx

Thanks,
Shinu.
Tags
General Discussions
Asked by
Vasya Ivanov
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Vasya Ivanov
Top achievements
Rank 1
Share this question
or