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

How to define a report dynamically in the Web application

$
0
0

This example illustrates how to create a report dynamically in the web application

Question Comments

Added By: drzej at: 12/13/2014 4:48:02 PM    

aspx is only for dx 8.3

Added By: Andrew L (DevExpress Support) at: 12/15/2014 5:13:12 AM    

Hello Andrzej,


I have updated this sample to use ASPxDocumentViewer instead of the Report Viewer. Please review the 2014.2+ related version of this sample.

Added By: Ajith Kumar Rai at: 2/19/2016 3:14:05 AM    Can you please elaborate about  this type  "DataSet1"  and  "DataSet1TableAdapters" in XtraReport1.cs file.Added By: Jannet (DevExpress Support) at: 2/19/2016 3:42:01 AM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T347655: Can you please elaborate about this type "DataSet1" and "DataSet1TableAdapters" in XtraReport1.cs file. This ticket is currently in our processing queue and will be addressed shortly.


ASPxReportDesigner - How to create an ASP.NET End-User reporting application with the filesystem report storage managed by the ASPxFileManager control

$
0
0

This example demonstrates how to create an End-User Reporting Application similar to a WinForms application that stores reports in the web server's filesystem. The ASPxFileManager control is used to implement the file Open and Save dialog boxes.

 

In this example, a separate ASP.NET UserControl named "FileDialogControl" is used to implement the Open/Save file dialog window. The ASPxCallback control is used to validate an entered file name in the dialog. FileDialogControl's client-side functionality is moved to a separate javascript class named ClientFileDialogControl (its source code is located in the ClientFileDialogControl.js file).


See also:
How to integrate the Web Report Designer into a web application
Question Comments

Added By: gopi matsa at: 2/20/2016 1:12:09 AM    i am not able to load the reportAdded By: gopi matsa at: 2/20/2016 1:13:08 AM    Please Find me the solution for loading the report to the report designer
Added By: Roy Banueelos at: 2/20/2016 9:41:26 AM    Have you tried making a default report? I did this by making a blank XtraReport using the report wizard and saving it inside my program then I invoked a new instance of that report inside the report designers’ code behind.
[C#]
// using the same Default.aspx.cs given in the example// for me I put a separate file just for my reports so I will show that method herepublicpartialclassDefault:System.Web.UI.Page{protectedvoidPage_Init(objectsender,EventArgse){if(!IsPostBack){reportDesigner.OpenReport(newT227679.Reports.rptStarter());// calling a new instance of my default report}}}

 

ASPxGridView - How to hide the EditForm editor and column caption programmatically

ASPxGridView - How to adjust Edit Form layout using the EditFormLayoutProperties property

How to: Share One Common Element in All DXTabControl's Tabs

$
0
0
This example demonstrates how to place the DXDocking component inside the DXTabControl, so the DXDocking would be common for all tabs.

How to display progress information about server-side callback processing

$
0
0

Sometimes a server-side operation, which is initiated via a callback request sent by the ASPxCallback control, may take much time (for instance, when a lot of data is obtained and being processed on the server). This example illustrates how you can inform your users about the server-side processing progress.

Note that this approach does not work if the Session state is used. It blocks parallel execution and forces parallel requests to be executed one after another because the access to ASP.NET Session state is exclusive per session.
Refer to the KA18599: How to perform parallel callbacks to get some information about server-side process KB Article for explanation.

See also:
How to display progress information about server-side callback processing (MVC)

How to track progress of server side processing on the client side (using HttpHandler)
How to track progress of server side processing on the client side (using HttpModule)
How to track progress of server side processing on the client side (using WebMethods)

Question Comments

Added By: David Geers at: 3/22/2013 2:48:15 PM    

The "static double progress" field cannot be used. It is shared by all client running in the browser.

Open the demo in two browsers, say firefox and safari, run the first one, and then while it is running start the second one. The progress in the first windows will be reset to 0%.

This demo is totally useless.

Added By: Ken Tittle at: 4/30/2013 5:10:09 PM    

Yup, this leads people down the wrong path. I'm trying to find an alternative though and can't seem to find it. It would be nice to store it in the Session object, but since EnableSessionState must be disabled, that can't happen. If anybody has an alternative, please let us know.

Added By: Jay Johnson at: 5/18/2015 3:11:40 PM    

Has this been resolved?  Getting an error when I try to run..

Added By: Artem (DevExpress Support) at: 5/19/2015 12:06:39 AM    

Hello Jay,

To process your recent post more efficiently, I created a separate ticket on your behalf: T243718: E918 doesn't work. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

Added By: Robert Hughes 9 at: 2/22/2016 10:00:09 AM    This should be removed, it simply don't work.Added By: Anthony (DevExpress Support) at: 2/22/2016 11:45:41 PM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T348686: The "How to display progress information about server-side callback processing" example doesn't work. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

How to: Implement the report management functionality by using StandaloneReportManagerService

$
0
0
Question Comments

Added By: Andrew King at: 2/22/2016 5:48:37 PM    Does the PerdefinedReport tag have a ItemsSource or similar that I can attach a collection of reports to?Added By: Andrey K (DevExpress Support) at: 2/23/2016 12:37:43 AM    Hi Andrew,

I have exported your question in a separate thread. Let's continue our discussion there:T348676: How to provide a PerdefinedReport items source

Thanks,
Andrey

How to put a custom UserControl in a GridView cell

$
0
0

OBSOLETE:

This example is obsolete. We've introduced the RepositoryItemAnyControl class and the corresponding IAnyControlEdit interface in v14.2, which can be used for this purpose. See the How to implement an embedded Chart Control example demonstrating how to implement this approach.


N
OTE:
This example is created only for demonstration purposes and we don't recommend using this approach in your application, because it has many limitations and requires writing a lot of custom code. If none of DevExpress XtraEditors are suitable for you and you want to put a custom control in a GridControl cell, pleasecontact DevExpress support and describe the desired layout to us. We will do our best to find an acceptable solution for you.

This example demonstrates how a custom UserControl can be used as an in-place editor in GridView, TreeList, Ribbon and Vertical Grid. As described in the A128 Knowledge Base, it is not possible to just place a control within a cell, because cells are not controls. When a cell's editor is not activated, its content is drawn via a painter. So, in our example, we have created a painter to draw the entire UserControl's content. All cells in GridView will be drawn using this painter until an end-user clicks a cell. In this case, an actual instance of the UserControl class will be created. Controls inherited from the BaseEdit class are drawn via their painters, other controls are drawn via the DrawToBitmap function. In case of 3rd-party controls, you need to draw them manually. If you want to use your custom control in GridView or other controls, you need to implement the IEditValue interface in it.

See also: How to work with the editor's painter, and view info classes in a descendant

Question Comments

Added By: Jaix Software at: 3/6/2013 8:05:36 PM    

This example does not work with DateEdit in a menu bar. There appears to be a display issue, as when focus is lost nothing is display. Re-selecting the control and the dates come back.

Added By: D. Samsonoff at: 4/25/2013 2:58:12 AM    

You probably would want to expose Control rather than UserControl to meet broader requirements.

Added By: Christophe Keller @ PTS at: 12/12/2013 1:34:26 AM    

Hi,

In your example, if I click on a different cell in the table in Form1, the cell turns white for a short amount of time before the editor is active. How can I avoid this?

Added By: Satwant Sandhu at: 2/10/2016 7:59:07 AM    How do we modify this so that the custom control is only used when editing.  I have a custom text box that I use for entry, but once the user is no longer in edit mode then I want to show the default cell rendered (i.e. a label).

I do not want my custom editor being painted in every cell. Added By: Svetlana (DevExpress Support) at: 2/10/2016 11:46:58 PM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T344393: How to use a custom editor only for editing in a grid. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.


How to create a GroupControl descendant that paints its caption in the old flat style

$
0
0
Our GroupControl container control paints a caption as a stylish colored box. Its caption blends well with other skinnable DevExpress controls, but sometimes our customers just want to display a simple frame around controls with text as a caption (something like the standard GroupBox control, but with the GroupControl features, such as a caption image). The picture below demonstrates the difference between the standard GroupBox and the GroupControl.

This example demonstrates how to create a custom control inherited from the GroupControl class and implement a custom painter that draws the header in a different style. This approach has known limitations:
1. The Border Color Blending feature is not supported.
2. It has minor compatibility issues with a few old skins. In any case, the painting mode implemented in this example is good with all the modern skins and most of the rest skins.

How to print from the RichEditDocumentServer

$
0
0

This example demonstrates how to use a PrintableComponentLink to print from the RichEditDocumentServer. An instance of the RichEditDocumentServer loads a document, inserts a datetime stamp in its header and prints it.
Various print options, such as page size, orientation and margins are set in code at run time.
The WinForms application searches a list of installed printers for a printer containing a certain text ("Canon") in its name and prints to it. If a printer is not found, the default printer is used.

How to configure dxDataGrid with Angular Approach

$
0
0

This example demonstrates how to display data from a data source in dxDataGrid created using the AngularJS approach.

See also:
Configure Widget - Angular Approach

Question Comments

Added By: Marion (DevExpress Support) at: 8/12/2014 6:21:57 AM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T139489: How to configure dxDataGrid with Angular approach and handle the optionChanged event. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

Added By: Scott Wood at: 8/27/2014 6:12:41 AM    

The demo code is incomplete.  dataSource:employees...   Where does employees come from?  I assume it's just a plain old javascript array????

Added By: Marion (DevExpress Support) at: 8/27/2014 10:53:50 PM    @Scott,
Please download the example locally to see all project files including the data.js file that contains the employees data. Added By: Will Meister at: 10/12/2014 9:39:05 AM    

Could you please dive a little deeper into this example? For instance, does listing 'employees' as the dataSource provide two-way databinding, or would 'dataSource' need to be listed in one of the bindingOptions? Also, could you provide a functioning example of configuring the rowUpdated, rowUpdating, rowRemoved, and rowRemoving event handlers? In my project, none of them get triggered, though rowClick works properly.

Thanks!,
Will

Added By: Marion (DevExpress Support) at: 10/12/2014 11:48:42 PM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T160337: How to configure dxDataGrid CRUD operations with Angular Approach. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

Added By: Jack Parna at: 2/23/2016 11:23:10 PM    how about in mobile view?
I have tried, but it not working. Added By: Nikolai (DevExpress Support) at: 2/24/2016 7:11:33 AM    

Hello Jack,

To process your post more efficiently, I created a separate ticket on your behalf: T349388: How to configure dxDataGrid with Angular Approach in a mobile app. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

How to disable rows in GridControl based on their values

$
0
0

This example demonstrates how to disable rows in GridControl based on their values. To disable a row, it is necessary to customize its style and prevent its editing by handling the ShowingEditor event.

Question Comments

Added By: Andreas Isbarn at: 3/1/2013 2:23:39 AM    

I need the viewModel to underrstand the xaml.

Added By: Andrey K (DevExpress Support) at: 2/24/2016 11:10:14 PM    

Hi Andreas,

We accidentally discovered that your initial post was out of scope of our Support Center for a long time. 
Please accept our sincere apologies for not responding in a timely manner. You can see a view model that is used in the example in the ViewModel.cs file. 
Should you have any other questions, let me know.

Thanks,
Andrey 

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

$
0
0

Scenario
The FileSystemData module provides the FileSystemStoreObject and FileSystemLinkObject classes that implement the IFileData interface for the use with our File Attachments module.
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 this functionality in action: http://www.screencast.com/t/Xl1GMfxw

Steps to implement
1. Copy and include the FileSystemData project into your solution and make sure it is built successfully.

2. Invoke the Module Designer for the YourSolutionName.Module/Module.xx file by double-clicking it in Solution Explorer. Invoke the Toolbox (Alt+X+T) and then drag & drop the FileSystemDataModule component into the modules list on the left.
3. Define a FileSystemStoreObject or FileSystemLinkObject type properties within your business class as described in the eXpressApp Framework > Task-Based Help > How to: Implement File Data Properties article. Make sure to decorate the container business class with the FileAttachmentAttribute to provide additional commands for working with files. See the E965.Module\BusinessObjects\FileSystemStoreObjectDemo.xx and E965.Module\BusinessObjects\FileSystemLinkObjectDemo.xx  source files for examples. 

4. Make sure you do not override the DevExpress.Persistent.BaseImpl.BaseObject.OidInitializationMode property in your application and related modules, because the OidInitializationMode.AfterConstruction value is necessary for the correct operation of this module (in the example, the required default value is already set in the FileSystemDataModule class of this example module).
5. Modify YourSolutionName.Win/WinApplication.xx file to handle the CustomOpenFileWithDefaultProgram event of the DevExpress.ExpressApp.FileAttachments.Win.FileAttachmentsWindowsFormsModule class as shown in the E965.Win\WinApplication.xx file.

 

IMPORTANT NOTES
1.
The current version of this example does not support the middle-tier scenario. Refer to the Q476039 ticket for more details.

 

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

Question Comments

Added By: Roger Gardner at: 8/2/2012 4: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 12:31:10 AM    

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

Added By: Martin Kraeuchi at: 10/12/2012 2: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 9:56:43 AM    

@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 11:44:40 AM    

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

Added By: Ricardo Granja at: 1/27/2014 4:36:39 AM    

Do vou have an exemple of this as a domain componente?

Regards,
Ricardo

Added By: xaero xy at: 6/2/2014 9:47:03 PM    

Did the "StandardFileDataDemo" store file attachments in database?

Added By: Dennis (DevExpress Support) at: 6/3/2014 2:24:48 AM    

@xaero: The StandardFileDataDemo class uses the FileData class that stores files in the database and which is a part of the standard delivery.

In turn, the FileSystemStoreObjectDemo class stores files in the file system with the help of custom IFileData implementations described in this example.

Added By: Steve Perks @ NSS at: 9/19/2014 4:11:17 AM    

Hi Dennis, thank you for the code - it works great in my web application (I'm only using the FileSystemStoreObject). I've made a mod to cover the case where the user has previously saved a business object and subsequently reloads it to edit the FileSystemStoreObject property, namely to pick a different file. In this case _tempFileName is not correctly populated and the old file is not deleted when the file is changed and the business object saved.

My solution was to add the following code to FileSystemStoreObject.cs

   protected override void OnLoaded()
   {
       base.OnLoaded();
       _tempFileName = this.RealFileName;
   }

Hope this helps others and perhaps you could update your code if you also feel this is a good solution.

Added By: Dennis (DevExpress Support) at: 9/19/2014 5:21:49 AM    

Thanks for sharing, Steve. Would you please either record a video showing how to replicate this behavior with the original example or create a functional EasyTest script covering this scenario? This will help me better understand the situation and make changes, if necessary. Thanks in advance! 

Added By: Steve Perks @ NSS at: 9/19/2014 5:47:52 AM    

Dennis, how shall I send the video? No attachments in this thread.

Added By: Steve Perks @ NSS at: 9/19/2014 6:09:35 AM    

It's ok about sending the video, I've decided to host it for a short while here: http://host21.co.uk/e965/

Added By: Dennis (DevExpress Support) at: 9/19/2014 6:13:09 AM    Thanks for your video, Steve. I will take this scenario into account  for future updates.Added By: Genesis Supsup 1 at: 12/30/2015 2:07:35 AM    

Does this already work using Application Server? Given the correct credentials, will this concept work with Dropbox (in replacement to File System)?

Added By: Alexey (DevExpress Support) at: 12/30/2015 9:27:28 PM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T329782: E965 with dropbox. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

Added By: Joseph Kellerer 2 at: 2/25/2016 12:07:31 AM    Thank you for providing this code!
It works great.

I have enhanced the FileSystemStoreObject to have a Content property like in the BaseImpl.FileData class:
[C#]
[NonPersistent]publicbyte[]Content{get{returnFile.ReadAllBytes(this.RealFileName);}set{File.WriteAllBytes(this.RealFileName,value);}}



Added By: Dennis (DevExpress Support) at: 2/25/2016 12:33:02 AM    @Joseph: You're always welcome!Added By: Joseph Kellerer 2 at: 2/25/2016 1:53:54 AM    My code has an error. You have to add line
[C#]
this.Size=value.Length;
in the setter.

How to implement Smart ColumnAutoWidth mode

$
0
0

The XtraGrid provides two built-in column resizing modes: manual and automatic. You can choose one using the GridView.OptionsView.ColumnAutoWidth property. However, in Auto mode the horizontal scrollbar is never enabled. This is a problem if columns are reduced to their minimum width and still don't fit into the view's client area. Also, a column width can be changed only relative to other columns, while manual mode lacks the useful stretching functionality when the control itself is resized.

This example demonstrates how to implement functionality similar to the one provided by ColumnAutoWidth mode and solve its drawbacks in user code.

Question Comments

Added By: Mabaega Eg at: 2/25/2016 1:33:34 AM    Thank you , this example is very useful for me .

and some questions....
How to make this to auto RecalcWidths after Best Fit (All Column) ContextMenu Clicked?
Is there a way to turn this into CustomControl

Thank.Added By: Nadezhda (DevExpress Support) at: 2/25/2016 4:28:02 AM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: How to catch a click on a menu item. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

How to use jQuery to drag and drop items from one ASPxGridView to another

$
0
0

The example demonstrates how to use the jQuery framework to drag an item from one grid to another.

- Use jQuery UI Draggable and Droppable plug-ins;
- Define "draggable" and "droppable" items:

[ASPx]
<Styles><TableCssClass="droppableLeft"></Table><RowCssClass="draggableRow left"></Row></Styles>

 - Use the invisible ASPxGlobalEvents control and handle its client-side ControlsInitialized/EndCallback events;
- Initialize the defined draggable/droppable items via the corresponding jQuery selectors. The "start" event handler can be used to obtain the key of the dragged row and apply conditional styling to it:

[JScript]
start: function(ev, ui){var $sourceElement = $(ui.helper.context);var $draggingElement = $(ui.helper); //style elements $sourceElement.addClass("draggingStyle"); $draggingElement.addClass("draggingStyle"); //find keyvar sourceGrid = ASPxClientGridView.Cast($draggingElement.hasClass("left") ? "gridFrom" : "gridTo"); rowKey = sourceGrid.GetRowKey($sourceElement.index() - 1);}

- Handle the "drop" event of the "droppable" items and perform a callback to the callback panel that has both grids nested inside to perform the data editing functionality.

Select the "script.js" source file and review the comments to find an illustration of the above steps.


See Also:
T116869: GridView - How to drag and drop items from one grid to another
E4582: How to reorder ASPxGridView rows using buttons or drag-and-drop

Question Comments

Added By: Marc Michaels at: 1/16/2013 6:03:17 AM    

Where is DX.ashx? I can't find any mention of it anywhere.

Added By: Marc Michaels at: 1/16/2013 6:14:32 AM    

<div class="draggable"> ??? Can't find this anywhere in the example as well. This example really leaves me in the dark there is no explanation of anything. Sadly it's the closest thing I can find to help me drag from one grid and drop on another. Just going to have to struggle through it.

Added By: Marc Michaels at: 1/16/2013 6:21:13 AM    

Running example simply results in "The resource cannot be found".

Added By: Mark OMeara at: 8/19/2014 6:59:25 PM    

Can this example be adjusted to also drag and drop within the same grid? i.e. for ordering of rows?

Added By: Anthony (DevExpress Support) at: 8/20/2014 5:18:06 AM    

Hi Mark,

We have the How to reorder ASPxGridView rows using buttons or drag-and-drop example that shows how to reorder grid rows using the same jQuery UI library. Please use the approach from it to accomplish your task.

Added By: Nicholas Mattiello at: 11/12/2014 7:27:44 AM    

Can you post the code for the Helper class used in the code behind of Default.aspx?

Added By: Artem (DevExpress Support) at: 11/12/2014 11:49:36 PM    

Hello Nicholas,

I've made this class visible in web. Note that you can download this example using the Downloads - > Example link and research it locally. 

Thanks,
Artem 

Added By: Akil Kumar Thamala at: 1/21/2016 7:46:48 AM    

This code works fine on my Android tab. But when I place the same controls (Grids) in ASPxNavBar and run it on the Tab, it does not work any suggestions?

Added By: Pavlo (DevExpress Support) at: 1/22/2016 5:23:48 AM    

Hello,

I see that you've already asked a similar question in the context of the ASPxGridView does not work when placed in the ASPxNavBar ticket. Let us continue our discussion there.

Added By: Darshan S at: 2/25/2016 10:02:51 PM    Hello,

I have used the attached code and its working. Thanks for sharing the code and also the demo.

I want little extra feature adding to this. In my requirement i need to select multiple rows and drop to another grid.

Can you please help me.

Thanks in advance. Added By: Vladimir (DevExpress Support) at: 2/25/2016 11:03:24 PM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T350166: How to use jQuery to drag and drop items from one ASPxGridView to another. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.


DXScheduler Getting Started - Provide Bars UI for a Scheduler

$
0
0

This example demonstrates how to provide end-users with basic functionality for switching and navigating views, and grouping scheduler's data via bars UI.

DXScheduler Getting Started - Provide Ribbon UI for a Scheduler

$
0
0

This example demonstrates how to provide end-users with basic functionality for switching and navigating views, and grouping scheduler's data via Ribbon UI.

DXScheduler Getting Started - Create a Custom Edit Appointment Form

$
0
0

This example demonstrates how to bind a scheduler control to data with custom fields and provide end-users with the capability to edit these fields in a custom Edit Appointment form.

PopupControl - How to display the control after executing controller code

$
0
0
This example illustrates several approaches to display the PopupControl extension after performing server-side processing. In the simplest scenario we use the PopupControlSettingsBase.ShowOnPageLoad option to display the popup control initially. Note that we can pass any dynamic settings or content for the popup control through the ViewData dictionary. To show the popup control on the client side, we can call the ASPxClientPopupControlBase.Show() method. In addition we can use the ASPxClientPopupControlBase.SetContentHtml method to modify popup content on the client side.

Finally, there is a scenario when the popup control should be displayed after a callback of some other extension. Please review the T159638 - GridView - How to show a message after CRUD operations code example, where we have illustrated how this can be implemented.

GridView - How to implement navigation by Up/Left/Down/Right keyboard arrows in the Batch Edit mode

$
0
0

This example illustrates how to implement custom keyboard navigation in Batch Edit mode.  
The main idea is to handle the keydown event for the grid's HTML table and manually switch the next cell to edit mode using  the ASPxClientGridViewBatchEditApi.StartEdit  method. 
The ASPxClientGridView.BatchEditStartEditing  event is used to remember the last editing row and column indices.

Note that keyboard navigation (via arrows) won’t work well for such editors as the ComboBox and SpinEdit because they have their own key event handlers, which will prevent custom logic from being executed. So, this approach is mainly for TextBox and Memo editors. However, it will be possible to use different keys in this scenario. 

This example doesn't implement data updates. Please refer to the GridView - A simple Batch Editing implementation example illustrating how to work with a model in Batch Edit mode.

Web Forms: 
ASPxGridView - How to implement navigation by Up/Left/Down/Right buttons when the Batch Edit mode is used

Viewing all 7205 articles
Browse latest View live


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