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

Not able to set attribute value

6 Answers 58 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Sampada
Top achievements
Rank 1
Sampada asked on 22 Aug 2012, 11:22 AM

Team,

I have added attribute to RadDatePicker control while dynamically creating it.
This attribute contains the date time of the control creation(DateTime.Now.ToString()).
I have retrieved attribute value from in client side.
But I am not able to set Raddatepickers value to that attribute value in client side .
Please let me know  how I can achieve this task?

Any help will be appreciable. 

Regards,
Sampada 


6 Answers, 1 is accepted

Sort by
0
Sampada
Top achievements
Rank 1
answered on 23 Aug 2012, 10:42 AM
Team,

Any update on it ?

Regards,
Sampada
0
Kevin
Top achievements
Rank 2
answered on 23 Aug 2012, 12:03 PM
Hello Sampada,

Have you tried the following:

var datePickerElem = $find("<%=RadDatePicker1.ClientID").get_element();
  
// update attribute
$telerik.$(datePickerElem).attr("Attribute1","Updated Attribute");

I hope that helps.
0
Sampada
Top achievements
Rank 1
answered on 23 Aug 2012, 02:13 PM
Hello Kevin,

Thanks for the reply.
But as I mention in the previous post  I wanted to set date of datepicker by the attribute value which I have added while creating  
the datepicker control from server side.

Regards,
Sampada
0
Eyup
Telerik team
answered on 24 Aug 2012, 12:16 PM
Hello Sampada,

I have created a sample web site to demonstrate how you can achieve the requested functionality. Please check out the attached application and let me know if it helps you.

All the best,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Dean
Top achievements
Rank 1
answered on 28 Aug 2012, 02:49 AM
Hi Eyup,

i am using RadDatePicker on a public website. I tested the WCAG compliance of the control using AChecker.com with
0
Eyup
Telerik team
answered on 30 Aug 2012, 01:22 PM
Hi Dean,

Please check out the provided reply on the same matter in the following thread:
http://www.telerik.com/community/forums/aspnet-ajax/grid/itemdatabound-radgrid.aspx

Greetings,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Calendar
Asked by
Sampada
Top achievements
Rank 1
Answers by
Sampada
Top achievements
Rank 1
Kevin
Top achievements
Rank 2
Eyup
Telerik team
Dean
Top achievements
Rank 1
Share this question
or