I have a Report based on a database table. I have interger fields in the table(0 for false and -1 for true). These fields should be represented in report as checkboxes.
How can I bind the columns for checkbox state (checked/unchecked).
I am using following expression for the Value property of the checkbox, but the checkstate is not changing.
= IIf(Fields.col1< 0, True, False).
Am i missing anything?
Thanks
TelDev
6 Answers, 1 is accepted
Thanks
TelDev
The expression is correct so the problem should be somewhere else. Could you please, open a support ticket and send us a sample report that reproduces this behavior so that we can investigate it locally.
All the best,
Chavdar
the Telerik team
FREE WEBINAR ON THE NEW REPORT DESIGNER! Join us on Friday, June 29 at 10:00 AM PST for a comprehensive demo of the official version of the standalone Report Designer and find out how easy it is to empower your users with creating, editing and sharing ad-hoc reports. You may even win a free Telerik Ultimate Collection license! Register today >>
I will try to create a test project.
If i want to set the checkbox value programatically(in code-behind), Which method should i use
checkbox.truevalue = system.windows.forms.checkstate.checked
or
checkbox.value = true
I tried both of them, but no luck.
Thanks
TelDev
If you are trying to set the checkbox state in an event, check out Understanding Events help article and the following code snippet:
void
checkBox1_ItemDataBinding(
object
sender, System.EventArgs e)
{
var procCheckBox = (Processing.CheckBox)sender;
procCheckBox.Value = System.Windows.Forms.CheckState.Checked;
}
Peter
the Telerik team
FREE WEBINAR ON THE NEW REPORT DESIGNER! Join us on Friday, June 29 at 10:00 AM PST for a comprehensive demo of the official version of the standalone Report Designer and find out how easy it is to empower your users with creating, editing and sharing ad-hoc reports. You may even win a free Telerik Ultimate Collection license! Register today >>
Hi Team,
I need to use the grid in the telerik reporting. Did Telerik reporting support grid control? The grid should consists of rows and columns with grid lines. Based on the specified rows and columns the grid should be fill up. Is it possible to do. Please help me out on this. I am sending the screen shot of document.
Telerik Reporting engine works only with Telerik Reporting items. Thus you can use the Table/List/Crosstab item to design such layout.
More details about the item are available in the following articles:
If the purpose is to export existing UI into PDF or other format, depending on the type of web application, please consider using Teler UI for AJAX - RadPdfProcessing, RadWordsProcessing. You may be interested also in Telerik UI for ASP.NET AJAX RadClientExportManager, which allows you to render HTML pages in PDF and image formats.In MVC project you can use Telerik Kendo UI PDF export (works like the ClientExportManager without requiring AJAX)."
Regards,
Stef
Telerik