Infragistics Grid in Widget Not Working Correctly.

Jun 8, 2008 at 6:54 PM
When clicking on the widget the Infragistics grid disappears and also the sorting and group level feature does not do anything.  Anyone using this component please let me know if you have a fix.  Thanks in advance.
Jun 9, 2008 at 3:58 PM
One note.  The Infragistics control does an Ajax call back and it seems like the Dropthings Ajax is absorbing the call so the control does not what is is suppose to do.  Now this is just a theory.  Thanks in advance.
Jun 9, 2008 at 5:36 PM
One note.  The Infragistics control does an Ajax call back and it seems like the Dropthings Ajax is absorbing the call so the control does not what is is suppose to do.  Now this is just a theory.  Thanks in advance.
Jun 12, 2008 at 5:56 AM
We use Infragistics35.WebUI.UltraWebGrid.v8.1, Version=8.1.20081.2013 + ObjectDataSource, It's OK!
But some javascript seems have problems when we drag & drop.
And your Widget's Style, .widget should add height:100%;
Style like below:
.widget { height:100%; position: relative; left: 0px; top: 0px; margin-bottom:5px;background-color:white;}

Code Like Below:

<asp:UpdatePanel ID="panView" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <igtbl:UltraWebGrid id="gridEmployeeIntroduction" runat="server" Browser="Xml" Width="100%"
            Height="83px" DataSourceID="ODSEmployee"
            DataKeyField="personal_serial_number">
                <DisplayLayout CompactRendering="False" RowHeightDefault="20px" Version="4.00"
                    ViewType="Hierarchical" BorderCollapseDefault="Separate" LoadOnDemand="Xml"
                    Name="UltraWebGrid1" AutoGenerateColumns="False"
                    ColHeadersVisibleDefault="No" GridLinesDefault="None" RowSelectorsDefault="No"
                    ScrollBarView="Vertical" RowsRange="5" CellClickActionDefault="RowSelect">

                    <FrameStyle Width="100%" BorderWidth="0px" Font-Size="8pt" Font-Names="Verdana"
                        Height="83px"></FrameStyle>
                    <ClientSideEvents XmlVirtualScrollHandler="UltraWebGrid1_XmlVirtualScrollHandler"></ClientSideEvents>
                    <EditCellStyleDefault BorderWidth="0px" BorderStyle="None"></EditCellStyleDefault>
                    <FooterStyleDefault BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray">
                        <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
                    </FooterStyleDefault>

                    <HeaderStyleDefault BorderStyle="Solid" BackColor="LightGray">
                        <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
                    </HeaderStyleDefault>
                    <RowStyleDefault BorderWidth="1px" BorderColor="Gray" BorderStyle="Solid">
                        <Padding Left="3px"></Padding>
                        <BorderDetails WidthLeft="0px" WidthTop="0px"></BorderDetails>
                    </RowStyleDefault>
                    <ActivationObject BorderColor="" BorderWidth="">
                    </ActivationObject>
                    <FilterOptionsDefault FilterUIType="FilterRow">
                    </FilterOptionsDefault>
                </DisplayLayout>
                <Bands>
                    <igtbl:UltraGridBand DataKeyField="personal_serial_number"
                        CellClickAction="RowSelect" RowSelectors="No">
                        <Columns>
                            <igtbl:TemplatedColumn Width="5%">
                                <CellTemplate>
                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/images/list_01.gif" />
                                </CellTemplate>
                                <CellStyle HorizontalAlign="left">
                                </CellStyle>
                            </igtbl:TemplatedColumn>
                            <igtbl:UltraGridColumn BaseColumnName="employee_name" Width="35%">
                                <CellStyle HorizontalAlign="center">
                                </CellStyle>
                                <Header>
                                    <RowLayoutColumnInfo OriginX="1" />
                                </Header>
                                <Footer>
                                    <RowLayoutColumnInfo OriginX="1" />
                                </Footer>
                            </igtbl:UltraGridColumn>
                            <igtbl:TemplatedColumn BaseColumnName="self_introduction"
                                Key="self_introduction" Width="60%">
                                <CellTemplate>
                                    <asp:LinkButton ID="lnkbtnSelfIntroduction" runat="server" Text="<%$ Resources:Global, SelfIntroduction %>"></asp:LinkButton>
                                </CellTemplate>
                                <CellStyle HorizontalAlign="Left">
                                </CellStyle>
                                <Header Caption="">
                                    <RowLayoutColumnInfo OriginX="2" />
                                </Header>
                                <Footer>
                                    <RowLayoutColumnInfo OriginX="2" />
                                </Footer>
                            </igtbl:TemplatedColumn>
                            <igtbl:UltraGridColumn BaseColumnName="personal_serial_number" Hidden="True"
                                Key="personal_serial_number">
                                <Header>
                                    <RowLayoutColumnInfo OriginX="3" />
                                </Header>
                                <Footer>
                                    <RowLayoutColumnInfo OriginX="3" />
                                </Footer>
                            </igtbl:UltraGridColumn>
                        </Columns>
                        <AddNewRow View="NotSet" Visible="NotSet">
                        </AddNewRow>
                    </igtbl:UltraGridBand>
                </Bands>
        </igtbl:UltraWebGrid>
        <asp:ObjectDataSource ID="ODSEmployee" runat="server"
            SelectMethod="GetNewEmployeeIntroduction"
            TypeName="PortalBusiness.Common">
        </asp:ObjectDataSource>
    </ContentTemplate>
</asp:UpdatePanel>

 
Jun 12, 2008 at 3:59 PM
That worked great!  Who would ever have thought. 

Also, I can't get column grouping and moving working and I noticed that sorting does not work with Ajax enabled.  When trying to group or move a column there is a page error.  The error is below and the code for the line 605.  I do notice that when I move a column to the grouping panel the Ajax panel from the main default page is executed.  I've also provided the grid code below.  I appreciate any help you can provide.

Line: 605
Char: 13
Error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Code: 0

601: return

WidgetService._staticInstance.get_path();}

 

602: WidgetService.set_timeout =

function(value) {

 

603: WidgetService._staticInstance.set_timeout(value); }

604: WidgetService.get_timeout =

function() {

 

605: /// <value type="Number">The service timeout.</value>

606: return

WidgetService._staticInstance.get_timeout(); }

 

607: WidgetService.set_defaultUserContext =

function(value) {

 

608: WidgetService._staticInstance.set_defaultUserContext(value); }


---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Grid Code:


Page_Init:

 

With

WidgetList.DisplayLayout.

AutoGenerateColumns =
True

 

 

.SelectTypeRowDefault = SelectType.Single

 

.AllowSortingDefault = AllowSorting.OnClient

.AllowColSizingDefault = AllowSizing.Free

.EnableClientSideRenumbering =

True

 

 

.HeaderClickActionDefault = HeaderClickAction.SortMulti

 

.ViewType = Infragistics.WebUI.UltraWebGrid.ViewType.OutlookGroupBy

.AllowColumnMovingDefault = AllowColumnMoving.OnClient

.AllowUpdateDefault = AllowUpdate.Yes

.AllowColSizingDefault = AllowSizing.Free

 

End With

 

 


<asp:SqlDataSource ID="SqlDataSource1" runat="server"

 

 

ConnectionString="<%$ ConnectionStrings:testConnectionString %>"

 

 

SelectCommand="SELECT * FROM [Widget]"></asp:SqlDataSource>

 

 

 

 

 

 

<igtbl:UltraWebGrid ID="WidgetList" runat="server"

 

 

DataSourceID="SqlDataSource1" Height="200px" Width="90%">

 

 

 

 

 

 

<bands><igtbl:UltraGridBand>

 

 

 

 

 

 

<Columns><igtbl:UltraGridColumn BaseColumnName="widgetid" DataType="System.Int32"

 

 

IsBound="True" Key="widgetid"><Header Caption="widgetid"></Header></igtbl:UltraGridColumn><igtbl:UltraGridColumn BaseColumnName="widgetname" IsBound="True"

 

 

Key="widgetname"><Header Caption="widgetname"><RowLayoutColumnInfo OriginX="1" /></Header><Footer><RowLayoutColumnInfo OriginX="1" /></Footer></igtbl:UltraGridColumn><igtbl:UltraGridColumn BaseColumnName="widgetgroup" IsBound="True"

 

 

Key="widgetgroup"><Header Caption="widgetgroup"><RowLayoutColumnInfo OriginX="2" /></Header><Footer><RowLayoutColumnInfo OriginX="2" /></Footer></igtbl:UltraGridColumn><igtbl:UltraGridColumn BaseColumnName="widgeticon" IsBound="True"

 

 

Key="widgeticon"><Header Caption="widgeticon"><RowLayoutColumnInfo OriginX="3" /></Header><Footer><RowLayoutColumnInfo OriginX="3" /></Footer></igtbl:UltraGridColumn></Columns>

 

 

 

 

 

 

 

<addnewrow view="NotSet" visible="NotSet"></addnewrow></igtbl:UltraGridBand></bands><displaylayout AllowColumnMovingDefault="OnServer"

 

 

bordercollapsedefault="Separate"

 

 

name="ctl00xUltraWebGrid1" rowheightdefault="20px"

 

 

version="4.00" viewtype="Hierarchical" AllowSortingDefault="Yes"

 

 

HeaderClickActionDefault="SortMulti"><framestyle height="200px" width="90%"></framestyle>

 

 

 

 

 

<Pager AllowPaging="True">

 

 

 

 

 

</Pager>

 

 

 

 

 

<activationobject bordercolor="" borderwidth=""></activationobject></displaylayout></igtbl:UltraWebGrid>

 

 

 

Jun 12, 2008 at 4:04 PM
One other thing.  These error are from IE7.  When I run the website from FireFox no error occurs, but I get the same result as IE7.