devexpress

How do I set the contents of an ASPxImageZoom control?

天涯浪子 提交于 2019-12-13 02:39:19
问题 I am trying to write a property editor for the Dev Express ASPxImageZoom control so that I can use it in an XAF application to display an image. The image is stored in a byte array. I want to set the value of the control to contain the contents of a byte array. However I cant figure out how to do this from the documentation. https://documentation.devexpress.com/#AspNet/clsDevExpressWebASPxImageZoomtopic 回答1: You can assign byte array to ASPxZImageZoom control. In below code, I am just reading

Deploying a CodeRush plugin from the Community Site

主宰稳场 提交于 2019-12-12 21:12:23
问题 If I have a plugin that I want to deploy from the DevExpress CodeRush Community site, how do I deploy it onto my machine? This one looks like such a useful plugin. 回答1: How do I install a plugin Instructions are linked to, from the top of each plugin page. Look for the blue button that says "Install help" ( Also linked here ) Essentially all you have to do is drop the dll in the right directory and restart studio. Issues One potential issue surrounds the idea that dlls built on machines other

Insert/Update/Delete is disabled for this control. message of EntityDataSource

…衆ロ難τιáo~ 提交于 2019-12-12 20:10:44
问题 I use ASPxGridView and EntityDataSource as its datasource. In EntityDataSource , I write CommandText, so I can not set "EnableInsert", "EnableUpdate", or "EnableDelete" to true. That's why, I manipulate (insert, update, delete) data manually. Changes are made manually pass through to database. But at the side of the GridView these errors are given: For inserting: "Insert is disabled for this control." For updating: "Update is disabled for this control." For deleting: "Delete is disabled for

How to get instance of the GridControl in LookupEdit (Devexpress)

…衆ロ難τιáo~ 提交于 2019-12-12 19:46:02
问题 Not a lot to say, just want the instance of DXGrid where i have a LookUpEdit. I'm using WPF. mylookupedit1.GridControl <-- ??? EDITED : Here is some sample code: <UserControl.Resources> <ControlTemplate x:Key="gridTemplate"> <dxg:GridControl x:Name="PART_GridControl"> <dxg:GridControl.View> <dxg:TableView Name="view" AutoWidth="False" BestFitMode="AllRows" BestFitArea="All" AllowBestFit="True"/> </dxg:GridControl.View> </dxg:GridControl> </ControlTemplate> </UserControl.Resources> <Grid>

Showing a DevExpress AspxPopUpControl when user clicks a button

て烟熏妆下的殇ゞ 提交于 2019-12-12 18:40:03
问题 I have added a aspxpopupcontrol to my website. I want to show this pop when a user clicks a button. I don't know how to invoke the controller. How can this be done? 回答1: There are two ways to show the ASPxPopupControl - using the server side and client side code. To show the ASPxPopupControl from the server code, set the ASPxPopupControl.ShowOnPageLoad property to true. To invoke the ASPxPopupControl from a client side code, call the ASPxPopupControl's Show method. The How to show the

How to set the default Sort on a DevExpress GridView

戏子无情 提交于 2019-12-12 16:00:43
问题 On .net WinForm, DevExpress's GridControl/GridView bound on a DataSet, how to specify the default sort order? The one that is used when there is no visible GridColumn with a SortOrder. By default, I have set a sorting on the view on my hidden DateTimeStamp GridColumn. It is of course overrided by user if user click on a column. User can "Clear Sorting" using the menu on column or by clicking on a column while pressing the Control key. When doing that, Rows are not sorted anymore (or maybe by

How to programmatically reach any AspxControl inside an AspXGridView's EditItemTemplate

假装没事ソ 提交于 2019-12-12 15:18:33
问题 Its very simple and i feel myself as an idiot :( I newly started to using DevX Controls. Its documentation and sample projects are SUCKS! My problem is: I have an ASPxGridView on my aspx page: <dx:ASPxGridView ID="dxdgMyGrid" runat="server" AutoGenerateColumns="False" OnStartRowEditing="DxGridStartRowEditing"> <SettingsEditing Mode="PopupEditForm" PopupEditFormHeight="200px" PopupEditFormWidth="500px" EditFormColumnCount="2" PopupEditFormHorizontalAlign="Center" PopupEditFormVerticalAlign=

Cross thread UI component call

China☆狼群 提交于 2019-12-12 14:23:18
问题 Is this an appropriate way of handling cross-thread operations? Should I use a new property name, something like "EditValueThreadSafe" instead of overriding "EditValue"? I don't think there is an issue with the changes to the implementation of EditValue, as the base property is called regardless. namespace MyApplication.Components { using System.Windows.Forms; /// <summary> /// Thread-safe implementation of the DevExpress.XtraEditors.ComboBoxEdit class. /// </summary> public class

DevExpress WPF GridControl with dynamic columns and rows

安稳与你 提交于 2019-12-12 13:56:02
问题 I'm working with a DevExpress 14.1 GridControl on WPF, which must bind to a dynamic source. We don't know the number of columns or rows on design time, so this must be calculated on the fly. The source may be changed while executing, adding more rows, or columns, or BOTH (I could have a table with 3 columns and 5 rows, and a 6th row with 4 columns could be inserted, adding a new column to the model with empty data for the previous rows). I was using a DataTable as ItemsSource for the grid,

How to set background color of button in WPF?

送分小仙女□ 提交于 2019-12-12 13:06:30
问题 How to set the background color of a button in xaml? It can't be much harder than <Button Margin="2" Background ="LightGreen" ....> But this does not work...for the avoidance of confusion, button here is System.Windows.Controls.Button Edit I forgot to mention that I use DevExpress's ThemeManager but did not think that would cause issues as per DevExpress they do not style the standard Windows Buttons...apparently they do, however, which basically makes it impossible to change the background