devexpress

How to reduce DevExpress VCL Form Flickering

岁酱吖の 提交于 2019-12-24 21:38:45
问题 I am having another project with DevExpress VCL Component with skin support. On a TcxPageControl I have placed two TPanel s and its caption color will be changed depending on one TTimer . The panel caption color is changing always with a flicker but it changes smoothly in a normal TPageControl . Here is my sample code: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, dxSkinsCore,

How to uncheck CheckBox on button click in WPF using C#?

ぐ巨炮叔叔 提交于 2019-12-24 19:01:01
问题 I have a CheckBox in GridControl Column. After performing some operation the selected checkboxes inside GridControl must be UNCHECKED on button click in WPF . Any idea? <dxg:GridControl Name="grdInfill" Height="700" VerticalAlignment="Center"> <dxg:GridControl.Columns> <dxg:GridColumn AllowEditing="True"> <dxg:GridColumn.CellTemplate> <DataTemplate> <CheckBox Name="chkSelect" HorizontalAlignment="Center" IsChecked="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=GlassType}"

Access to the Ok/Accept Or Cancel Button of a RepositoryItemTimeSpanEdit?

三世轮回 提交于 2019-12-24 17:24:07
问题 I need to know if there is a way to access to the events of the buttons inside a RepositoryItemTimeSpanEdit . Image to see the buttons I need the events for: Click Image I have tried to access in the PopUp event and QueryPopUp , however I can't get the button in any way yet. 回答1: You can get this form through Form.OwnedForms property in Popup event. The type of this form is DevExpress.XtraEditors.Popup.TimeSpanEditDropDownForm , so you need just to find the form of this type. After that you

Finding controls within Devexpress ASPxGridView

安稳与你 提交于 2019-12-24 15:35:27
问题 I have a code that contains an ASPxGridView and a ASPxCheckBox and Label within in like: <dx:ASPxGridView ID="gvTableSearchHomes" runat="server" DataSourceID="XmlHomes" Width="341px" CssClass="tableViewSearchGrid" ClientInstanceName="gvTableSearchHomes" AutoGenerateColumns="False" EnableRowsCache="false" KeyFieldName="ID"> <%--<Columns>--%> <%-- DXCOMMENT: Within ASPxGridView, add a column whose values will participate in filtering --%> <%--<dx:GridViewDataTextColumn FieldName="Address">

XtraGrid: Get RespositoryItemButtonEdit row index

送分小仙女□ 提交于 2019-12-24 14:20:06
问题 How to get ButtonEdit at specific row index? This is how I am creating RepositoryItemButtonEdit column. Private Sub PopulateDataGrid() GrdCntrlMain.DataSource = CreateDataSet().Tables(TABLE_WORKERS) Dim lObj_GrdClmn As GridColumn = GrdView.Columns.AddField("Select") ' This is my RepositoryItemButtonEdit column With lObj_GrdClmn .VisibleIndex = GrdView.Columns.Count .OptionsColumn.AllowEdit = True End With GrdView.OptionsView.RowAutoHeight = False AddHandler GrdView.MouseMove, AddressOf

How in a Delphi dxDBGrid can I change the color of a single row?

时光毁灭记忆、已成空白 提交于 2019-12-24 10:59:43
问题 Basically a client wants to change the color of a single row in a Delphi dxDBGrid. There isn't a rows property like there is columns. Any ideas? 回答1: You can use styles. The DevExpres Grid in DBTableView has a event named: OnGetContentStyle in Styles part. You can create at design two styles and apply the desired style at runtime. procedure TFormBrBase.DBTableViewStylesGetContentStyle( Sender: TcxCustomGridTableView; ARecord: TcxCustomGridRecord; AItem: TcxCustomGridTableItem; out AStyle:

Refresh View databindings using UpdateLayout or some other alternative

亡梦爱人 提交于 2019-12-24 10:57:41
问题 I have an interface IScreenViewModel, and to simplify the problem I can RedScreenViewModel : IScreenViewModel GreenScreenViewModel : IScreenViewModel etc.. This means I have a RedScreenView.xaml which makes a RedScreenViewModel instance, likewise for all subsequent color screens. IScreenViewModel has some properties that you must implement e.g. interface IScreenViewModel { public Color ScreenColor{get;set;} } I have a ViewmodelWrapper class which holds all viewmodels instances.

Html input loses focus on Samsung Android when virtual keyboard appears

隐身守侯 提交于 2019-12-24 09:28:08
问题 I have the problem of losing focus on an input element on a Samsung Galaxy Tab A (Android 7.0) with a html5 web application. It seems to be a problem in android, as on windows 10 or iOS (although the resize event is also triggered when the virtual keyboard pops up) the element does not lose focus. Windows 10 and iOS apparently suppress this when the virtual keyboard is called (but not when manually resizing the browser window). Anybody any help on this? 回答1: It's an Android issue losing focus

Display format string, int to percent

穿精又带淫゛_ 提交于 2019-12-24 09:17:32
问题 I have some integer values (between 1 and 100) and I want to use them in a progress bar, that has a DisplayFormatString property. I also want to have the percent symbol '%' in the output string. The problem is that by using the symbol, it automatically multiplies my value with 100, and it shows my values like 3300% when I wanted them 33%. How may I overcome this? DisplayFormatString="0%" 回答1: Try using 0'%' as the DisplayFormatString , (percentage in single quotes) this should help in

How to upload xls file's data to SQL Server in devexpress popup control?

强颜欢笑 提交于 2019-12-24 08:08:40
问题 I have enquiry on how to insert xls file data into SQL Server. The upload button, and gridview control are placed inside the devexpress popup control and the code works without the popup control but doesn't work with popup control. When I inserted the xls file and clicked the upload button, the label display showed "Please select a file to upload!" although I have did this. ASP.NET markup: <dx:ASPxPopupControl ID="popupControl" ClientInstanceName="popupControl" AllowDragging="true"