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

RadGrid CheckBox Column

3 Answers 252 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mirko
Top achievements
Rank 1
Mirko asked on 02 Oct 2008, 11:32 AM
Hello,

I have this scenario:

I use as datasource a dataset defined in a string where a column is a boolean.
My Radgrid is build at runtime and i want to see a checkbox for boolean column and not a textbox. How can i do this?

My dataset structure:

<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Table1">
          <xs:complexType>
            <xs:sequence>
              <xs:element  name="ID" msdata:AutoIncrement="true" type="xs:int" minOccurs="0" />
              <xs:element name="Cognome" type="xs:string" minOccurs="0" />
              <xs:element name="Nome" type="xs:string" minOccurs="0" />
              <xs:element name="Info" type="xs:string" minOccurs="0" />
              <xs:element name="Confermato" type="xs:boolean" default="false" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>

Help me.

Mirko

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 06 Oct 2008, 09:56 AM
Hi Mirko,

You can bind the data to a checkbox column, or a template column with a checkbox in it. Additional information on the possible column types is available in the following example.
I hope this information helps.

Greetings,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
mathieu cupryk
Top achievements
Rank 1
answered on 16 Dec 2012, 11:56 PM
Link broken.
0
Princy
Top achievements
Rank 2
answered on 17 Dec 2012, 05:20 AM
Hi,

Here is  the link.
Grid / Column Types

Thanks,
Princy.
Tags
Grid
Asked by
Mirko
Top achievements
Rank 1
Answers by
Yavor
Telerik team
mathieu cupryk
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or