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

How to show custom text when a report's data source is empty in the Web

$
0
0

This example demonstrates an approach to showing a custom text message if a report's data source is empty. For this, two detail reports are used.


ASPxHyperLink - Add the 'Image with Text' rendering mode

$
0
0

This example demonstrates how to create a custom user control with an ASPxHyperLink that contains both image and text elements.

The sample web page contains two customized ImageLink controls. The "NavigateUrl" property of the second control contains a unique parameter that keeps the hyperlink unvisited. This is done to demonstrate the appearance of both visited and unvisited links with changed styles.

The styles in the user control allow the image and text to look like a single hyperlink.

The dxeHyperlink class changes the standard DevExpress theme and the dxeHyperlink_BlackGlass class specifies the BlackGlass theme. For other themes, specify dxeHyperlink_[Theme_Name] classes in the same way.

To overcome the difference in rendering data in the Firefox and other browsers, a special "hyperlink_ff" style was created. In case the Firefox browser is used, the style is applied in the Init event handler of every custom ImageLink user control. You can use the same approach to overcome difficulties with other browsers.

How to bind a web report to an array list

$
0
0

This tutorial describes how to bind a web report to a custom object data source and display it on a web page. The data source is represented by the System.Colections.ArrayList object filled with data at runtime. The ArrayList implementation makes a project easier to understand, since there is no need to create a custom object with the IList, ITypedList or IBindingList interfaces.

How to remove standard bar items and add custom ones to the DocumentPreview toolbar

How to use the existing ChartControl as a source for an XRChart

$
0
0

This example demonstrates how you can use existing ChartControls as a source for XRCharts (an XtraReports control). This may be useful, e.g. when it is needed to print several ChartControls simultaneously.

For this, place four empty XRChart controls onto a report's surface, and adjust their size and position as you need. Then, you can use the existing ChartControl instances as a source for these XRChart controls.

How to create a drill-down report in WPF

$
0
0

This example demonstrates the interactive capabilities of Document Preview.

In particular, it shows how you can implement collapsible document sections, which can be expanded by clicking an element in Document Preview. This can be done by handling the PreviewClick, PreviewDoubleClick and/or PreviewMouseMove event of the DocumentPreviewModelBase class.

See also: How to: Create Drill-Down Reports.

How to: Store file attachments in the file system instead of the database

$
0
0

The FileSystemData module provides the FileSystemStoreObject and FileSystemLinkObject classes that implement the IFileData interface and enable you to store uploaded files in a file system instead of the database.
   FileSystemStoreObject - this class enables you to store uploaded files in a centralized file system location instead of the database. You can configure the file system store location via the static FileSystemDataModule.FileSystemStoreLocation property.
   FileSystemLinkObject - this class enables you to add soft links to real files instead of saving their contents to the database. Apparently, it is intended for use in Windows Forms applications only.

Refer to the following video to see it in action: http://www.screencast.com/t/Xl1GMfxw
Feel free to share your feedback on the module at http://community.devexpress.com/forums/t/71862.aspx


IMPORTANT NOTES
1.
The current version of this example does not support the middle-tier scenario. Refer to the Q476039 ticket for more details.
2. It is required to set the BaseObject.OidInitializationMode property to OidInitializationMode.AfterConstruction for the correct operation of this module.

See Also:
File Attachments Module Overview
Working with links to files instead of storing their contents in the database
SQL Server FILESTREAM feature Overview

Example Comments

Added By: Roger Gardner at: 8/2/2012 7:36:37 AM    

-How to change FileStoreObject to work With Application server?
-How many files you can store in one folder and the system is not to slow?

Can this sample be upgraded with Application server and multiple folders in File Data Store folder?

Added By: Sander Mclean at: 8/22/2012 3:31:10 AM    

Thank you for your example, but could you upgrade this to VB.NET?

Added By: Martin Kraeuchi at: 10/12/2012 5:00:24 AM    

I tried to run this example but it crashes.
It occurs a fatal error when I try to append a file after creating a new "Standard File Data Demo" Item. The error occurs at the moment the file select box opens. I didn't found a way to debug it.
Do you have a glue what it could be?

My configuration:
Win7 64BIT, VS2010, v2012 vol 1.7, SQL Server Express 2008 R2

Thanks, Martin

Added By: Dennis (DevExpress Support) at: 11/29/2012 12:56:43 PM    

@Roger: I have not yet tested this module with the application server. It is a good idea, though. Thank you for your input, I have added it to my TODO list.

@Sander: It is quite complex a module to rewrite it in VB.NET, as well as maintain two versions later. Even though it is not in my immediate plans, you can either include the C# module project into your VB.NET solution (Visual Studio allows this) or rather use free or paid conversion tools.

@Martin: Thank you for your comment. Hm, it performs perfectly well for me. I also ran functional tests that passed locally. You are probably not using the latest version in this example. It would be great if you could create a separate ticket in the Support Center and attach the eXpressAppFramework.log file with the error details. Thank you in advance!

PS.
Sorry for the late reply, guys. In the future, it is better to submit a ticket directly via the http://www.devexpress.com/Support/Center/Question/Create link, if you experienced any difficulties with our tools.

Added By: ABRAMO ABRAMO at: 11/21/2013 2:44:40 PM    

Hi,
I'm working with Images in XAF application storing user image file to file system. So I'm using FileSystemStoreObject and It work fine for me. However, I've some problem!

one - I'd like split and save user images in FileData\<mykey1> folder where mykey1 depends by Business Objects instance1,
user images in FileData\<mykey2> folder where mykey2 depends by Business Objects instance2 and so on.
two - I'd like show stored images like Asp.net Images Slides Control or a link item in grid view to open images.

Do you have any suggestion or example?

Best regards,
Gaetano

Invoke a popup window using a control from the EditForm template

$
0
0

This demo shows you how to use web page space more efficiently by editing a particular field's values in a popup window.
   
By default, the Edit Form doesn't display a particular field's value. End-users can click a special button within the Edit Form to invoke a popup window that shows this value in a memo editor. They can even edit this value by using the memo editor, and changes will be saved to the database if they press the Update button. The grid's RowUpdating event is handled to implement this.

Example Comments

Added By: Leandro Licker at: 8/7/2013 9:15:56 AM    

Not working the button notes:

<input type="button" value="Show Notes" onclick ="<%# Container.UniqueID.Replace('$', '_') + "_popup.ShowAtElement(grid.GetMainElement());" %>" />

You can fix?
Thank you!


How to provide end-users with the capability to change a chart's appearance

$
0
0

This sample demonstrates how a custom palette and appearance selector for XtraCharts can be implemented.

For this, we create two user controls and embed them into the application's form.

Note: In version 2012 vol 1, we have introduced a chart Ribbon and toolbar that allow you to quickly customize a chart.

To start using these tools, locate the corresponding ChartControl's smart tag on your form. For more information, review this video.


Example Comments

Added By: Piotr Tworek at: 11/26/2012 7:07:42 AM    

This example not working
Error message:
"This example requires one of the following version DXexperience v 2012 vol 2.2.
So, we don't guarantee that you'll be able to compile it"

My question:
Why do I get an e-mail with information on the amendments, if I can not run
The latest version of DX v1.8 is 2012 and not 2012 vol 2.2
For whom it is intended?

Piotr

How to modify report parameter values from code

How to accompany a chart, its pane or series point by text or image annotations

How to link a chart to an XtraPivotGrid control

How to provide a custom editor to a report element

$
0
0

This sample illustrates how you can customize the End-User Designer for Silverlight, by implementing custom functionality for a report element's smart tag.

OBSOLETE - How to build a bridge between chart and pivot grid

$
0
0

Note: This example applies to an XtraCharts version prior to v2010 vol 2. Starting from v2010 vol 2, after you assign a Pivot Grid instance to your chart's DataSource property, all the chart's bindings and layout settings are automatically adjusted. For more information, please review the S90521: Improve the interaction between the XtraCharts and XtraPivotGrid controls report and E4983 example.

This example demonstrates how to build a bridge between chart and pivot grid.

How to link a web chart to an ASPxPivotGrid

$
0
0

This tutorial demonstrates how you can link WebChartControl to ASPxPivotGrid, which is done entirely at design time.

Note that in order to synchronize both controls when the ASPxPivotGrid layout is changed, it is necessary to set their EnableCallbacks property to False. It is possible to place both controls inside the UpdatePanel to avoid the entire page update during a postback. Please refer to the UpdatePanel Class help topic for additional information about this control functionality.

For more information, see the following document in our online documentation: Pivot Charting on the Web (Integration with the ASPxPivotGrid).

See also:
- E252;
- E568;
- E258;
- E1237.


How to build a bridge between chart and pivot grid: Extended version

$
0
0

Note: This example applies to an XtraCharts version prior to v2010 vol 2. Starting from v2010 vol 2, after you assign a Pivot Grid instance to your chart's DataSource property, all the chart's bindings and layout settings are automatically adjusted. For more information, please review theS90521: Improve the interaction between the XtraCharts and XtraPivotGrid controls report and E1237 example.

This example is an extended version of the E284 example. Due to numerous client requests regarding this functionality, we've decided to create a complete sample project, visually demonstrating different ChartControl-PivotGridControl relation approaches.

Customize Pivot Grid control's data before displaying it in a Chart Control

$
0
0

The following example demonstrates how to add custom text to data prepared by the PivotGridControl, to display it in a ChartControl.

How to customize the spreadsheet context menu

$
0
0

This example demonstrates how to customize the SpreadsheetControl's context menu (in this instance it is the SpreadsheetMenuType.Cell menu, which is invoked by clicking any cell on a worksheet).
In particular, this sample illustrates how to remove and disable the existing menu items, create a menu item for the Spreadsheet command and insert a custom menu item.

How to implement custom saving and opening procedures in Dashboard Designer

$
0
0

The following example demonstrates how to implement custom saving and opening procedures in Dashboard Designer using the DashboardSaving and DashboardOpening events respectively.


In this example, the dashboard XML definition can be saved (opened) only to(from) the specified default location.


The DashboardSaving event is handled to implement a custom saving routine. Its DashboardSavingEventArgs.Command event parameter allows determining what user action raises the event. The Dashboard.SaveToXml method is used to save the dashboard to the specified XML file. Then, the DashboardSavingEventArgs.Handled event parameter is used to specify that the dashboard has been saved and no default actions are required.

Clicking the Save As button invokes a message box that allows saving the dashboard to the default location or cancel the saving procedure. The DashboardSavingEventArgs.Saved event parameter is used to notify whether the custom saving routine has succeeded.


The DashboardOpening event is handled to implement a custom opening procedure. The DashboardDesigner.LoadDashboard method is called to load the dashboard from the default location. The DashboardOpeningEventArgs.Handled event parameter allows specifying that no default actions are required to open the dashboard.


WPF SpreadsheetControl API - Part 2

$
0
0

This example is the second part of the SpreadsheetControl API set of examples that demonstrates how to use the SpreadsheetControl API to programmatically manage spreadsheet documents, without the need for Microsoft Excel to be installed.

This sample introduces API properties and methods used to perform the following operations:

- Insert, delete and modify pictures
- Add a hyperlink to a picture
- Add custom functions to the spreadsheet


Viewing all 7205 articles
Browse latest View live


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