Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1370
WHDG don't expand if Initial depth = 0
posted

Hi,

I'm testing infragistics controls since 2/3 weeks and each time I'm trying something some wierd behaviors happen.

I've converted a VS2008 project in VS2010. I added an aspx page with master.

In master page I put  ScriptManager + UpdatePanel

in page I put WHDG like others times :

<ig:WebHierarchicalDataGrid ID="hdgTest" DataMember="BATCH" runat="server"         Height="100%" DataKeyFields="TxtNomChaine" AutoGenerateBands="false"         AutoGenerateColumns="true" Width="100%" InitialDataBindDepth="0" InitialExpandDepth="0"  >

       <Bands>
            <ig:Band Key="test" DataMember="LOGS" AutoGenerateColumns="true" DataKeyFields="TxtNomChaine">
            <Behaviors >
                    <ig:Paging PagerAppearance="Bottom" PageSize="10" Enabled="true" />
            </Behaviors>
            </ig:Band>
        </Bands>
    </ig:WebHierarchicalDataGrid>

 

and the Page Load

protected void Page_Load(object sender, EventArgs e)
{ if (!IsPostBack) { dsLogs = AccessLogs.Get(true, DateTime.Now); }
hdgTest.DataSource = dsLogs; }

 

2 problems :

1 ) if I set InitialDataBindDepth to 1 and InitialExpandDepth to 1 I'll see all rows like I want and Extend/collapse work but if I don't set Depth properties, the Extand button does a post back  but nothing happens

2) Paging is not working : Javascript error  "Object is null or not referenced"