ok, I have 4 ultrawebgrids (one per tab). only the first one is bound with the HeirarchicalData. I am getting several issues with this that are not showing up in the other grids/tabs.
It seems i have a few more issues, but these are the most pressing at the current time.
Thank you for any assistance or comments you might have.
BJ
I'm just adding my .02 cents in I hope it helps somewhat.
I have see the Paging issue before. With the newer version of the infragistics WebGrid ( anything after 2006. v3 ) I had to make sure I was processing my data in the infragistics_initalizeDataSource event ( or close to it ). Especially if you are using the AJAX Load on demand.
Even if you call an outside function from inside that event ( which is what I did ) it needs to call it from there.
Watch out for the Page and Infragistics Life Cycles, they can tend to confuse you ( well at least me ).
Also if you want only 40 records per page then you need to go into the DisplayLayout->Pager-> and set the records per page.
In your code I did not see you setting that in design time or run time.
Good Luck.
Larry
http://www.AboutMeadows.com
bjlarsen said:[...] webheirarchicaldatasource [...] wizard [...] webasyncrefreshpanel [...] inside a webpanel [...]
Now you've gone into areas about which I know little. Sorry.
bjlarsen said:All of this is in a web user control
I've done that. It worked as expected.
I'm afraid that's all the help I have to offer. If you're lucky, one of the Ingragistics staff will chime in here with some real knowledge. Otherwise, you can file a support incident, at:
https://es.infragistics.com/my-account/submit-support-request/
That will usually get you a reply within a week. For best results, attach a working example of the problem based on the Northwind database.
<%@ Register assembly="Infragistics35.Web.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.DataSourceControls" tagprefix="cc1" %>
<%@ Register assembly="Infragistics35.WebUI.UltraWebGrid.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebGrid" tagprefix="igtbl" %>
<%@ Register assembly="Infragistics35.WebUI.UltraWebTab.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebTab" tagprefix="igtab" %>
Height="500px" Width="808px">
DataSourceID="SqlDataSource_CoachList" DataTextField="coach"
style="margin-bottom: 0px; margin-left: 125px;">
</asp:DropDownList>
StyleSetName="" Width="808px" BorderColor="White" BorderStyle="None"
BorderWidth="0px">
<PanelStyle BorderColor="#002D96" BorderStyle="Solid" BorderWidth="1px">
<Padding Bottom="1px" Left="1px" Right="1px" Top="1px" />
<BorderDetails WidthTop="0px" />
</PanelStyle>
<Header Text="Coaches Participant Listing" TextAlignment="Left">
<ExpandedAppearance>
BorderStyle="None" BorderWidth="0px" Font-Bold="True"
BackColor="#051657">
<Padding Bottom="4px" Left="4px" Right="4px" Top="4px" />
</Styles>
</ExpandedAppearance>
<ExpansionIndicator Height="0px" Width="0px" />
</Header>
<Template>
AutoPostBack="True" BackColor="White" BorderColor="White" BorderStyle="None"
BorderWidth="0px" Width="100%" SelectedTab="3">
<Tabs>
<igtab:Tab Text="No Future Booked Appointments">
<ContentTemplate>
DataSourceID="WebHierarchicalDataSource1" Height="400px"
onprerender="uwg_NoFutureAppts_PreRender" Width="808px">
<Bands>
<igtbl:UltraGridBand>
<AddNewRow View="NotSet" Visible="NotSet">
</AddNewRow>
</igtbl:UltraGridBand>
</Bands>
AllowSortingDefault="Yes" BorderCollapseDefault="Separate"
Name="ctl00xUltraWebGrid1" RowHeightDefault="20px" RowSelectorsDefault="No"
ViewType="OutlookGroupBy">
BorderStyle="Solid" BorderWidth="1px" Font-Names="Microsoft Sans Serif"
Font-Size="8.25pt" Height="400px" Width="808px">
</FrameStyle>
<Pager MinimumPagesForDisplay="2" PageSize="17">
<PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
WidthTop="1px" />
</PagerStyle>
</Pager>
<EditCellStyleDefault BorderStyle="None" BorderWidth="0px">
</EditCellStyleDefault>
<FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
</FooterStyleDefault>
HorizontalAlign="Left">
</HeaderStyleDefault>
BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt">
<Padding Left="3px" />
<BorderDetails ColorLeft="Window" ColorTop="Window" />
</RowStyleDefault>
<GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
</GroupByRowStyleDefault>
<GroupByBox>
<BoxStyle BackColor="ActiveBorder" BorderColor="Window">
</BoxStyle>
</GroupByBox>
<AddNewBox Hidden="False">
BorderWidth="1px">
</AddNewBox>
<ActivationObject BorderColor="" BorderWidth="">
</ActivationObject>
<FilterOptionsDefault FilterUIType="HeaderIcons">
BorderWidth="1px" CustomRules="overflow:auto;"
Width="200px">
<Padding Left="2px" />
</FilterDropDownStyle>
<FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
</FilterHighlightRowStyle>
BorderStyle="Solid" BorderWidth="1px" CustomRules="overflow:auto;"
Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="11px">
</FilterOperandDropDownStyle>
</FilterOptionsDefault>
</DisplayLayout>
</igtbl:UltraWebGrid>
</ContentTemplate>
</igtab:Tab>
<igtab:Tab Text="Participants with No Appt within 5 days of Enrolling">
DataSourceID="SqlDataSource_Past5Days" Height="400px"
onprerender="uwg_5DaysNoAppt_PreRender" Width="808px">
<Columns>
IsBound="True" Key="ID">
<Header Caption="ID">
</igtbl:UltraGridColumn>
Key="Participant">
<Header Caption="Participant">
<RowLayoutColumnInfo OriginX="1" />
<Footer>
</Footer>
Key="EnrollStatus">
<Header Caption="EnrollStatus">
<RowLayoutColumnInfo OriginX="2" />
<igtbl:UltraGridColumn BaseColumnName="Phone" IsBound="True" Key="Phone">
<Header Caption="Phone">
<RowLayoutColumnInfo OriginX="3" />
Key="WorkPhone">
<Header Caption="WorkPhone">
<RowLayoutColumnInfo OriginX="4" />
Key="CellPhone">
<Header Caption="CellPhone">
<RowLayoutColumnInfo OriginX="5" />
<igtbl:UltraGridColumn BaseColumnName="Company" IsBound="True" Key="Company">
<Header Caption="Company">
<RowLayoutColumnInfo OriginX="6" />
<igtbl:UltraGridColumn BaseColumnName="Coach" IsBound="True" Key="Coach">
<Header Caption="Coach">
<RowLayoutColumnInfo OriginX="7" />
IsBound="True" Key="CreateDate">
<Header Caption="CreateDate">
<RowLayoutColumnInfo OriginX="8" />
</Columns>
BorderCollapseDefault="Separate" LoadOnDemand="Xml"
SelectTypeRowDefault="Extended" StationaryMargins="Header"
<FilterOptionsDefault AllowRowFiltering="OnClient" FilterUIType="HeaderIcons">
<igtab:Tab Text="Past Appointments Still In Booked Status">
DataSourceID="SqlDataSource_StillBooked" Height="400px"
onprerender="uwg_StillBooked_PreRender" Width="808px">
IsBound="True" Key="ApptDate">
<Header Caption="ApptDate">
<igtbl:UltraGridColumn BaseColumnName="Status" IsBound="True" Key="Status">
<Header Caption="Status">
<RowLayoutColumnInfo OriginX="9" />
<AddNewBox>
<igtab:Tab Text="Previous Day No Show Appointments">
DataSourceID="SqlDataSource_PreviousDayNoShow" Height="400px"
Width="808px" onprerender="uwg_PreviousNoShow_PreRender">
DataType="System.Int32" IsBound="True" Key="ContactsSinceLastApt">
<Header Caption="ContactsSinceLastApt">
<RowLayoutColumnInfo OriginX="10" />
<Pager MinimumPagesForDisplay="2" PageSize="17" StyleMode="PrevNext">
</Tabs>
LeftSideWidth="7" NormalImage="[ig_tab_winXP3.gif]" RightSideWidth="6"
SelectedImage="[ig_tab_winXP1.gif]" ShiftOfImages="2" />
<SelectedTabStyle>
<Padding Bottom="2px" />
</SelectedTabStyle>
Font-Size="8pt" ForeColor="Black" Height="22px">
<Padding Top="2px" />
</DefaultTabStyle>
<AsyncOptions EnableLoadOnDemand="True" />
</igtab:UltraWebTab>
</Template>
</igmisc:WebAsyncRefreshPanel>
From Account acc where acc.account_type_id = 3 and acc.account_last_name not like 'z-%'
Union
select 0 as ID, 'All Coaches' as coach
<cc1:WebHierarchicalDataSource ID="WebHierarchicalDataSource1" runat="server" >
<DataRelations>
ChildDataViewID="SqlDataSource_Contacts_DefaultView" ParentColumns="ID"
ParentDataViewID="SqlDataSource_Participants_DefaultView" />
</DataRelations>
<DataViews>
DataMember="DefaultView" DataSourceID="SqlDataSource_Participants" />
DataSourceID="SqlDataSource_Contacts" />
</cc1:WebHierarchicalDataSource>
ConnectionString="<%$ ConnectionStrings:TrestleTreeConnectionString %>"
SelectCommandType="StoredProcedure">
<SelectParameters>
PropertyName="SelectedValue" Type="Int32" />
</asp:SqlDataSource>
SelectCommand="sp_DB_getEnrolleesByCoach" SelectCommandType="StoredProcedure">
<asp:ScriptManager ID="ScriptManager1" runat="server">
I will post the markup when i get back to work tommorow. As for code, there is none, i used two sqldatasources as views for teh webheirarchicaldatasource. I used the wizards to do the setup and added no code to the application yet. I did have a small piece of code for the grid in teh ultrawebgrid prerender that set a column to isgroupby = true, commented that out until i can get the grid working correctly. Basically, the entire page is wizard, no code. I am not checking for anything in postback as it is inside a webasyncrefreshpanel. the page shouldn't postback. (not sure if this is the correct way of doing it, but thats the way i have it setup currently - I am open to suggestions!)
Ahh.but one thing i did not mention and I am not sure if it makes a difference or not. All of this is in a web user control that is placed on the page. the idea was to place multiple user controls on the page, all being inside a webpanel so you could collapse for space. But again, no code.
thanx
Could you have left the "Not" out of your "If Not Page.IsPostBack Then"?
Otherwise, from your description of the problem, I don't have a clue, but if you post the code and markup you're using to create and databind the grid, someone might spot the problem. Be sure to tell us which code is from which event handler.