devexpress

用户界面控件的王者之争:Kendo UI vs DevExpress(一)

泄露秘密 提交于 2019-12-16 11:03:24
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 在一次使用ASP.NET MVC进行开发的Web项目中,我们需要 用户界面控件 来帮助实现界面的大部分功能。由于项目比较复杂,我们最终确定对 Kendo UI 和 DevExpress 这两款国际知名的用户界面组件进行评估。下面笔者跟大家分享一下评估控件的经验,希望对其他选购控件的朋友提供一个参考和借鉴。 当时我们评估这两款控件主要考察:控件的功能、易用性、与当前项目的集成时间和自动代码完成的时间。 控件功能 首先我们比较了Kendo UI和DevExpress当前所提供的控件,并大致评估了控件的功能。根据项目的需求,我们主要测试了文本和日期两个控件。 Kendo UI Kendo UI是Telerik旗下的控件,在Web和移动开发领域都有非常棒的表现,在开发者当中也是相当的受欢迎。Kendo UI提供了两个文本字段控件: Autocomplete 和 NumericTextBox 。后面个控件提供了各种选项,比如价格、百分比、测量和质量。这些控件非常惊艳,功能很强大,不过唯一的不足就是它的Mask文本字段,比如输入邮件和地址必须要用固定的格式,不过这个问题用一个jQuery插件就可以轻松解决。 Kendo UI的文本字段有三个选项: Calendar, DatePicker 和 DateTimePicker

DevExpress TreeList Control

為{幸葍}努か 提交于 2019-12-14 04:26:14
问题 I need to display the xml data in the treelist control. I have one root node, one Child node and further four children for this child node. I am not able to display it in the treelist. I am using the dataset.readXml method for reading the xml file and giving dataset as a datasource. Here is the code I am following: DataSet dataSet = new DataSet(); dataSet.ReadXml(@"C:\foldersettings.xml"); treeList2.DataSource = dataSet; treeList2.PopulateColumns(); treeList2.BestFitColumns(); treeList2

Devexpress Repository ComboBoxEdit loosing cursor position. Edit.SelectionStart Not being assigned

北城余情 提交于 2019-12-14 03:15:59
问题 I am having an issue with my comboBoxEdit in a gridcontrol. I am using Winforms Devepress 11.2. I clicked in the text of an existing Repository comboBoxEdit, and typed in "appear backwards", however, it displayed as "sdrawkcab raeppa" like it would in a mirror. There are some posts about this topic but none of the solutions seem to work The reason for this is the following foreach (GridColumn column in this.gvNotes.Columns) { var columnEdit = column.ColumnEdit; if (columnEdit != null) {

delphi - coloring cxdbgrid field depending on its content

巧了我就是萌 提交于 2019-12-14 02:48:34
问题 I am not exactly sure how to put this. I am coloring cxDB grid field based on the value: procedure TForm1.cxGrid1DBTableView1StylesGetContentStyle( Sender: TcxCustomGridTableView; ARecord: TcxCustomGridRecord; AItem: TcxCustomGridTableItem; var AStyle: TcxStyle); var AColumn: TcxCustomGridTableItem; begin AColumn := (Sender as TcxGridDBTableView).GetColumnByFieldName('SIFRA'); if VarToStr(ARecord.Values[AColumn.Index]) = '007 01' then AStyle := cxstyle1; end; I would like to change the code

Is there a way to make a cell editable where column is readonly in XtraGrid?

那年仲夏 提交于 2019-12-14 02:04:39
问题 My grid looks like this. Key Value 1 A 2 B 3 C I have Value column read-only in my grid. "Value" column's columnedit is associated with memoexedit repository. Now what I want to do is on some condition like when key=2, I want my value cell to be editable. I tried making the whole column ReadOnly = false. and then handled ShowingEditor to cancel edit on everything else than Key=2, but that prevents even opening up the editor for other values. What I want is able to see the editor but it should

Set ReadOnly property to a column of devexpress grid(MVC) only on edit click

旧时模样 提交于 2019-12-13 19:34:08
问题 I have a devexpress grid in my partial view, Each row of the grid has an add, update and delete button. When clicked on update of the particular row, a form pops down which contains all the columns of the grid. Now i want to set the readonly property of one of the columns to true, which i did by column.ReadOnly = true; But what this does is sets the column to readonly always i.e. even during New Click. Where as i want this readonly property only during edit click. here is my devexpress grid

Run webapi without installing .net4.5

﹥>﹥吖頭↗ 提交于 2019-12-13 15:12:24
问题 I have a website running aspx pages, under asp.net4.0. I also have some DevExpress controls, that I purchased 4 years ago. I now want to add an API to the web application, however I understand that needs .net4.5 to be running. The DevExpress controls don't work under 4.5 - so I would need to renew them at considerable cost. it possible, after installing .net4.5, for my site to continue to use .net4 - and not the new 4.5? so that I can have the site operate under 4.0, and the API under 4.5? Or

Calculate Max Font size

淺唱寂寞╮ 提交于 2019-12-13 14:59:00
问题 I'm tyring calculate the maximum fontsize in order for at Text to fit into the ClientRect of a TCxLabel. But I cant get it to work probably. (See picture) The fontsize is to big and the thxt is not drawn the corrent place. Here how to reproduce: Place a tcxLabel on an empty Form, and allign the label to client Add a FormCreate and a FormResize event : procedure TForm48.FormCreate(Sender: TObject); begin CalculateNewFontSize; end; procedure TForm48.FormResize(Sender: TObject); begin

I cannot change control's visibility on C# code

我怕爱的太早我们不能终老 提交于 2019-12-13 07:12:35
问题 I want to change controls visibility on c#, but nothing happens. The controls are in an AspxPopupControl and 3 of them are hidden in design time, 1 of them is visible. I use this code to visible them if (paramType == "Grup") { gv_Answers.Visible = false; trlGroup.Visible = true; chkShowItems.Visible = true; } else { gv_Answers.Visible = true; trlGroup.Visible = false; chkShowItems.Visible = false; } This code is in a CustomCallBack event of a gridview. So i don't know what to do from this

UserAppDataReigistry not persisting

谁说胖子不能爱 提交于 2019-12-13 07:03:57
问题 I have the following class to persist my camera settings. using System; using System.Drawing; using System.Windows.Forms; using DevExpress.XtraEditors.Camera; public class CameraDeviceHelper { public string DeviceMoniker; public string DeviceName; public int DeviceResolutionWidth; public int DeviceResolutionHeight; const string kDeviceName = "CameraDeviceName"; const string kDeviceMoniker = "CameraDeviceMoniker"; const string kDeviceResolutionWidth = "CameraDeviceResolutionWidth"; const