Modifying the Default Settings in Order Manager
-
- Lieutenant Commander (LCDR)
- Posts: 91
- Joined: Mon Sep 22, 2008 8:37 pm
- Location: Northeast Ohio
- Contact:
Modifying the Default Settings in Order Manager
How can I modify the Admin Order Manager to show "Last 30 Days" as the default selection for the date range option?
- Jeff
Wave Werks
Wave Werks
Re: Modifying the Default Settings in Order Manager
Locate following code in your Admin/Orders/Default.aspx page
and make it as below
Hopefully it will workout.
Code: Select all
<asp:ListItem Value="5">Last 30 Days</asp:ListItem>
Code: Select all
<asp:ListItem Value="5" Selected="True">Last 30 Days</asp:ListItem>
-
- Lieutenant Commander (LCDR)
- Posts: 91
- Joined: Mon Sep 22, 2008 8:37 pm
- Location: Northeast Ohio
- Contact:
Re: Modifying the Default Settings in Order Manager
Using your method I was able to get 50 Per Page to display as the Page Size default.
Unfortunately your suggestion did not work for setting Last 30 Days as the Date Range default.
Any other thoughts?
Code: Select all
<asp:DropDownList ID="PageSize" runat="server">
<asp:ListItem Text="10 per page" Value="10"></asp:ListItem>
<asp:ListItem Text="20 per page" Value="20"></asp:ListItem>
<asp:ListItem Text="50 per page" Value="50" Selected="true"></asp:ListItem>
<asp:ListItem Text="show all" Value=""></asp:ListItem>
</asp:DropDownList>
Any other thoughts?
- Jeff
Wave Werks
Wave Werks
Re: Modifying the Default Settings in Order Manager
Hmm that's strange if its working for one option then it should work for all. After specifying your default selection make a fresh request to the page.
Re: Modifying the Default Settings in Order Manager
OK try this revert previous change I told you and then edit Admin/Orders/Default.aspx.cs file and locate following line of code
and then make it look like
save change clear browser cache and then try again.
Code: Select all
if (string.IsNullOrEmpty(tempDateFilter)) tempDateFilter = "1";
Code: Select all
if (string.IsNullOrEmpty(tempDateFilter)) tempDateFilter = "5";
-
- Lieutenant Commander (LCDR)
- Posts: 91
- Joined: Mon Sep 22, 2008 8:37 pm
- Location: Northeast Ohio
- Contact:
Re: Modifying the Default Settings in Order Manager
Worked perfectly.
That will save many, many unneeded clicks from happening every day.
Thanks!!!
That will save many, many unneeded clicks from happening every day.
Thanks!!!
- Jeff
Wave Werks
Wave Werks