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

RadGrid destroyed when I use Eval

1 Answer 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 04 Aug 2016, 11:26 AM

Hello all,

I have a hard issue with a Telerik RadGrid, when I use a templateColumn and put <%# Eval("something") %> me table brokes!

 

My ASP Code:

<telerik:RadGrid ID="RadGrid1" runat="server"  AutoGenerateColumns="false">
    <MasterTableView HierarchyLoadMode="Client" DataKeyNames="id" ClientDataKeyNames="id" NoMasterRecordsText="No existen registros a mostrar.">
        <Columns>
            <telerik:GridBoundColumn DataField="nombre" UniqueName="nombre" HeaderText="Nombre" />
            <telerik:GridTemplateColumn HeaderText="Tipo">
                <ItemTemplate>
                    <p><%# Eval("tipo") %></p>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
             <telerik:GridBoundColumn DataField="creacion" UniqueName="creacion" HeaderText="Creación" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

 

My broken table:

http://puu.sh/qpuB9/7a12a67e1c.png

My table without Eval:

http://puu.sh/qpuDh/a9f06c406d.png

 

HELP PLZ!

 

Thz for your time.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 08 Aug 2016, 01:31 PM
Hi Marc,

Can you please elaborate which version of the controls you are using, how you are binding the RadGrid and if there are JavaScript errors present on the page? Additionally, is the problem observed in debug mode only and in any particular browser or it is replicated in all browsers?

I am looking forward to your reply.


Regards,
Konstantin Dikov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Marc
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or