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
80
Looking for a property to toggle expanded rows
posted

I have the logic written that if a user expands a row, it collapses all the other rows before expanding that row.  The purpose is to only allow one expanded row at at time.  However, it is slow and the user can see the collapse of the row.  I was wondering if the grid had the built in capability to do this without my code.  I have pasted my code below to give you a better idea of what I am looking for.  Like I said, it does what I am looking for, it is just not very pretty.  Thanks in advance for your help!

Rosemary

  Protected Sub ugResults_ExpandRow(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.RowEventArgs) Handles ugResults.ExpandRow
    For Each row As UltraGridRow In ugResults.Rows
      If row.Expanded = True Then
        row.Collapse(True)
      End If
    Next

    e.Row.Expand(True)
  End Sub

Parents
No Data
Reply
  • 21382
    posted

     There is no default setting that will enforce this constraint. 

     

    It sounds like an interesting feature though, you should submit it through our Developer Support as a Feature Request. 

Children
No Data