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"

Parents
  • 1370
    Offline posted

    I tried to start a new fresh project 2010.
    ig_res has been well generated it's a good point

    But same problem occurs again and again ...

    When initial depth=0, I can't extand WHDG

    When I set initial depthto 1 , WHDG is good but I can't use paging a javascript error is fired up.

    Please need help

Reply Children