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

How to show columns with check box instead of true/false?

1 Answer 572 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 11 Feb 2015, 04:04 PM
I have a radGrid with string and boolean values. The boolean values are showing as "True" and "False". I want them to show as checkboxes in both the normal display and edit modes.

How do I accomplish this? Below is my markup code:

<telerik:RadDropDownList ID="ddlRoles" runat="server" CssClass="wepageManagementDropDown" Width="200px" DataTextField="role" DataValueField="ID" AutoPostBack="true" OnItemSelected="ddlRoles_ItemSelected"></telerik:RadDropDownList>
  <br /><br />   
  <telerik:RadGrid ID="RadGridwebpagemanagement" Height="70%" runat="server" AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" GroupPanelPosition="Top" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" OnNeedDataSource="RadGridwebpagemanagement_NeedDataSource">
      <ClientSettings>
          <Scrolling AllowScroll="True" UseStaticHeaders="True" />
          <Selecting AllowRowSelect="true" />
      </ClientSettings>
      <MasterTableView AutoGenerateColumns="false">
          <Columns>
 
              <telerik:GridBoundColumn DataField="webpage_name" HeaderText="Web Page" UniqueName="webpage_name"
                          FilterControlWidth="100px">
                          <HeaderStyle Width="115px" />
              </telerik:GridBoundColumn>
 
              <telerik:GridBoundColumn DataField="add_privledge" HeaderText="Allow Adds" UniqueName="add_privledge"
                          FilterControlWidth="60px">
                   
                          <HeaderStyle Width="100px" />
              </telerik:GridBoundColumn>
 
               
              <telerik:GridBoundColumn DataField="edit_privledge" HeaderText="Allow Edits" UniqueName="edit_privledge"
                          FilterControlWidth="60px">
                          <HeaderStyle Width="100px" />
              </telerik:GridBoundColumn>
 
               <telerik:GridBoundColumn DataField="delete_privledge" HeaderText="Allow Deletes" UniqueName="delete_privledge"
                          FilterControlWidth="60px">
                          <HeaderStyle Width="100px" />
              </telerik:GridBoundColumn>
 
               <telerik:GridBoundColumn DataField="view_privledge" HeaderText="Allow Views" UniqueName="view_privledge"
                          FilterControlWidth="60px">
                          <HeaderStyle Width="100px" />
              </telerik:GridBoundColumn>
 
          </Columns>
      </MasterTableView>
  </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 11 Feb 2015, 07:25 PM
I found the answer! <GridCheckBoxColumn>
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Share this question
or