Code Formatting Request

7 posts, 1 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 29 Jan 2010 Link to this post

    If you stack the attributes for an HTML/ASP item on multiple lines and then use JC to format the page, you end up with something like this...
      <telerik:RadScheduler runat="server" ID="Scheduler1" 
      DataKeyField="CalendarAppointmentId" 
      DataStartField="StartDate" 
      DataEndField="EndDate" 
      DataSubjectField="Subject" 
      DataDescriptionField="Description" 
      DataRecurrenceField="RecurrenceRule" 
      DataRecurrenceParentKeyField="RecurrenceId" 
      EnableDescriptionField="true" 
      OnDataBound="Scheduler1_DataBound" 
      OnAppointmentDataBound="Scheduler1_AppointmentDataBound" 
      SkinID="rad_scheduler" 
      StartEditingInAdvancedForm="false" 
      StartInsertingInAdvancedForm="false" 
      ShowAllDayRow="true" 
      ShowFooter="false" 
      ShowFullTime="true" 
      ShowHeader="false" > 
      </telerik:RadScheduler> 

    when I, personally, prefer to indent the attributes like this ...
      <telerik:RadScheduler runat="server" ID="Scheduler1" 
        DataKeyField="CalendarAppointmentId" 
        DataStartField="StartDate" 
        DataEndField="EndDate" 
        DataSubjectField="Subject" 
        DataDescriptionField="Description" 
        DataRecurrenceField="RecurrenceRule" 
        DataRecurrenceParentKeyField="RecurrenceId" 
        EnableDescriptionField="true" 
        OnDataBound="Scheduler1_DataBound" 
        OnAppointmentDataBound="Scheduler1_AppointmentDataBound" 
        SkinID="rad_scheduler" 
        StartEditingInAdvancedForm="false" 
        StartInsertingInAdvancedForm="false" 
        ShowAllDayRow="true" 
        ShowFooter="false" 
        ShowFullTime="true" 
        ShowHeader="false" > 
      </telerik:RadScheduler> 

    I don't suppose that there is any chance of getting JC to optionally apply this rule when formatting is there?

    --
    Stuart

  2. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 29 Jan 2010 Link to this post

    And whilst I think of it, sorting the attributes alphabetically (a la XML TiDy) would be nice (although leaving runat and ID alone would be brill).

    --
    Stuart (who believes in pushing his luck).
  3. DevCraft banner
  4. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 01 Feb 2010 Link to this post

    Id also to put in a feature request for this (to bump it up the importance scale) :)
  5. Answer
    Deyan Varchev
    Admin
    Deyan Varchev avatar
    150 posts

    Posted 04 Feb 2010 Link to this post

    Hi Steve, Stuart,

     Thank you both for the valuable feedback. I've split it into two parts - first the indentation of attributes and second reordering of attributes. For both of them I've created a PITS items so that you could track the our progress on the matters. As the official release date is approaching we will most probably start to focus more on fixing stuff than on implementing new functionality. Having that in mind, you could expect that soon we will have a fix for the attribute indentation but for reordering you might have to wait  a bit longer.

    All the best,
    Deyan
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  6. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 04 Feb 2010 Link to this post

    Thanks Deyan.

    --
    Stuart
  7. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 04 Feb 2010 Link to this post

    Should the items appear in PITS straightaway? I can't appear to find 'em.

    --
    Stuart
  8. Deyan Varchev
    Admin
    Deyan Varchev avatar
    150 posts

    Posted 04 Feb 2010 Link to this post

    Hello Stuart,

     They should appear in Your Tracked Issues to the right. Currently they are with status Not scheduled so you might need to adjust the "scheduled for" filter on the top.

    Best wishes,
    Deyan
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Back to Top
DevCraft banner