• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddOn w/DataGrid Expander displays "System.Windows.Controls.TextBlock" in headder

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    AddOn w/DataGrid Expander displays "System.Windows.Controls.TextBlock" in headder

    I’m trying to put a grouped DataGrid with an Expander into an NT8 AddOn. I started with a standalone WPF app that works fine. When run the stand alone WPF App it shows grouping with controls as shown in the image attached. Click image for larger version

Name:	wpf datagrid with expander.png
Views:	1
Size:	57.3 KB
ID:	1049144


    When I put this into an NTTabPage it runs but the header displays System.Windows.Controls.TextBlock next to each expander icon control. I have not been able to get rid of that. The exact same code from the stand alone WPF app is used in the NTTabPage, except for the fact that instead of a wpf window, the control is derived from NTTabPage.
    Click image for larger version

Name:	wpf datagrid with expander in NTAddOn.png
Views:	1
Size:	30.5 KB
ID:	1049145

    I attached both VS 2017 projects so you can see the results yourself.
    why is this happening?
    WpfApp1.zip
    NTAddOn.zip

    #2
    Hello Brillo,

    Thanks for your post.

    I'm writing to know we have received your inquiry and will follow up after we have been able to fully review.

    As our office is approaching closing hours for the week, we will likely have a response ready next week.

    Thanks in advance for your patience.
    JimNinjaTrader Customer Service

    Comment


      #3
      Thanks for your patience Brillo.

      This topic will reach beyond the kind of support that we may offer on the forums. Using a DataGrid may have its own styling which we may not be able to investigate and customize since NinjaTrader uses Infragistics grids (NTGrid.) We also do not have any documentation or examples for interfacing with an NTGrid/Infragistics grid, but you may find the thread below useful for researching this further.

      NTGrid thread - https://ninjatrader.com/support/foru...a/85040-ntgrid

      I'll leave this thread open for any community members that could share their experiences in using and stylizing a DataGrid in an AddOn or if anyone would like to share their experiences using an NTGrid.
      JimNinjaTrader Customer Service

      Comment


        #4
        Hi Jim,
        If the forums and support have not seen this behavior before then shouldn't it be logged as a possible bug and reported to development? I would not expect that a .net process that uses Infragistics should have issues with Microsoft framework supplied controls such as DataGrid. In other words, Infragistics ought to support using their controls in a program along side the Microsoft controls without any issues. If that's not the case... if in fact the Infragistics controls interfere with the Microsoft controls then it should be reported to them as I'm sure they would investigate it. Otherwise the problem then is with something in NT and it should be investigated by NT development. Would you mind reporting this problem to development? In the mean time I will look for an alternative presentation to get my particular AddOn working.
        Thank you,
        Tim

        Comment


          #5
          Hello Brillo,

          While this is topic may not have been brought up previously, the matter surrounds stylizing the WPF object. We do not have a clear case of a bug that we can report to development.

          Looking at the test example attached, the issue is not present. There would have to be some additional matter with styling the DataGrid so it is displayed to your liking.

          Please let us know if we can be of further assistance.
          Attached Files
          JimNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by deblanka, Today, 08:56 AM
          0 responses
          3 views
          0 likes
          Last Post deblanka  
          Started by Boonfly8, Yesterday, 12:30 PM
          7 responses
          18 views
          0 likes
          Last Post sledge
          by sledge
           
          Started by Sohal, Today, 05:02 AM
          2 responses
          9 views
          0 likes
          Last Post techmint  
          Started by danitralla, Today, 03:33 AM
          0 responses
          5 views
          0 likes
          Last Post danitralla  
          Started by yeshujbp, Today, 12:37 AM
          0 responses
          14 views
          0 likes
          Last Post yeshujbp  
          Working...
          X