Hi,
I am currently using the NetAdvantage 2008 UltraWebGrid. I have altered the grid, so that it doesn't display scrollbars, but rather, adjusts it's size according to the browser (and displays scrollbars appropriately). This was quite simple:
UltraWebGrid1.Width = Unit.Empty;
UltraWebGrid1.Height = Unit.Empty;
The problem is that the grid header isn't fixed. I actually need to create a fixed, multi-line header. Is it possible to do this under the circumstances detailed above.
Thanks!
I am not sure that this scenario will be supported in this way - for the header to be fixed, the scrollbars must be controlled by the grid itself, whereas in your setup the browser takes care of scrolling and scrolls everything, header included.
You might be able to get better results with percentages for width / height (e.g. 100%) - just please note that <table> height in quirksmode in IE is not supported in percentages (you need to remove the DOCTYPE).
Also, you can check out the FrameStyle settings and experiment with height / width there.
<displaylayout bordercollapsedefault="Separate" name="UltraWebGrid1" CellClickActionDefault="RowSelect" rowheightdefault="20px" version="4.00"> <framestyle borderstyle="Solid" borderwidth="1px" font-names="Verdana" font-size="8pt" height="200px" width="325px"> </framestyle>
In my ultrawebgrid, I am having scrollbar and I want to fix the column headers at runtime. Columns ,rows etc is dynamic.
I tried using
1) ultrawebgrid.Bands(Counter).Columns(lCounter).Header.Fixed = True
2) Dim ch As Infragistics.WebUI.UltraWebGrid.ColumnHeader ch = ultrawebgrid.Bands(Counter).Columns(lCounter).Header ch .Fixed = True
ch .RowLayoutColumnInfo.OriginX=0
ch .RowLayoutColumnInfo.OriginY = 0
ch .RowLayoutColumnInfo.SpanX = 2
ch .RowLayoutColumnInfo.SpanY = 0
but my column header get disappeared. please help me in this its urgent.
Thanks in advance.
Thank you Alex.
URGENT:
When I fix the 1st column, the entire top header (headers of all columns) gets fixed also.So while scrolling horizontally, the headers don't move left/right along with the contents.
How do I fix just the 1st column (ofcourse, along with it's header), keeping the rest of the grid scrollable?
Any help will be greatly appreciated.Thanks in anticipation!
http://gchandra.wordpress.com/2007/09/26/column-locking-freezing-in-infragistics-ultra-webgrid/
Just go through the above link which might help you.
I am having a different problem with the grid column fix. I am able to fix the first column horizontally and all the column headers vertically.
<Columns>
<igtbl:UltraGridColumn BaseColumnName="InvNmbr" IsBound="True" Key="InvNmbr">
<Header Caption="EFS Txn/Argo Res Id" Fixed="true" FixedHeaderIndicator="Button">
</Header>
</igtbl:UltraGridColumn>
<DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnClient" StationaryMargins="Header" AllowSortingDefault="OnClient" HeaderClickActionDefault="SortSingle" Name="UltraWebGrid1" SelectTypeRowDefault="Extended" RowHeightDefault="20px" ColWidthDefault="" Version="4.00" LoadOnDemand="Xml" TableLayout="Fixed" Pager-StyleMode="ComboBox" CellClickActionDefault="RowSelect" UseFixedHeaders="true">
But, the grid not displaying any rows though it is loaded with data and until I adjust the column size manually a bit or perform an action.
I am using CSLA Business object 2.1 and loading the grid ver 8.2 CLR 2.0 with OnSelectObject of the csla:Datasource
Guys I need some help here with something very basic and similar.
I have an ultrawebgrid and all I am trying to do is fix the headers on scroll.
I am using V6.3. VB.net asp.net 1.1.
to start with here's what i have used already and doesnot work.
1.
UseFixedHeaders
="True" StationaryMargins="Header"
2. in InitializeLayout:
grdmain.DisplayLayout.StationaryMargins = Infragistics.WebUI.UltraWebGrid.StationaryMargins.Header
and
e.Layout.UseFixedHeaders = True
I was wondering if there is any property which is preventing the fixed headers.
here's my displaylayout tag
<
="20px"
="Separate"
="Fixed"
="RowSelect">
Also example of a column tag that i am using.
="65px"
="State">
>
="">
Please help me.
Please let me know the feasibility of the same.
hi..
i have achieved geting the fixed header and the first two fixed columns and both vertical & horizontal scroll bars. but now the problem is : i needed the hoizontal scrollbars at bottom of the ultrawebgrid to get visible only after the second fixed column.
since the first 2 columns are fixed, there should not be any scroll bar horizontal visible under column1 and column2. The horizontal scroll bar should appear under only scrollable columns and not under the fixed column.
The same i require in case of header and fixed rows also, ie, the scrollbar should appear only corresponding to scrollable rows.
Please suggest some solution to this.
Thanks in advance, Charu