Esempio n. 1
0
        /// <summary>
        /// Handles the OnItemDataBound event of the gridPortalSettings control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="Telerik.Web.UI.GridItemEventArgs"/> instance containing the event data.</param>
        protected void gridPortalSettings_OnItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                var item = (GridDataItem)e.Item;
                var data = (DataRowView)e.Item.DataItem;

                var portalUrl = BusinessLogicLayer.Configuration.Settings.LabitecLeadForcePortalUrl + "/" + data["ID"];
                ((HyperLink)item.FindControl("hlPortal")).Text        = portalUrl;
                ((HyperLink)item.FindControl("hlPortal")).NavigateUrl = portalUrl;
                ((HyperLink)item.FindControl("hlEdit")).NavigateUrl   = UrlsData.AP_PortalSettingsEdit(Module, Guid.Parse(data["ID"].ToString()));
            }
        }