Hi
I am getting this error in WebGrid: 'Style' Property cannot be set declaratively
after I upgraded
Gary
What version did you upgrade from?
The WebGrid used to allow setting of Style properties directly, allowing the whole object to be updated. But (and it has been a while) that mechanism did not play nicely with CLR2. If memory serves, it had something to do with the way when a page deserialized, the object was created differently if the accessor allow for setting of objects rather than having the object created by the Grid and exposing sub properties of it.
Actually it seems it was done in 2006v3
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/WebGrid_Breaking_Changes_in_WebGrid.html
Anyway, you would either have to change your object reference to point to the Style object off the Grid directly, or take the style you make and use the .CopyFrom() method off the grid style to import it.
I upgraded from v6.2 to v10.3 and i am facing the same issue, any help would be greatly appreciated.
System.Web.HttpException: The 'Style' property cannot be set declaratively.
Hello Blane2,We remove the online help for all the versions which are older than one year and currently only the help in 11.2 and later are available. I would advice you to install the local help and as url to use "ms-help://NetAdvantage_ASPNET111/Web_ASPNET111/WebElements/Known_Issues_Known_Issues_and_Breaking_Changes.html" In the URL: field. Another option is to search for google cached version like : http://webcache.googleusercontent.com/search?q=cache:AX_co7Wc3hgJ:help.infragistics.com/Help/NetAdvantage/ASPNET/2010.1/CLR3.5/html/Known_Issues_2006_Volume_3.html+&cd=1&hl=en&ct=clnk&gl=bg&client=firefox-a
We're upgrading from NetAdvantage from 6.3 to 11.1, and we're getting these errors. The links above are not working so I'm unable to get to this information. Can you direct me to a source for this information?
Bruce
Hello habbasi,
Regarding the Style property issue, it is a breaking change introduced in 2006v3 :
http://help.infragistics.com/NetAdvantage/ASPNET/2010.3?page=Known_Issues_2006_Volume_3.html
The setter properties have been removed from the Styles object in WebGrid. Therefore, programs that create and assign GridItemStyle objects may fail.
Regarding the FixedColumnScrollType property:
The FixedColumnScrollType property can no longer be set to Column, as Column has been removed from the available enumerations.
Note: The following breaking change applies only to the NetAdvantage for .NET 2007.1 hotfix build 1045 (hotfix version 7.1.20071.1045)
Please refer to the online documentation regarding this:
http://help.infragistics.com/NetAdvantage/ASPNET/2010.3?page=WebGrid_Breaking_Changes_in_WebGrid.html
I recommend you going through all the known issues and breaking changes in the version between 2006 v1 and 2010 v3
http://help.infragistics.com/NetAdvantage/ASPNET/2010.3?page=Known_Issues_Known_Issues_and_Breaking_Changes.html
also getting folowing exception whenever any page is loaded having infragistics grid.
System.Web.HttpParseException: Cannot create an object of type 'Infragistics.WebUI.UltraWebGrid.FixedColumnScrollType' from its string representation 'Column' for the 'FixedColumnScrollType' property. ---> System.Web.HttpException: Cannot create an object of type 'Infragistics.WebUI.UltraWebGrid.FixedColumnScrollType' from its string representation 'Column' for the 'FixedColumnScrollType' property. at System.Web.UI.PropertyConverter.ObjectFromString(Type objType, MemberInfo propertyInfo, String value) at System.Web.UI.ControlBuilder.AddProperty(String filter, String name, String value, Boolean mainDirectiveMode) at System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String attribname, String attribvalue, Boolean mainDirectiveMode) at System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs) at System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs) at System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs, Int32 line, String sourceFileName) at System.Web.UI.ControlBuilder.GetChildPropertyBuilder(String tagName, IDictionary attribs, Type& childType, TemplateParser templateParser, Boolean defaultProperty) at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath) at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)