Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmRADGrid not working
Message
De
19/02/2009 08:06:09
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
18/02/2009 23:07:26
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01382822
Message ID:
01382849
Vues:
33
>The mmRADGrid control works fine until I add bound columns manually.
>
>Table: Crew
> CrewPK
> Crew
> CrewType
> Active
>
>When I add the Crew column I get an error on the control.
>
>These are the settings:
>I uncheck the "Create columns automatically at run time" and add a Bound Column. I then set the following properties:
>HeaderText: Crew
>DataField: Crew
>DataType: System.String
>
>
>
>Error	12	Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'telerik.web.ui.gridboundcolumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.	c:\FSLOffice\FSLOfficeWeb\Crew\ShowCrewTablePage.aspx	25	
>Error	13	Literal content ('</telerik.web.ui.gridboundcolumn>') is not allowed within a 'Telerik.Web.UI.GridColumnCollection'.	c:\FSLOffice\FSLOfficeWeb\Crew\ShowCrewTablePage.aspx	26	
>
>
>Does anyone know what this means and how to fix it? I followed all of the instructions in the MM.Net documentation. Without defining the bound columns manually the grid shows the data just fine.

I don't have any experience with Telerik controls at this point but I am wondering if it is necessary to set the DataType property. I set grid columns manually by setting the HeaderText and DataField only with no problem. What happens if you just reset that one property back to default? That said the message would lead me to believe the column type being added is not a Telerik type and I wonder if the builder is not adding the proper type of column. Have you tried to add these columns in code by adding the telerik .web.ui.gridboundcolumn and setting its properties rather than using the builder?
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform