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

Display the RadGrid, I'm newbie!

4 Answers 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Valentino
Top achievements
Rank 1
Valentino asked on 16 Jul 2010, 03:57 PM
Hello, I'm newbie in telerik component.
I created this RadGrid but on the browser I can see only the border of the grid.
How can I see the name of static column? This is my first example, sorry if this is very very simple.
Thank you very much to all.
<telerik:RadGrid Skin="Vista" ID="GrigliaProgetti" runat="server" Width="500px" Height="400px" AutoGenerateColumns="false"
         AllowPaging="true" AllowSorting="true">
        <PagerStyle  Mode="NextPrevAndNumeric" />
          <GroupingSettings CaseSensitive="false" />
                <MasterTableView TableLayout="Fixed" >
                    <Columns>
                        <telerik:GridNumericColumn HeaderText="Project Id"/>
                        <telerik:GridBoundColumn HeaderText="Project name"/>
         
                    </Columns>
                </MasterTableView>
        </telerik:RadGrid>

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 19 Jul 2010, 12:51 PM
Hello Valentino,

Please go through the following articles and let me know if other questions arise:
http://www.telerik.com/help/aspnet-ajax/grdcolumntypes.html
http://www.telerik.com/help/aspnet-ajax/grdusingcolumns.html

Regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Valentino
Top achievements
Rank 1
answered on 19 Jul 2010, 01:31 PM
Hello, thank you for the reply.

My problem is that with this code I can't see the grid. I see only the border. I try with the code of the explample and the result is the same.
This is the code:

<telerik:RadGrid
 ID="RadGrid1"
 runat="server">         
 <MasterTableView
    DataSourceID="ProductsDataSource"
    TableLayout="Auto">
   <Columns>
     <telerik:GridBoundColumn
       DataField="ProductID"
       DataType="System.Int32"
       HeaderText="Product ID"
       SortExpression="ProductID"
       UniqueName="ProductID" />
    <telerik:GridBoundColumn
       DataField="ProductName"
       HeaderText="Product Name"
       SortExpression="ProductName"
       UniqueName="ProductName" />
     <telerik:GridBoundColumn
       DataField="UnitPrice"
       DataType="System.Decimal"
       HeaderText="Unit Price"
       SortExpression="UnitPrice"
       UniqueName="UnitPrice">
     </telerik:GridBoundColumn>
   </Columns>        
 </MasterTableView>
</telerik:RadGrid>

and this is the header of the page:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

I see only a grey line that I suppose is the border of the grid.
Thank you very much!
0
Valentino
Top achievements
Rank 1
answered on 19 Jul 2010, 01:56 PM
I think that I have to add data to display the grid. I try.
0
Valentino
Top achievements
Rank 1
answered on 19 Jul 2010, 02:11 PM
Yesss!. Now it works perfectly.
Tags
Grid
Asked by
Valentino
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Valentino
Top achievements
Rank 1
Share this question
or