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

Forums / Designing with Sitefinity / Config entry for Table Mode Download List

Config entry for Table Mode Download List

4 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    16 Mar 2010
    Link to this post
    Can someone tell me what's the <viewSettings> entry to get the DownloadList Table Mode external template mapped?

    I cant seem to find it in the external template Config map...
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    16 Mar 2010
    Link to this post
    Hello Steve,

    You can map the control designer template for DownloadList control

    <viewSettings hostType="Telerik.Libraries.WebControls.Design.DownloadListDesigner" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Libraries/DownloadListControlDesigner.ascx" />

    Then set the template from the Presentation mode settings

    <sf:PresentationMode ID="TableMode"
    runat="server"
    ModeTitle="Table"
    ModeSettingsId="ModeSettings2"
    MasterTemplatePath="~/SomePath/DownloadListTableMode.ascx"
    SelectedCssClass="selectedOption">

    The second option is using the Advanced tab of the DownloadList and map the template by using ItemListTemplatePath property.

    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.
  3. Mike
    Mike avatar
    208 posts
    Registered:
    10 Dec 2007
    16 Sep 2011
    Link to this post
    Hi Ivan,
    I notice when I do this, existing downloadList controls on the page are not affected by the newly mapped designer template.  Any new controls I add will have the customized template.  So I have to use your second option regardless, at least for existing controls.  Is there a way to force existing instance of the control to reload the designer mapping?

    Btw, thIs is on an upgrade to SF 3.7 SP4 from 3.2.

    Thanks,
    Mike
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    17 Sep 2011
    Link to this post
    Hello Mike,

    You need to remove/add the control on the page or open the control for editing, change the presentation mode then save the control, open it again and switch back to the desired presentation mode.
    It could be done programatically if you have many controls if the same type, by locating the control on the page and executing the same procedures as above.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered