1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / What is possible with profile property extension?

What is possible with profile property extension?

2 posts, 0 answered
  1. Jean-Paul Smit
    Jean-Paul Smit avatar
    8 posts
    Registered:
    13 Dec 2009
    20 May 2010
    Link to this post
    I'm working on a site for which I need to customize the profile and registration pages.
    So far so good.
    However, I have some specific requirements that I'm not sure I can meet with the profile properties.
    For example:
    - I would like the user to be able to select a date using a date picker and not have a textbox where it can be filled in
    - I would like to keep a history of the changes in the profile
     
    Are these things possible or do I need to do some custom coding?

    Kind regards,
    Jean-Paul
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    21 May 2010
    Link to this post
    Hello Jean-Paul Smit,

    - I would like the user to be able to select a date using a date picker and not have a textbox where it can be filled in

    You could use RadDateTimePicker or RadDatePicker controls and hide the input as shown in the code below

    <style type="text/css">
      
      input.hidePicker
      {
        width:1px !important;
        border:0 !important;
        padding:0 !important;
        visibility:hidden !important;
      }
    </style>
          
     
     
     
    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Width="20px" CssClass="hidePicker">
        <DateInput ReadOnly="true" CssClass="hidePicker" />
    </telerik:RadDatePicker>

    I would like to keep a history of the changes in the profile - if you are doing the changed through backend UI you could subscribe for manageUsers.UpdatedUser in Sitefinity\Admin\CmsAdmin\Users.aspx.cs and track the changes. You need to create a new data table in the database where you keep the last modified date and the changes that have been performed. If you are using a custom user/custom control you could do this when you update the user. Generally for updating the Profile data in ASP.NET SetPropertyValue method is used.


    Regards,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered