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

How to: merge ribbon controls in tabbed MDI interface

$
0
0

In this example, the DockLayoutManager component implements the tabbed MDI interface. The main application window, as well as tabs, contains ribbon controls. The example illustrates pages, page groups and items merging from child ribbons to the main ribbon control.


How to sort the pivot grid's data by OLAP member properties

$
0
0
This example demonstrates how to sort data by OLAP member properties using the CustomServerModeSort event. In this example, the "Product" field's values are sorted by the "Color" OLAP member property.

Note that this sample demonstrates how to sort data manually using the CustomServerModeSort event. If you want to sort data by an attribute value, use the PivotGridFieldBase.SortByAttribute property instead.

How to create edit form templates dynamically

$
0
0

This example illustrates how to add editors within the EditFormTemplateContainer of ASPxGridView programmatically by implementing the ITemplate interface.

See also:
ASPxGridView - How to load UserControl within EditFormTemplate at runtime

Question Comments

Added By: Esa Niemi at: 10/28/2015 7:17:19 AM    

Could you add some comments? It takes unnecessarily long from a devexp-noob to parse what is going on.

How to sort the pivot grid's data by OLAP member properties

$
0
0
This example demonstrates how to sort data by OLAP member properties using the CustomServerModeSort event. In this example, the "Product" field's values are sorted by the "List Price" OLAP member property.  The "List Price" member property values are displayed near the Products field values.

Note that this sample demonstrates how to sort data manually using the CustomServerModeSort event. If you want to sort data by an attribute value, use the PivotGridFieldBase.SortByAttribute property instead.

How to apply style format conditions to grid cells at runtime in versions prior to 14.1

$
0
0

OBSOLETE. Starting from version 14.1, DXGrid introduces the built-in conditional formatting feature. Please refer to How to implement conditional formatting for rows for details.

This example illustrates how to apply different styles to individual grid cells or rows based upon custom conditions.


To enable this feature, you need to set the attached FormatConditionsProvider.AllowFormatConditions property to true for TableView. In this case, a new "Show Format Conditions" item will appear in the Column Context Menu. Simply right-click any column header to invoke this menu and choose the "Show Format Conditions" item. As a result, FormatConditionsWindow will be shown. This dialog allows you to create multiple Style Format Conditions. To create a new one, click the Add button. On the right, choose any column from a drop-down window if you wish to apply your custom style to cells of a particular column. If you wish to apply the style to a whole row, leave this option empty. The next step is to set the Background, and/or Foreground, and/or Font settings. Finally, set your custom condition by using the Criteria section where you will find FilterControl. All the changes on the right side will be reflected in a corresponding item on the left.

 

How to scroll TableView on selecting row with moving the mouse outside view bounds

$
0
0

This example illustrates how to add the DXGrid behavior which provides the capability to select rows and cells by simply moving the mouse over them with the mouse button pressed and auto-scrolling the view in a necessary direction.

This functionality was implemented via attached behavior for DXGrid which encapsulates all the selection functionality.

The scrolling functionality was implemented in a separate class named ScrollController.

Question Comments

Added By: MichaelDaly at: 10/15/2012 5:51:50 AM    

This example needs more testing.

Line 207: rightColumnWhenUnselect can be null, need to insert this before: if (rightColumnWhenUnselect == null) rightColumnWhenUnselect = View.VisibleColumns.Last();

Line 181: CurrentSelectionInfo.Column can be null

It's a good effort, but the scrolling does not feel as smooth as in other apps, e.g. Excel

Added By: MichaelDaly at: 10/15/2012 5:53:21 AM    

Note: previous comment was for code in GridSelectingBehaviour.cs

Added By: Andrey K (DevExpress Support) at: 5/7/2015 10:19:21 AM    Hello,

It seems that your message was lost in our Support Center. Thank you for your remarks. We will improve our example accordingly.

Thanks,
Andrey

Drag&drop items from one standalone GalleryControl to another one (extended)

How to implement CRUD operations using DXGrid with Entity Framework (Instant Feedback)

$
0
0

This example shows how to use EntityInstantFeedbackDataSource with the DXGrid for WPF and perform CRUD operations (add, remove, edit) via Entity Framework.

Starting with 14.1, this example works with Entity Framework 6.


How to convert and then print an GridView extension by using the XtraReport

$
0
0

This example demonstrates how to dynamically create a report based upon the GridView extension at runtime. This means that all filtering, sorting and grouping conditions selected in the grid are also applied in a report. To accomplish this task, it is necessary to create a report with all the necessary bands, bind it to a data source and adjust all the necessary options. You can use this approach if you need to display content of templated columns in your report or insert a report based on GridView to another report.
As it is impossible to get the GridView extension state (its filtering, groping, sorting info), the Session is used to pass the last GridView state to the controller.

See also:
E4476: How to convert and then print an ASPxGridView by using the XtraReport

Question Comments

Added By: Kiran Pratapagiri at: 7/3/2013 12:46:27 AM    

Hi,
Thanks for the example.

I think I found the problem with this example. It's not exporting the last column of the Grid.
Please correct the example to export the last column into report.

Thanks

Added By: Diogo Azevedo 1 at: 10/24/2013 8:23:13 AM    

this example works for version 2012?

Added By: Vasily (DevExpress Support) at: 10/24/2013 11:31:20 PM    

Yes, this example should work with version 2012. Anyway, if you face any issues after converting this example to version 2012, please feel free to create a separate support ticket for this issue.

Added By: Nick Hoare at: 7/22/2014 9:28:47 AM    

In ReportHelper.vb, in InitDetailsandPageheader cell.Text is set to the FieldName where I think it should really be set to the ColumnCaption to make use of the work done in GetColumnsInfo which selects the ColumnCaption to be the Caption if there is one or FieldName if there isn't.  It certainly works better for me.  This affects C#,  VB and ASPxGridView example code.
                  
cell.Width = columns(i).ColumnWidth
cell.Text = columns(i).ColumnCaption  'Better to show the Caption than the examples columns(i).FieldName
row.Cells.Add(cell

Added By: Vasily (DevExpress Support) at: 7/23/2014 5:56:06 AM    Hi Nick,

Thank you for your feedback. This example demonstrates how to generate an XtraReport from ASPxGridView, so we will not change its code now. 
Anyway, feel free to modify the code provided in this example according to your scenario. 

Added By: Ben Hugh Riches at: 5/27/2015 8:13:17 AM    

Hi,

Is it possible to get a VS project version of this example, using a List<T> as the data source and stripped to the core GridView to Report functionality?

Regards,

Ben

Added By: Paul (DevExpress Support) at: 5/27/2015 11:14:42 AM    Hi,

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T247668: Is it possible to get a VS project version of the E4755 example. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

Added By: Réal Chartarnd at: 10/29/2015 9:01:41 AM    

Hi,
Thanks for the example.
really useful

How to manually generate vector items to display on a map

$
0
0
The following example demonstrates how to create an array of vector items and display on a map.
Question Comments

Added By: NORMAN LAI at: 10/29/2015 3:23:59 PM    

I have lat and long data from the database table . How can I pass then in array in this case?

ASPxGridView - How to cache data on the client side

$
0
0

This example demonstrates how to cache data on the client to avoid unnecessary callbacks. In this example, data for two columns - "title_id" and "title" - is passed to the client and cached. Thus you can access this data later without invoking a callback.

See Also:
How to: Access Server Data on the Client Side

How to bind a Pivot dashboard item to data in code

How to bind a Gauge dashboard item to data in code

How to bind a Pie dashboard item to data in code

How to bind a Chart dashboard item to data in code


How to bind a Range Filter dashboard item to data in code

$
0
0

The following example demonstrates how to bind a Range Filter dashboard item to data in code.

In this example, the Range Filter is used to apply filtering to a pivot dashboard item's data.

 

How to bind a Choropleth Map dashboard item to data in code

How to bind a Geo Point Map dashboard item to data in code

How to bind a Pie Map dashboard item to data in code

How to bind a Bubble Map dashboard item to data and customize its palette

Viewing all 7205 articles
Browse latest View live


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