Skip to content

Replies

0
Tihomir Tonev
Tihomir Tonev answered on Apr 26, 2022 8:58 AM

Hello,

The method mentioned is private, so at this point it cannot be accessed on application level.

I have tested the provided sample and the tree is expanding only the records with filtering match, which is the intended behavior so I could not find anything out of the normal.

If I am missing something, please let me know.

Sincerely,

Tihomir Tonev
Software Developer
Infragistics

0
Tihomir Tonev
Tihomir Tonev answered on Apr 20, 2022 12:06 PM

Hello,

You can use grid's collapseAll method in order to collapse all rows. Putting it in ngAfterViewInit will have it called on each reload.

Are the rows being expanded on purpose? If you believe this is not the intended behavior of the grid, please provide steps to reproduce this behavior so we can test on our side what might be causing it.

Sincerely,

Tihomir Tonev
Software Developer
Infragistics

0
Tihomir Tonev
Tihomir Tonev answered on Apr 13, 2022 10:00 AM

Hello,

I am glad to hear that you have found a solution to your problem.

As the information on the link that did not work can be found useful, I will add the snippets just in case you need them in the future:

UltraDropDown in VB:

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.BindUltraDropDown()
End Sub

Private Sub BindUltraDropDown()

        Dim dt As DataTable = New DataTable()
        dt.Columns.Add("ID", GetType(Integer))
        dt.Columns.Add("DisplayText", GetType(String))

        dt.Rows.Add(New Object() {1, "A"})
        dt.Rows.Add(New Object() {2, "B"})
        dt.Rows.Add(New Object() {3, "C"})
        dt.AcceptChanges()

        Me.UltraDropDown1.SetDataBinding(dt, Nothing)
        Me.UltraDropDown1.ValueMember = "ID"
        Me.UltraDropDown1.DisplayMember = "DisplayText"
End Sub

Private Sub UltraGrid1_InitializeLayout(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UltraGrid1.InitializeLayout
        e.Layout.Bands(0).Columns("Int32 1").ValueList = Me.UltraDropDown1
End Sub

ValueList in VB:

Private Sub UltraGrid1_InitializeLayout(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UltraGrid1.InitializeLayout
    Dim vl As ValueList

        If (Not e.Layout.ValueLists.Exists("MyValueList")) Then
            vl = e.Layout.ValueLists.Add("MyValueList")
            vl.ValueListItems.Add(1, "A")
            vl.ValueListItems.Add(2, "B")
            vl.ValueListItems.Add(3, "C")
        End If

        e.Layout.Bands(0).Columns("Int32 1").ValueList = e.Layout.ValueLists("MyValueList")

End Sub


UltraCombo

The UltraCombo can be used as a ValueList and it has essentially the same features as UltraDropDown. However, UltraCombo is intended for use as a standalone ComboBox. So while it can be used as a ValueList, there is no reason to do so. It has no advantage over UltraDropDown and has greater overhead.

In addition to being an IValueList, the UltraCombo is also an Editor. So it can also be assigned as the EditorControl of a column. This has certain advantages over the UltraDropDown, such as the ability to use a DataFilter or provide EditorButtons. But if you are not using these features, the extra overhead of UltraCombo means that the UltraDropDown is a better choice.

If you have any further questions, please let me know.

Sincerely,

Tihomir Tonev
Software Developer
Infragistics

0
Tihomir Tonev
Tihomir Tonev answered on Apr 8, 2022 11:31 AM

Hello,

Thank you for posting on our forums.

When do you add the information to the cell? Can you try doing it during InitializeLayout event?

Also, if you just need a dropdown, using valueList is much better. The documentation has been archived on our website, but using this link should open it:

https://web.archive.org/web/20160428074330/http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=7841

Please let me know if you need further information.

Sincerely,

Tihomir Tonev
Software Developer
Infragistics

0
Tihomir Tonev
Tihomir Tonev answered on Mar 21, 2022 3:01 PM

Hello,

Thank you for posting on our forums.

When creating a .NET project, you need to add the NuGet packages to your project. Now I suppose you have added the framework packages as you have referred to the files added as dlls, while the files you need to be adding have .nupkg extension. If you are looking to add them manually(offline), they can be located in the installation folder on your hard drive:

C:\Program Files (x86)\Infragistics\2021.2\Windows Forms\NuGet Packages

or you can setup a feed and connect online. A guide how to do this can be found here:

http://ko.infragistics.com/…/nuget-feeds

After adding the relevant NuGet package, the associated controls will appear in the toolbox. You can see what package is related to what control on our website here:

https://ko.infragistics.com/help/winforms/nuget-packages

If you need further assistance, please let me know.

Sincerely,

Tihomir Tonev
Software Developer
Infragistics

0
Tihomir Tonev
Tihomir Tonev answered on Feb 28, 2022 8:13 AM

Hello Robert, 

I am glad to hear that the issue has been resolved.

In case you still have any questions, please let me know.

Thank you for using Infragistics components.

0
Tihomir Tonev
Tihomir Tonev answered on Feb 23, 2022 3:44 PM

Hello,

Thank you for posting on our forums.

By default the tick of the checkbox is black, so my guess is that the checkbox is disabled which would make it appear gray instead.

If this is the case, you can enable the cell, and set it to noEdit mode:

ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;

Alternatively, if you just want to set a custom color for the tick, you can use drawFilter. I have attached a sample so you can check how that would look like.

Sincerely,

Tihomir Tonev
Software Developer
Infragistics
CheckBoxColor.zip