Ejemplo n.º 1
0
        private void objLVDashboard_FormatRow(object sender, FormatRowEventArgs e)
        {
            if (e == null)
            {
                return;
            }
            DashboardReportItem item = (DashboardReportItem)e.Model;

            if (item.GetReportItemDecoration().IsHighlightColor)
            {
                e.Item.BackColor = item.GetReportItemDecoration().HighlightColor;
            }
            e.UseCellFormatEvents = true;
        }
Ejemplo n.º 2
0
        private void objLVDashboard_FormatCell(object sender, FormatCellEventArgs e)
        {
            if (e == null)
            {
                return;
            }
            DashboardReportItem item = (DashboardReportItem)e.Model;

            if (e.SubItem.ForeColor != item.GetReportItemDecoration().FontColor)
            {
                e.SubItem.ForeColor = item.GetReportItemDecoration().FontColor;
            }

            //indention on dashboard report grouped
            e.Item.Text = "  ".PadLeft(dashboardContentIndention) + e.Item.Text;
        }
Ejemplo n.º 3
0
        private void objLVDashboard_HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
        {
            if (e.Model == null)
            {
                return;
            }
            DashboardReportItem item = (DashboardReportItem)e.Model;

            if (item.GetReportItemDecoration().IsHyperLink)
            {
                ActionableDashboardReportItem(item);
            }
        }
Ejemplo n.º 4
0
        private void objLVDashboard_IsHyperlink(object sender, IsHyperlinkEventArgs e)
        {
            if (e.Model == null)
            {
                return;
            }
            DashboardReportItem item = (DashboardReportItem)e.Model;

            if (!item.GetReportItemDecoration().IsHyperLink)
            {
                e.IsHyperlink = false;
                e.Url         = null;
            }
        }