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"
I am going to start a company just to troubleshoot IG issues
So some news ...
I've finally understood that initialDataBindDepth must be set to make expand works but if we don't set it how to make it works (code behind I suppose)
But now I've still the javascript problem on paging :s
"Object reference not set to an instance of an object"on Runbot.RenderPageCallBack
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