Hello Nadia and team,
Query 1) Nadia, After removing EnableAjax="True" property, I am having issue with child band expand button is disappeared except which i click, Means if I have 3 Rows in child band and after clicking on 2nd row Result is showing 3rd and 1st expand button is disappeared.
Hello Abhijeet,
Thank you for contacting Infragistics!
I created a sample with EnableAjax set to false. The grid operated as expected without issue. I am attaching my sample to demonstrate this behavior. I believe that something about your grid is setup improperly and this is why you are having this issue. Please attach an isolated sample that reproduces this behavior.
Mike,
You guys providing simple examples. I told lot of time that i have 4 leavels band and child bands are calling on demand.
For your invenstigation I have added few code for your reference.
1) on page load - postback true-
For Each row As ContainerGridRecord In ugSearchTrial.Rows 'If childTable.Rows.Item(row.Index).GetChildRows(childTable.ChildRelations(0)).Any() Then row.IsEmptyParent = True 'End If Next
2) On child demand -
Select Case e.Row.Level Case 0
childGrid.DataKeyFields = "ACID,PID" childGrid.Level = e.Row.Level + 1
childGrid.DataBind()
If (e.Row.Level <> 2) Then For Each row As ContainerGridRecord In childGrid.Rows 'If dt.Rows.Item(row.Index).GetChildRows(dt.ChildRelations(0)).Any Then row.IsEmptyParent = True row.Items(4).Column.Hidden = True 'End If Next End If
Case 1
diffent dataset
Case 2
End Select
3)
Protected Sub ugTrial_PreRender(sender As Object, e As EventArgs) 'If Not IsPostBack Then For Each row As ContainerGridRecord In ugSearchTrial.GridView.Rows row.IsEmptyParent = True Next 'End If End Sub
If I remove any one Expand button start unexpected behvaiour like on mouse over its displaying collaps button, if we click on band in child othere child expanded band expand button disapper.
I am binding data on demand.
Hello Mike,
Good morning.
Please Ignore previous post-
I would like to add few more point here -
When I am clicking on child band, other expanded child rows Expand button got disappeared. Could you please look into this issue.
Please have look below code for your reference which we had implemented.
I think we are missing out something in below code.
And we are not using Enableajax=”False”
For Each row As ContainerGridRecord In ugSearchTrial.Rows'If childTable.Rows.Item(row.Index).GetChildRows(childTable.ChildRelations(0)).Any() Thenrow.IsEmptyParent = True'End IfNext
Select Case e.Row.LevelCase 0
childGrid.DataKeyFields = "ACID,PID"childGrid.Level = e.Row.Level + 1
If (e.Row.Level <> 2) ThenFor Each row As ContainerGridRecord In childGrid.Rows'If dt.Rows.Item(row.Index).GetChildRows(dt.ChildRelations(0)).Any Thenrow.IsEmptyParent = Truerow.Items(4).Column.Hidden = True'End IfNextEnd If
Protected Sub ugTrial_PreRender(sender As Object, e As EventArgs)'If Not IsPostBack ThenFor Each row As ContainerGridRecord In ugSearchTrial.GridView.Rowsrow.IsEmptyParent = TrueNext'End IfEnd Sub
Shortly we will send you screen shot for this.
Hello,
Thank you for the update. If you want to see samples with more levels you can see the following samples:
http://es.infragistics.com/samples/aspnet/hierarchical-data-grid/single-expand-hierarchy
http://es.infragistics.com/samples/aspnet/hierarchical-data-grid/multiple-bands-hierarchy
As I mentioned previously based on the information you have given the issue seems to be with how you have setup your grid. To be able to look further into this matter it going to require more than a few snippets. Please send me an isolated sample that reproduces the issue you are having. If you don’t want to send it over the forums let me know and I can create a private case.