• 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


                          #13
                          Originally posted by NinjaTrader_AlanP View Post
                          Hello Zeos6,

                          Thank you, I will submit a vote for you as well as myself for this feature request.
                          2+ years gone. Are we still waiting for this?

                          Comment


                            #14
                            Hello koganam,

                            Thanks for checking into SFT-2286.

                            This has not been implemented at this time.

                            Not all requests will be implemented and this is largely driven by demand.

                            Please note, it is up to the NinjaTrader Development to decide if or when any request will be implemented.
                            Chelsea B.NinjaTrader Customer Service

                            Comment


                              #15
                              Originally posted by NinjaTrader_ChelseaB View Post
                              Hello koganam,

                              Thanks for checking into SFT-2286.

                              This has not been implemented at this time.

                              Not all requests will be implemented and this is largely driven by demand.

                              Please note, it is up to the NinjaTrader Development to decide if or when any request will be implemented.
                              This is a documentation request, not a development request. Instead of getting piecemeal information of what ALREADY exists, just tell us what is already there. Yes, it takes time, Still, it is just giving out information that already exists, not creating new code. So, yes, I understand that: "Not all requests will be implemented ...". However, there is nothing to implement. Just provide information that already exists, and that NT support is already dripping and doling out like expensive diamonds. I apologize for my sarcasm, but it is warranted in this case.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by swcooke, Today, 10:39 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post swcooke
                              by swcooke
                               
                              Started by Fernand0, Today, 09:53 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post Fernand0  
                              Started by traderpards, Today, 09:55 AM
                              4 responses
                              22 views
                              0 likes
                              Last Post Lancer
                              by Lancer
                               
                              Started by franco12364, Today, 06:49 PM
                              0 responses
                              4 views
                              0 likes
                              Last Post franco12364  
                              Started by fx.practic, Today, 03:55 PM
                              0 responses
                              1 view
                              0 likes
                              Last Post fx.practic  
                              Working...
                              X