I want to create a RadGrid to use like a spreadsheet, where users can fill in the cells, add rows, and delete rows. We're doing that now with an Infragistics grid, which I want to replace. I've attached a pic of what it looks like, which I now want to do with a RadGrid (but with a comboxbox in the "Cost Center" field now).
After I created the columns, I ran the webpage, but the grid is blank -- it doesn't even show the column headers. All I want is an empty row for the user to enter values into (like my attached pic shows) after which they can add or delete rows. (I'll save/load the data into the grid later.)
My RadGrid is defined below, with various ColumnType and DataTypes. But when I run it, there's no grid on the page. What am I missing? Or is RadGrid meant only for display purposes? I found none of your demos allow the spreadsheet-like editing of cells, so am I using the wrong control?
| <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None"> |
| <HeaderContextMenu EnableAutoScroll="True"> |
| </HeaderContextMenu> |
| <MasterTableView> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridCheckBoxColumn DataType="System.Boolean" HeaderText="Print" UniqueName="Print"> |
| </telerik:GridCheckBoxColumn> |
| <telerik:GridCheckBoxColumn DataType="System.Boolean" HeaderText="Post" UniqueName="Post"> |
| </telerik:GridCheckBoxColumn> |
| <telerik:GridBoundColumn HeaderText="Account Number" UniqueName="Account Number"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="Detail Description" UniqueName="Detail Description"> |
| </telerik:GridBoundColumn> |
| <telerik:GridDropDownColumn HeaderText="Cost Center" UniqueName="Cost Center"> |
| </telerik:GridDropDownColumn> |
| <telerik:GridNumericColumn DataType="System.Decimal" HeaderText="Quantity" UniqueName="Quantity"> |
| </telerik:GridNumericColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |