I've set the the grid to LoadOnDemand = manual and Browser=xml and ViewType=Hierarchical but when I set the ShowExpand for each of the rows the expand image never shows nor does the left hand column where it would be appear.
I even copied the sample code for Load On Demand - Manual into a test page in my project but that doesn't work either. I can provide screenshots and source code if someone would *please* help!
Hi Wade,
Yes, I'm able to reproduce the issue. I'm sure this issue needs further investigation. I'm going to open up a case for this and will send you the updates.
Thanks
Sarita
Sarita,
Have you had any luck reproducing the problem?
Thanks,
Wade
Hi,
Thanks for posting the code. I'm looking into this and will get back to you with my findings.
I can't get it working. Can you confirm that it's not working on your end?
Here's the code I copied from the sample page:
-------------------------------------------------------------------------------------------------------------
ASPX
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="GridTest.aspx.vb" Inherits="GridTest" %><%@ Register assembly="Infragistics35.WebUI.UltraWebGrid.v8.3, Version=8.3.20083.1009, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebGrid" tagprefix="igtbl" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <igtbl:ultrawebgrid id="UltraWebGrid1" runat="server" Height="350px" Browser="Auto"> <Rows> <igtbl:UltraGridRow Height=""> <Cells> <igtbl:UltraGridCell Key="" Text="Alfreds Futterkiste"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="Berlin"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="Germany"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="030-0074321"></igtbl:UltraGridCell> </Cells> </igtbl:UltraGridRow> <igtbl:UltraGridRow Height=""> <Cells> <igtbl:UltraGridCell Key="" Text="Ana Trujillo Emparedados y helados"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="México D.F."></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="Mexico"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="(5) 555-3745"></igtbl:UltraGridCell> </Cells> </igtbl:UltraGridRow> <igtbl:UltraGridRow Height=""> <Cells> <igtbl:UltraGridCell Key="" Text="Antonio Moreno Taquería"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="México D.F."></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="Mexico"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="(5) 555-3932"></igtbl:UltraGridCell> </Cells> </igtbl:UltraGridRow> <igtbl:UltraGridRow Height=""> <Cells> <igtbl:UltraGridCell Key="" Text="Around the Horn"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="London"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="UK"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="(171) 555-7788"></igtbl:UltraGridCell> </Cells> </igtbl:UltraGridRow> <igtbl:UltraGridRow Height=""> <Cells> <igtbl:UltraGridCell Key="" Text="Berglunds snabbköp"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="Luleå"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="Sweden"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="0921-12 34 65"></igtbl:UltraGridCell> </Cells> </igtbl:UltraGridRow> <igtbl:UltraGridRow Height=""> <Cells> <igtbl:UltraGridCell Key="" Text="Blauer See Delikatessen"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="Mannheim"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="Germany"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="0621-08460"></igtbl:UltraGridCell> </Cells> </igtbl:UltraGridRow> <igtbl:UltraGridRow Height=""> <Cells> <igtbl:UltraGridCell Key="" Text="Blondel père et fils"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="Blondel père et fils"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="France"></igtbl:UltraGridCell> <igtbl:UltraGridCell Key="" Text="88.60.15.31"></igtbl:UltraGridCell> </Cells> </igtbl:UltraGridRow> </Rows> <DisplayLayout RowHeightDefault="18px" Version="3.00" SelectTypeRowDefault="Single" BorderCollapseDefault="Separate" ViewType="Hierarchical" LoadOnDemand="Manual"> <AddNewBox> <Style BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray"><BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails> </Style> </AddNewBox> <Pager> <Style BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray"><BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails> </Style> </Pager> <HeaderStyleDefault VerticalAlign="Middle" Font-Size="8pt" Font-Names="Verdana" BorderColor="Black" BorderStyle="Solid" HorizontalAlign="Left" ForeColor="White" BackColor="Gray" Height="18px"> <Padding Left="5px" Right="5px"></Padding> <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails> </HeaderStyleDefault> <RowSelectorStyleDefault Width="10px" VerticalAlign="Middle" Font-Size="8pt" Font-Names="Verdana" HorizontalAlign="Center" BackColor="Gray"></RowSelectorStyleDefault> <FrameStyle Cursor="Default" BorderWidth="1px" Font-Size="8pt" Font-Names="Verdana" BorderColor="DimGray" BorderStyle="Solid" BackColor="#F3F3F6" Height="350px"></FrameStyle> <FooterStyleDefault BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray"> <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails> </FooterStyleDefault> <ActivationObject BorderColor="168, 167, 191"></ActivationObject> <GroupByBox> <BandLabelStyle Font-Size="8pt" Font-Names="Verdana"></BandLabelStyle> </GroupByBox> <RowExpAreaStyleDefault Font-Size="8pt" Font-Names="Verdana" BackColor="White"></RowExpAreaStyleDefault> <EditCellStyleDefault BorderWidth="0px" BorderStyle="None"></EditCellStyleDefault> <RowAlternateStyleDefault BackColor="#F1F1F1"></RowAlternateStyleDefault> <RowStyleDefault BorderWidth="1px" Font-Size="8pt" Font-Names="Verdana" BorderColor="DarkGray" BorderStyle="Solid" ForeColor="Black" BackColor="Gainsboro"> <Padding Left="7px" Right="7px"></Padding> <BorderDetails ColorTop="Gray" WidthLeft="0px" WidthTop="0px" ColorLeft="Gray"></BorderDetails> </RowStyleDefault> </DisplayLayout> <Bands> <igtbl:UltraGridBand> <Columns> <igtbl:UltraGridColumn HeaderText="Name" Key="" BaseColumnName=""> <Footer Key=""></Footer> <Header Key="" Caption="Name"></Header> </igtbl:UltraGridColumn> <igtbl:UltraGridColumn HeaderText="City" Key="" BaseColumnName=""> <Footer Key=""></Footer> <Header Key="" Caption="City"></Header> </igtbl:UltraGridColumn> <igtbl:UltraGridColumn HeaderText="Country" Key="" BaseColumnName=""> <Footer Key=""></Footer> <Header Key="" Caption="Country"></Header> </igtbl:UltraGridColumn> <igtbl:UltraGridColumn HeaderText="Phone" Key="" BaseColumnName=""> <Footer Key=""></Footer> <Header Key="" Caption="Phone"></Header> </igtbl:UltraGridColumn> </Columns> </igtbl:UltraGridBand> </Bands> </igtbl:ultrawebgrid> </form></body></html>
ASPX.VB
Imports SystemImports System.CollectionsImports System.ComponentModelImports System.DataImports System.DrawingImports System.WebImports System.Web.SessionStateImports System.Web.UIImports System.Web.UI.WebControlsImports System.Web.UI.HtmlControlsImports Infragistics.WebUI.UltraWebGridPartial Class GridTest Inherits System.Web.UI.Page Private Sub UltraWebGrid1_DemandLoad(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.RowEventArgs) Handles UltraWebGrid1.DemandLoad Dim band As UltraGridBand = UltraWebGrid1.Bands(e.Row.Band.Index + 1) If band.Columns.Count = 0 Then band.Columns.Add(New UltraGridColumn) band.Columns.Add(New UltraGridColumn) band.Columns(0).HeaderText = "ID" band.Columns(1).HeaderText = "Number" End If Dim rowLevel As String = "" Dim row As UltraGridRow = e.Row While Not (row Is Nothing) rowLevel += "_" + row.Index.ToString row = row.ParentRow End While Dim i As Integer For i = 0 To 4 e.Row.Rows.Add(New UltraGridRow) e.Row.Rows(i).Cells(0).Value = UltraWebGrid1.ID + "r" + rowLevel + "_" + i.ToString() e.Row.Rows(i).Cells(1).Value = i e.Row.Rows(i).ShowExpand = True Next i If UltraWebGrid1.Bands(band.Index + 1) Is Nothing Then UltraWebGrid1.Bands.Add(New UltraGridBand) End If End Sub 'UltraWebGrid1_DemandLoad Private Sub UltraWebGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles UltraWebGrid1.InitializeLayout UltraWebGrid1.DisplayLayout.RowSelectorStyleDefault.Width = Unit.Pixel(350) End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load For Each row As UltraGridRow In UltraWebGrid1.Rows row.ShowExpand = True Next End SubEnd Class
I appreciate the reply very much...
According to your sample though you have the Browser set to XML and LoadOnDemand set to Manual.
https://es.infragistics.com/samples/aspnet/hierarchical-data-grid/manual-load-on-demand
I have tried your advice though and changed Browser to Auto and left LoadOnDemand set to Manual. It still doesn't work though. I get the row selector column but not the row expanders. I'll post the code if that will help.