Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Sirs,
                                       I had a TreeListNode instance NodeA. It have any way to assing this NodeA's Backcolor?
                                    I don't want at HtmlRowPrepared Event to process. Or I can use NodeA to find Row? Thanks.

                                0

                                Hi,

                                Please refer to the ASPxTreeList.HtmlRowPrepared Event topic in this regard.

                                Thanks,
                                Plato

                                0

                                I want check childNodes's summary value.
                                Code Like:
                                CheckRecursive(trQuestionList.Nodes, False)

                                Private Sub CheckRecursive(ByRef rNodes As DevExpress.Web.ASPxTreeList.TreeListNodeCollection, ByVal blnIsNeedCheck As Boolean)
                                          Dim dblSumWeight As Integer = 0

                                          For Each iNode As DevExpress.Web.ASPxTreeList.TreeListNode In rNodes
                                               Dim blnIsNeedCheckSum As Boolean = False

                                               Dim txtWeight As GSS.RADAR.NET20.Web.UI.NControls.ValidationTextBox = trQuestionList.FindDataCellTemplateControl(iNode.Key, CType(trQuestionList.Columns("Weight"), DevExpress.Web.ASPxTreeList.TreeListDataColumn), "txtWeight_S")
                                               If IsNothing(txtWeight) = False Then
                                                    If IsNumeric(txtWeight.Text.Trim) Then
                                                         dblSumWeight += Integer.Parse(txtWeight.Text.Trim)
                                                    End If
                                               End If

                                               Dim lblCalRuleID As Label = trQuestionList.FindDataCellTemplateControl(iNode.Key, CType(trQuestionList.Columns("CalRuleID"), DevExpress.Web.ASPxTreeList.TreeListDataColumn), "lblCalRuleID_S")
                                               If IsNothing(lblCarryKind) = False Then
                                                    Dim drpCalRuleID As DropDownList = trQuestionList.FindDataCellTemplateControl(iNode.Key, CType(trQuestionList.Columns("CalRuleID"), DevExpress.Web.ASPxTreeList.TreeListDataColumn), "drpCalRuleID_S")
                                                    drpCalRuleID.SetSelectedValue = lblCalRuleID.Text.Trim
                                                    If lblCalRuleID.Text.Trim = "3" Then
                                                         blnIsNeedCheckSum = True
                                                    End If
                                               End If

                                          
                                               If iNode.HasChildren Then
                                                    AssignNodeControlInit(iNode.ChildNodes, blnIsNeedCheckSum)
                                               End If

                                          Next
                                          If blnIsNeedCheck Then
                                               If dblSumWeight <> 100 Then
                                                    ' ***** here I want to change this Node's backcolor & childNodes's backColor as Color.Red
                                                                ' ***** alert message to user
                                               End If
                                          End If
                                     End Sub
                                     
                                     
                                     

                                It's possible to check at HtmlRowPrepared Event?

                                0

                                Hi Rainmaker,

                                We are sorry for the delay in responding. To resolve this issue, we suggest that you save the keyfield values of nodes which must be marked in a hashtable. This will allow you to change the color of required nodes within the HtmlrowPrepared event handler. If you are using our summaries, you may use the TreeList.GetSummaryValue method to determine a summary values.

                                Thanks,
                                Plato

                                0

                                OK!

                                0

                                I save Key 2 ArrayList, and Loop 2 change DataCell's BackColor thought Control's Parent.parent 2 find DataCell, Like below:

                                For Each strQID As String In _ValidateQID
                                               Dim txtWeight As TextBox = trQuestionList.FindDataCellTemplateControl(strQID, CType(trQuestionList.Columns("Weight"), DevExpress.Web.ASPxTreeList.TreeListDataColumn), "txtWeight_S")
                                               If IsNothing(txtWeight) = False Then
                                                    Dim ctrl As DevExpress.Web.ASPxTreeList.Internal.TreeListDataCell = TryCast(txtWeight.Parent.Parent, DevExpress.Web.ASPxTreeList.Internal.TreeListDataCell)
                                                    If IsNothing(ctrl) = False Then
                                                         ctrl.Style.Add(" Background", "red")
                                                    End If

                                               End If
                                          Next

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners