I have a ASP.NET dynamic data site that has multiple filter controls built using metadata such as:
[ScaffoldTable(true), MetadataType(typeof(Fees.Metadata))]
public partial class Fees
{
public class Metadata
{
[FilterUIHint("DateRange")]
public object InvoiceDate;
}
{
How do I order these filters in a particular way. It seems very random. Can I use a metadata attribute or should I modify the page template, what’s the go?
OK so I ended up just manually reordering the controls list on the custom code-behind page like so:
Of 3 controls on the page this takes the 2nd out and adds it onto the end.
If I need to use again I might create a method and search on control name.
This is a crude solution but it suits me for this one off scenario. If anyone finds a better way let me know.
OK better way: