Exemple #1
0
        private void htmlTextBoxStudentInfo_ItemDataBinding(object sender, EventArgs e)
        {
            Telerik.Reporting.Processing.HtmlTextBox txt        = (Telerik.Reporting.Processing.HtmlTextBox)sender;
            Telerik.Reporting.Processing.IDataObject dataObject = (Telerik.Reporting.Processing.IDataObject)txt.DataObject;

            txt.Value = $@"{dataObject["StudentNo"]} <b>{dataObject["StudentName"]}</b><br>{dataObject["Gender"]} {((DateTime)dataObject["StartDate"]).ToString("MM-dd-yy")}~{((DateTime)dataObject["EndDate"]).ToString("MM-dd-yy")} <b>{dataObject["CountryName"]}</b>";

            _rowCount++;
        }
Exemple #2
0
        private void detail_ItemDataBinding(object sender, EventArgs e)
        {
            // Get the detail section object from sender
            Telerik.Reporting.Processing.DetailSection section = (Telerik.Reporting.Processing.DetailSection)sender;
            // From the section object get the current DataRow
            Telerik.Reporting.Processing.IDataObject dataObject = (Telerik.Reporting.Processing.IDataObject)section.DataObject;
            long      jqid       = Convert.ToInt64(dataObject["JQID"]);
            JQManager jqMgr      = new JQManager();
            string    reportText = jqMgr.CreateUTF8JobQuestionnaireReportByJQID(jqid);

            txtUTF.Value = reportText;
        }