This is a migrated thread and some comments may be shown as answers.

Code Formatting Request

6 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 29 Jan 2010, 02:08 PM
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

6 Answers, 1 is accepted

Sort by
0
Stuart Hemming
Top achievements
Rank 2
answered on 29 Jan 2010, 02:11 PM
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).
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 01 Feb 2010, 12:55 PM
Id also to put in a feature request for this (to bump it up the importance scale) :)
0
Accepted
Deyan Varchev
Telerik team
answered on 04 Feb 2010, 11:11 AM
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.
0
Stuart Hemming
Top achievements
Rank 2
answered on 04 Feb 2010, 11:47 AM
Thanks Deyan.

--
Stuart
0
Stuart Hemming
Top achievements
Rank 2
answered on 04 Feb 2010, 11:51 AM
Should the items appear in PITS straightaway? I can't appear to find 'em.

--
Stuart
0
Deyan Varchev
Telerik team
answered on 04 Feb 2010, 12:10 PM
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.
Tags
General Discussions
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Stuart Hemming
Top achievements
Rank 2
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Deyan Varchev
Telerik team
Share this question
or