• 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

How to make collection editor appearing in the property grid

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

    How to make collection editor appearing in the property grid

    Hello,

    I have indicator ported from NT7 to NT8 which uses array of objects.
    I does not work NT8. Array is showing but there is no edit button to add or remove elements

    Here's the simple example

    Code:
    public class MyCustomIndicator : Indicator
    {
            [TypeConverter(typeof (ExpandableObjectConverter))]
            public class TimeRange
            {
                public TimeSpan Begin { get; set; }
                public TimeSpan End { get; set; }
            }
    
            //How to edit this collection in property grid?
            public TimeRange[] TimeRanges { get; set; }
    Attached Files

    #2
    Hello rfsettling,

    This would not be possible and require having two separate controls.

    I have attached a sample demonstrating this.

    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Example you've attached shows me two properties of TimeRange type.It is absolutely is not what I'm waiting for. I need dynamic collection of TimeRange without any restrictions by it's length.

      It's a trivial task for standard PropertyGrid. And it worked perfectly on NT7 with Windows Forms property grid. But now, with this new WPF grid, it doesn't. There must be some editor for this purpose

      Comment


        #4
        Hello rfsettling,

        I have attached a sample which allows you to click the cell for time range under indicator properties and edit its time range.

        Please let us know if you need further assistance.
        Attached Files
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          This is exactly what I need.
          Thank you

          Comment


            #6
            Originally posted by NinjaTrader_AlanP View Post
            Hello rfsettling,

            I have attached a sample which allows you to click the cell for time range under indicator properties and edit its time range.

            Please let us know if you need further assistance.
            I have noticed a whole bunch of PropertyEditors being used in code examples from NT Support reps on the forum, but none of them seem to be documented.

            Can we get documentation added for all the property editors and examples of how to use them?

            Comment


              #7
              Hello Koganam,

              Good suggestion, I will put in a feature request and pass the suggestion on to development that documentation be added to the helpguide covering PropertyEditors.

              This feature request is being tracked under SFT-2286.

              Thank you for your suggestion
              Last edited by NinjaTrader_AlanP; 05-22-2017, 02:15 PM.
              Alan P.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by NinjaTrader_AlanP View Post
                Hello Koganam,

                Good suggestion, I will put in a feature request and pass the suggestion on to development that documentation be added to the helpguide covering PropertyEditors.

                This feature request is being tracked under SFT-2286.

                Thank you for your suggestion
                Has there been any progress on this?

                Thanks.

                Comment


                  #9
                  Hello koganam,

                  Regarding SFT-2286, it looks like its still being considered. If another user wanted to add a vote to this SFT, I can add a note to the request.

                  Please let us know if you need further assistance.
                  Alan P.NinjaTrader Customer Service

                  Comment


                    #10
                    Hi AlanP,

                    I agree with koganam. Would be a very useful feature. Please add my vote. Thank you.

                    Comment


                      #11
                      Hello Zeos6,

                      Thank you, I will submit a vote for you as well as myself for this feature request.
                      Alan P.NinjaTrader Customer Service

                      Comment


                        #12
                        I vote for this

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by dariuszszyc, Today, 12:07 AM
                        1 response
                        7 views
                        0 likes
                        Last Post login_dejavu  
                        Started by KennyK, Yesterday, 09:28 PM
                        1 response
                        10 views
                        0 likes
                        Last Post NinjaTrader_ChelseaB  
                        Started by vindiou, Yesterday, 02:37 AM
                        1 response
                        24 views
                        0 likes
                        Last Post NinjaTrader_ChelseaB  
                        Started by login_dejavu, Yesterday, 10:55 AM
                        2 responses
                        27 views
                        0 likes
                        Last Post NinjaTrader_ChelseaB  
                        Started by joemiller, Yesterday, 03:30 AM
                        3 responses
                        11 views
                        0 likes
                        Last Post joemiller  
                        Working...
                        X