Hello,
I thought I'd try this board as the Support Board doesnt seem to be responding. I'm a newcomer to Syncfusion, but have been using Telerik until now.
First attempt at a Grid using an SQLDataSource, all the data is produced from the SQL query and is sitting in the output page in a JSON structure, but nothing appears on screen.
It must be something really simple, but I cant see it! Code is:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<%@ Register assembly="Syncfusion.EJ.Web, Version=12.4400.0.24, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" namespace="Syncfusion.JavaScript.Web" tagprefix="ej" %>
<%@ Register assembly="Syncfusion.EJ, Version=12.4400.0.24, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" namespace="Syncfusion.JavaScript.Models" tagprefix="ej" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:SqlDataSource ID="SqlDataSourceAssetTypes" runat="server" ConnectionString="<%$ ConnectionStrings:HydraConnectionString %>"
SelectCommand="GetAssetTypes" SelectCommandType="StoredProcedure" >
<SelectParameters>
<asp:QueryStringParameter DefaultValue="0" Name="typeSetId" QueryStringField="typeSetId" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<ej:Grid ID="Grid1" runat="server" DataSourceID="SqlDataSourceAssetTypes" MinWidth="0">
<Columns>
<ej:Column Field="atId" HeaderText="Id" width="10%" Template="">
<numericeditoptions tag="" />
</ej:Column>
<ej:Column Field="atName" HeaderText="Name" width="30%" Template="">
<numericeditoptions tag="" />
</ej:Column>
<ej:Column Field="atDescription" HeaderText="Description" width="60%" Template="">
<numericeditoptions tag="" />
</ej:Column>
</Columns>
</ej:Grid>
</div>
</form>
</body>
</html>
And code behind:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
Thanks,
Steve