Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to add sort capability to the web based XtraReport

$
0
0

This example illustrates how to add, and force to work, sorting option buttons to the header area of the web based report. Some key points of this example:

- Sorting is accomplished during the callback, which prevents full page post back (AJAX-oriented behavior).
- Callback raised from the client side by the ASPxClientCallbackPanel.PerformCallback method.
- FieldName of the column, on which the sorting action should take place and the Shift key pressed state is passed to the server as a callback parameter.
- XtraReport.HtmlItemCreated event handled, in order to insert sorting option buttons to the report header via the HtmlEventArgs.ContentCell parameter.

Question Comments

Added By: (no info) at: 3/7/2013 9:49:39 AM    

When using VS2012 and new versions you have to make this change to fix the JavaScript error you'll receive:

From: Plato (DevExpress Support)2 years ago

To resolve this problem, use the following code for the onclick event handler:

onclick=\"parent.ApplySorting(" + fieldId + ", true);\"

Thanks,
 Plato


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>