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

Forums / Developing with Sitefinity / Client side data binding for the Generic Content based modules

Client side data binding for the Generic Content based modules

6 posts, 1 answered
  1. Shawn
    Shawn avatar
    79 posts
    Registered:
    26 Sep 2012
    02 Nov 2010
    Link to this post
    I have a question in regards to client side data binding for Generic Content based modules.  The developer manual lists a number of properties that are available for databinding.  Ivan also lists them in this post:

    http://www.sitefinity.com/blogs/ivan/posts/09-03-22/products_module_client_side_data_binding_custom_meta_fields.aspx

    I am displaying DateModified in the grid but the date being returned doesn't correspond to the version create date.  When I look at the history of a piece of content the version date is a before the DateModified.  I assumed DateModified corresponded to the version date but maybe I'm mistaken.  Maybe DateModified is updated any action is taken on the content.  For example, if it was approved 2 days after the version was created the DateModified is the approval date.  If that's the case, is that also true for Modifier?

    If my assumptions are correct is there a way to display the version author and version create date in the list?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    02 Nov 2010
    Link to this post
    Hi Shawn,

    DateModified is updated only when you edit  the content. Workflow steps do not update the DateModified. 
    Modifier is a user that has edited the content item and it is not updated during the Workflow steps.

    Sincerely yours,
    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
  3. Shawn
    Shawn avatar
    79 posts
    Registered:
    26 Sep 2012
    02 Nov 2010
    Link to this post
    Any idea why the DateModified being returned isn't the same as the create date for the version on the history tab for the content?  The DateModified date is 2 days after the version create date.  What table(s) are DateModified and Modifier being pulled from. I looked in dbo.sf_CmsContentVersion and the data being returned for DateModified matches up with DateModifiedLoc.


    I also updated the DateModifiedLoc to see if it changes the DateModified value and it did.  So the question is why would DateModifiedLoc be 2 days after the version create date?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    03 Nov 2010
    Link to this post
    Hello Shawn,

    The "Date" you see in History tab for each version is get from[ sf_VersionItem] table. We cast the value to ToLocalTime(). This is the date when the VersionItem has been created. DateModified is updated when you Publish the item, but this does not create a new version.

    The values of Date and DateModifed are equivalent only when you create the item for the first time - so there is only one version of the item. Once you publish the item the DateModified gets updated.

    All the best,
    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
  5. Shawn
    Shawn avatar
    79 posts
    Registered:
    26 Sep 2012
    03 Nov 2010
    Link to this post
    Is there a way to retrieve the version create date and creator for display on the list page?
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    03 Nov 2010
    Link to this post
    Hi Shawn,

    You should implement your own web service and bind the RadGrid to VersionItem objects.

    Sincerely yours,
    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
    Answered
Register for webinar
6 posts, 1 answered