Hello.
I want WebGrid cell to wrap it's content.
In NetAdvantage 2007.1.1071 it could be archieved by setting
e.Layout.Bands[0].Columns[0].CellMultiline = Infragistics.WebUI.UltraWebGrid.CellMultiline.Yes;
I installed NetAdvantage 2008.2.2110 and get some odd result: the cell with such settings span it's content to the right cell and so on.
It takes plase only when
UltraWebGrid1.DisplayLayout.LoadOnDemand = Infragistics.WebUI.UltraWebGrid.LoadOnDemand.Xml;
What the problem and how can i handle it?
Thanks in advance,
Aleksey.
The sample
<%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v8.2, Version=8.2.20082.2110, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
</head>
<body>
<form id="form1" runat="server">
<div>
<igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" OnInitializeDataSource="UltraWebGrid1_InitializeDataSource" OnInitializeLayout="UltraWebGrid1_InitializeLayout">
</igtbl:UltraWebGrid>
</div>
</body>
</html>
pagecode:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Default2 : System.Web.UI.Page
{
//this is the problem point
}
dt.Columns.Add(new DataColumn("FirstName", typeof(string)));
UltraWebGrid1.DataSource = dt;
Hi,
I downloaded the sample and tested it. I found you have only allowed the cellMultiLine and CellStyle set to Wrap for Column[0]. Please add these three lines and run the application again and see what happens.
e.Layout.Bands[0].Columns[1].CellMultiline = Infragistics.WebUI.UltraWebGrid.CellMultiline.Yes;
e.Layout.RowSizingDefault = Infragistics.WebUI.UltraWebGrid.AllowSizing.Free;
Please change the width of the columns and test it.
Hope it helps.
Sarita
Hi.
Thanks for your attention.
But your code changes nothing.
I've added these lines into InitializeLayout event handler
and nothing changes.
UltraWebGrid1.DisplayLayout.LoadOnDemand = Infragistics.WebUI.UltraWebGrid.LoadOnDemand.NotSet;
But I really need LoadOnDemand.Xml with its hidden updates and paging and so on.
Funny, but it successfully worked with NetAdvantage 2007.1.1071.
Any ideas?
Hello,
If this worked in 2007, then it could be a new issue and/or something else related to your setup. In cases like that, I think the best approach is to contact Developer Support directly via the following link:
http://es.infragistics.com/Support/#Overview
At the Developer Support Team, we have identified this is as a issue with the recently released HotFix for 2008 vol 2 i.e. build 20082.2110 and 2008 vol 3 i.e. build 20083.2021. and logged it with a issue# 11896.
I would suggest please <a href="http://es.infragistics.com/support/ask-for-help.aspx" > submit your support request</a> to our team including the issue # 11896 in the subject, so we can get more support cases and you'll get notified when it's fixed.
In the mean time you can work with the volume release versions. For 2008 vol 2 it is 20082.1000 and for 2008 vol 3 its 20083.1009.
Would you know if anyone has submitted an bug report to Infragistics? I am having the same issue with build 20083.2021.
ThanksJan
Hi Jan,
Yes, we had few users complaining about this issue. We fixed this problem in our latest HotFix build 20083.2039 for NetAdvantage for .Net 2008 vol 3 and build 20082.2121 for NetAdvantage for .Net 2008 vol 2.
Please download the latest HotFix (20083.2039) and test your application. It should work fine.
Thanks