Hi,
We migrated our web application from .NET 1.1 (having Infragistics 2003 Vol:3) to .NET 2.0 (having Infragistics 2005 Vol:2).
But when swithcing to design view some pages shows error like
Error 11 Cannot switch views: Validation (Internet Explorer 6): Element 'STYLE' cannot be nested within element 'td'.
in tag
<ADDNEWBOX > <STYLE BorderWidth="1px"> </STYLE> </ADDNEWBOX>
Please if anybody has any solution , reply,
Thanks in advance.
Regards,
Shahaji U
Hello Shahaji,
It's hard to tell, but it is possible that the grid changed the way it handles styles in the newer version. The 2005 version is almost 3 years old, I am testing with the latest (2008.2) and here are the styling possiblities for AddNewBox
<igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server"> <Bands> </Bands> <DisplayLayout> <AddNewBox> <BoxStyle BackColor="Red" ... /> <ButtonStyle BackColor="Red" ... /> </AddNewBox> </DisplayLayout> </igtbl:UltraWebGrid>
HTH,
after Visual Studio 2005 came out, we were forced to rename all properties that were named "Style" in order to avoid this validation error.
you can find out about this and other backward-compatibility-breaking changes here: http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/WebGrid_Breaking_Changes_in_WebGrid.html
Rumen comments more about the duplicated DisplayLayout tag in the following thread:http://forums.infragistics.com/forums/t/13753.aspx
Hi David,
Please find below code.
<TD style="WIDTH: XXX; HEIGHT: XXXpx">
<DISPLAYLAYOUT Version="4.00" HeaderClickActionDefault="XXX" BorderCollapseDefault="XXX" Name="MyGRD">
<igtbl:ultrawebgrid id=MyGRD Width="674px" runat="server" DataSource="<%# DS %>" DataMember="XXXX" ondatabinding="XXX">
<DisplayLayout Version="4.00" " Name="MyGRD" ><AddNewBox Hidden="XXX"><Style BorderWidth="1px" BorderColor="IXXX" BorderStyle="XXX" BackColor="XXX"><BorderDetails ColorTop="XXX" WidthLeft="XXX" WidthTop="XXX" ColorLeft="XXX"></BorderDetails></Style></AddNewBox>
<Pager PageSize="XXX" PagerAppearance="XXX" StyleMode="XXX" AllowPaging="XXX"><Style BorderWidth="XXX" BorderStyle="XXX" BackColor="XXX"><BorderDetails ColorTop="XXX" WidthLeft="XXX" WidthTop="XXX" ColorLeft="XXX"></BorderDetails></Style></Pager></DisplayLayout>
<Bands>
</Bands>
</igtbl:ultrawebgrid>
<ADDNEWBOX Hidden="XXX"><STYLE BorderWidth="XXX" BorderColor="XXX" BorderStyle="XXX" BackColor="XXX"> </STYLE></ADDNEWBOX>
<PAGER PageSize="XXX" PagerAppearance="XXX" StyleMode="XXX" AllowPaging="XXX"><STYLE BorderWidth="XXX" BorderStyle="XXX" BackColor="XXXy"> </STYLE></PAGER>
</DISPLAYLAYOUT>
<BANDS></BANDS>
</TD>
Shahaji
sounds like something serialized wrong ... can you post the .aspx code you're describing?
All style taggs having problem are in DisplayLayOut tag out side UltreWebGrid.
Why there are two DisplayLayOutTags inside UltraWeb Grid and out side ultraweb grid?
Thanks for relpy.
It helps me.