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