This is a migrated thread and some comments may be shown as answers.

Reporting Checkbox Checked state

6 Answers 396 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
TelDev
Top achievements
Rank 1
TelDev asked on 20 Jun 2012, 01:48 PM
Hi,

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

Sort by
0
TelDev
Top achievements
Rank 1
answered on 25 Jun 2012, 07:53 AM
Can someone from Telerik Team please reply.

Thanks
TelDev
0
Chavdar
Telerik team
answered on 25 Jun 2012, 03:21 PM
Hi,

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 >>

0
TelDev
Top achievements
Rank 1
answered on 26 Jun 2012, 07:29 AM
Thanks Chavdar,

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
0
Peter
Telerik team
answered on 29 Jun 2012, 07:44 AM
Hi,

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;
}
Kind regards,
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 >>

0
Yasmeen
Top achievements
Rank 1
answered on 28 Sep 2015, 01:31 PM

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. 

 

0
Stef
Telerik team
answered on 30 Sep 2015, 03:07 PM
Hello Yasmeen,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
TelDev
Top achievements
Rank 1
Answers by
TelDev
Top achievements
Rank 1
Chavdar
Telerik team
Peter
Telerik team
Yasmeen
Top achievements
Rank 1
Stef
Telerik team
Share this question
or