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

[Solved] Checkbox type column issue in Q3, 2009

5 Answers 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alfa
Top achievements
Rank 1
Alfa asked on 19 Nov 2009, 05:11 AM
Hi,
I have GridViewDataColumn column, which I convert into Checkbox Type by setting DataType to typeof(System.Boolean).
In Q2 2009 release I was binding it to string type of "True" and "False" and it was working fine but when I upgraded to Q3 2009, it broke.
I am getting "...casting issue.."

What do I have to do to make it work?
I cannot change datatype, since it is coming for other source.
Since my grid is runtime generated,  I cannot implement column Template and Converter.

Rgds
Alfa.

5 Answers, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 19 Nov 2009, 12:05 PM
Hi Alfa,

I would have advised you to use a converter. What is stopping you from using a converter? There should be not problem to apply a converter event if your grid is generated at runtime?


Sincerely yours,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Alfa
Top achievements
Rank 1
answered on 20 Nov 2009, 06:00 AM
Could you please provide some links or example to do it?

Rgds
Alfa
0
Vlad
Telerik team
answered on 20 Nov 2009, 06:37 AM
Hi,

You can check this demo for more info.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Alfa
Top achievements
Rank 1
answered on 20 Nov 2009, 06:50 AM
I don't think GridView is runtime generated in the example.

Rgds
Alfa
0
Accepted
Vlad
Telerik team
answered on 20 Nov 2009, 07:01 AM
Hello,

Converters can be added to column DataMemberBinding no matter if the column is generate runtime or statically declared.

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Alfa
Top achievements
Rank 1
Answers by
Milan
Telerik team
Alfa
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or