Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, February 24, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Default sort for data grid control 7.2 WEB
Todd Herman
Posts: 52
 
Default sort for data grid control 7.2 WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jun 08 7:31 PM
Trying to get a data grid control that is an account tab to sort by a date field (newest date on top). Properties don't seem to allow me to specify which column should be the default sort, nor does it allow me to choose ascending or descending? What am I missing? This date field is column #4 in the grid. Do I have to use the first column of the grid as the default sort?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Default sort for data grid control 7.2 WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Jun 08 1:56 AM
Hi Todd!

I've posted how to do this here: http://customerfx.com/pages/crmdeveloper/2008/03/07/setting-the-default-sort-for-a-datagrid-in-saleslogix-web.aspx

-Ryan
[Reply][Quote]
Bruce Randolph
Posts: 10
 
Re: Default sort for data grid control 7.2 WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Jun 08 9:02 AM
Ryan,

I have a similar problem. I have a tab form I added to the Opportunity Details page, and I cannot figure out how to make it sort by a specific column on the first display. I set it sothe user can sort after the display, but still need the initial sort to work.

Can you help?

Thanks,


Bruce
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Default sort for data grid control 7.2 WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Jun 08 9:22 AM
Hi Bruce,

Did you read the post I linked to? It describes how to do just that.

-Ryan
[Reply][Quote]
Todd Herman
Posts: 52
 
Re: Default sort for data grid control 7.2 WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Jun 08 9:45 PM
Thanks Ryan. great article, it shed a lot of light on how to use the tools to gain a programming advantage. Got it working on this end!
[Reply][Quote]
Alan Quinteros
Posts: 2
 
Re: Default sort for data grid control 7.2 WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Sep 08 12:31 PM
Hi Bruce, I did what you said in the post but, seems like its not working for me, i've wrote the following code:

protected void grdPAYMENTs_Sorting(object sender, GridViewSortEventArgs e) {
grdPAYMENTs.Sort("PayDate", SortDirection.Descending);
}

and of course the allow sorting is set to true, but the grid just seems to be ignoring that statement. the next is the code of the properties of my grid.

AutoGenerateColumns="false" CellPadding="4" CssClass="datagrid" PagerStyle-CssClass="gridPager"
AlternatingRowStyle-CssClass="rowdk" RowStyle-CssClass="rowlt" SelectedRowStyle-CssClass="rowSelected" ShowEmptyTable="true" EnableViewState="false"
EmptyTableRowText="<%$ resources: grdPAYMENTs.EmptyTableRowText %>" ExpandableRows="True" ResizableColumns="True" AllowSorting="true" OnSorting="grdPAYMENTs_Sorting" >

any help will be really appreciated. Thanks in advance.

-Alan Quinteros
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Default sort for data grid control 7.2 WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Sep 08 12:37 PM
Hi Alan,

The problem is where you've put the code. Just add the line below to a LoadAction on the form:

grdPAYMENTs.Sort("PayDate", SortDirection.Descending);
[Reply][Quote]
Alan Quinteros
Posts: 2
 
Re: Default sort for data grid control 7.2 WEBYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Sep 08 12:57 PM
thanks a lot Ryan, now it works great.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/24/2025 2:46:20 AM