Try Now
More in this section

Forums / General Discussions / chkRecentItem adding to the dashboardsetting

chkRecentItem adding to the dashboardsetting

2 posts, 0 answered
  1. mathieu cupryk
    mathieu cupryk avatar
    9 posts
    20 Jul 2012
    13 Aug 2009
    Link to this post
    I need to add another recent Item to the \Sitefinity\Admin\ControlTemplates\Personalization\DashboardSettings.ascx

    How can I add a checkbox item.
  2. Nikolai
    Nikolai avatar
    216 posts
    21 Oct 2016
    13 Aug 2009
    Link to this post
    Hi mathieu cupryk,

    You can add the check box to the template. The problem is there is no built in way to persist its value.
    You will have to find your own way to persist it.
    The way I would approach this is to add my custom method to the OnClick of the Save button like this:

    1. Open DashboardSettings.ascx
    2. Before the last closing div add the following code:
     <script runat="server"
            protected void SBClick(object sender, EventArgs e) 
    3. Add this SBClick method to the OnClick event of the save button:
    <asp:LinkButton ID="SaveDashboardButton" Text="Save" runat="server" OnClick="SBClick" CssClass="CmsButLeft okdark"><strong class="CmsButRight dark"><asp:Literal ID="SaveSettingLiteral" runat="server" Text="<%$ Resources:SaveSetting %>" /></strong></asp:LinkButton> 

    Hope this helps.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
2 posts, 0 answered