Not able to set attribute value

7 posts, 0 answers
  1. Sampada
    Sampada avatar
    44 posts
    Member since:
    Feb 2012

    Posted 22 Aug 2012 Link to this post


    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 


  2. Sampada
    Sampada avatar
    44 posts
    Member since:
    Feb 2012

    Posted 23 Aug 2012 Link to this post

    Team,

    Any update on it ?

    Regards,
    Sampada
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 23 Aug 2012 Link to this post

    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.
  5. Sampada
    Sampada avatar
    44 posts
    Member since:
    Feb 2012

    Posted 23 Aug 2012 Link to this post

    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
  6. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 24 Aug 2012 Link to this post

    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.
  7. Dean
    Dean avatar
    10 posts
    Member since:
    Jun 2012

    Posted 27 Aug 2012 Link to this post

    Hi Eyup,

    i am using RadDatePicker on a public website. I tested the WCAG compliance of the control using AChecker.com with
  8. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 30 Aug 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017