Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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, 03: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 kevinenergy, 02-17-2023, 12:42 PM
                              115 responses
                              2,698 views
                              1 like
                              Last Post kevinenergy  
                              Started by prdecast, Today, 06:07 AM
                              1 response
                              4 views
                              0 likes
                              Last Post NinjaTrader_LuisH  
                              Started by Christopher_R, Today, 12:29 AM
                              1 response
                              14 views
                              0 likes
                              Last Post NinjaTrader_LuisH  
                              Started by chartchart, 05-19-2021, 04:14 PM
                              3 responses
                              577 views
                              1 like
                              Last Post NinjaTrader_Gaby  
                              Started by bsbisme, Yesterday, 02:08 PM
                              1 response
                              15 views
                              0 likes
                              Last Post NinjaTrader_Gaby  
                              Working...
                              X