The problem is in this line : RttiProperty.GetValue(aObject) I call GetValue on the the Original object, but it's not certainly that the property is placed on that object. the property Color e.g is a very good example: On a TEdit it is placed on the "Main Object". You can write...
I'd use something along these lines: function LargestFontSizeToFitWidth(Canvas: TCanvas; Text: string; Width: Integer): Integer; var Font: TFont; FontRecall: TFontRecall; InitialTextWidth: Integer; begin Font := Canvas.Font; FontRecall := TFontRecall.Create(Font); try InitialTextWidth := Canvas.TextWidth(Text); Font.Size := MulDiv(Font.Size, Width, InitialTextWidth); if InitialTextWidth < Width then begin while True do begin Font.Size := Font.Size...
c#,devexpress,summary,xtrareport
It seems that you forgot to add bindings for your XRLabel: TXE_Total.DataBindings.Add(new XRBinding("Text", null, "AmountField")); TXE_Total.Summary = new XRSummary(SummaryRunning.Report, SummaryFunc.Sum, "{0:n2}"); ...
You mention that "Qualification.Id" doesn't work, but you most likely tried that while the EditItemTemplate was there. If there is no such template then that code actually works. To be complete, change the fieldsToCopy line of code to: private string[] fieldsToCopy = { "Name", "Qualification.Id" }; And make sure there's...
c#,datetime,devexpress,datetime-format
You can use the appropriate properties of DateTime: Date and TimeOfDay: TimeSpan time = timeEdit1.Time.TimeOfDay; DateTime date = dateEdit2.Date; If you want to store them in one DateTime: DateTime dateAndTime = dateEdit2.Date + timeEdit1.Time.TimeOfDay; Now you have both in one, you can extract them as shown in my first snippet....
Handle the GridView's CustomRowCellEdit event to dynamically assign an editor to a single cell at runtime. See also: Assigning Editors to Individual Cells ...
c#,asp.net-mvc,gridview,devexpress,devexpress-mvc
Use the ASPxGridView.CustomColumnDisplayText event. protected void ASPxGridView2_CustomColumnDisplayText(object sender, DevExpress.Web.ASPxGridViewColumnDisplayTextEventArgs e) { if (e.Column.FieldName != "FormatType") return; e.DisplayText = WebApp.Helpers.CodebooksHelper.GetItemData(1).First(item => item.ItemID == (int)e.Value).Title; } settings.CustomColumnDisplayText += (sender, e) => { if (e.Column.FieldName != "FormatType") return; e.DisplayText = WebApp.Helpers.CodebooksHelper.GetItemData(1).First(item => item.ItemID...
You Can Achieve this In Grid Rowdatbound event You have to do work around it ..Here I Give You Demo Code.. foreach (GridViewDataColumn c in gridView.Columns) { checkbox chk=grid.FindEditRowCellTemplateControl(grid.Columns("name_colum"), "nameCheckBox") if(Your Condition) {chk.visble=false;} } ...
Your Model.CurrencySymbol string can have some symbols that can be interpreted as format specifier symbols. You can use literal string delimiter ('string', "string") so your currency symbol string will be copied to the result. For example: column.PropertiesEdit.DisplayFormatString = string.Format("'{0}' #,0.00", Model.CurrencySymbol); //Here comes string delimiters: ↑ ↑ Also you can...
The simple way is to use the class like this: public class Foo { public string Name { get; set; } public double Value { get; set; } public string DiagramName { get { return string.Format("{0}: {1}", Name, Value); } } public double DiagramValue { get { return Math.Abs(Value); }...
Try this: gdData.Columns[2].AppearanceCell.Options.UseTextOptions = true; gdData.Columns[2].AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; ...
javascript,knockout.js,binding,devexpress,devextreme
To change list item template you could use the following sample http://jsfiddle.net/oakvprw9/8/ This is the exemplary item template: <div data-bind="dxList: { dataSource: dataSource, onItemClick: onItemClick }"> <div data-options="dxTemplate: { name: 'item' }"> <div> <span data-bind="text: text, visible: !editEnabled()"></span> <div data-bind="visible: editEnabled"> <div data-bind="dxTextBox: { value: text }"></div> <div data-bind="dxButton: {...
asp.net-mvc,gridview,devexpress
On your grid view setting you can add this line to show the grid pagination. settings.SettingsPager.PageSizeItemSettings.Visible = true; You can refer on this link DevExpress MVC Grid View - Data Paging and Scrolling...
You can get the node by using TreeListNode.FindNodeByFieldValue method: resourcesTree.FindNodeByFieldValue("SomeColumnName", "SomeText").Selected = true; Also, you can use the TreeList.FindNode method: resourcesTree.FindNode(node => { var item = (YourSchedulerStorageItem)resourcesTree.GetDataRecordByNode(node); return item.SomeProperty == "SomeText"; }).Selected = true; But also you can highlight the tree list rows by using search engine. For this you...
Apparently, List disables XtraReport to access the element via Designer... If i use List with StringData: public class StringData { public String S {get; set;} } ... i can use the string S and thus display the list of values....
It seems that this is a DevExpress bug. Reproduced here: Items in RibbonPageGroup are scrolled to the end each time scroll buttons are pressed
javascript,asp.net,devexpress,aspxcombobox
Here you have an example how it works and how to do it on devexpress controlls http://demos.devexpress.com/aspxeditorsdemos/ASPxComboBox/ClientAPI.aspx...
c#,checkbox,oracle11g,devexpress
instead of gridView1.FocusedRowHandle;, use gridView1.GetSelectedRows;, which returns an array of integer values representing the handles of the selected rows. foreach(var rowHandle in gridView1.GetSelectedRows()){ ... } ...
c#,devexpress,xaf,dividebyzeroexception
If you can get the value of EquityTotal then you can check it for zero first, otherwise you can catch the exception. Example with check value first: [PersistentAlias("ShortTermDebt + LongTermDebt / EquityTotal")] public decimal DebtEquity { get { if (EquityTotal == 0) return 0; // return 0 or whatever number...
c#,wpf,entity-framework,mvvm,devexpress
I suggest you override the GetTitleForNewEntity method of your IncomingViewModel (derived from the SingleObjectViewModel<Incoming,...>): protected virtual string GetTitleForNewEntity() { return typeof(TEntity).Name + CommonResources.Entity_New; } ...
The Apply button should not perform submit in this scenario. Set its UseSubmitBehavior property to False. Handle the button's client-side Click event. To access it in mark-up, use ButtonSettings.ClientSideEvents: @Html.DevExpress().Button(settings => { settings.Name = "BtnApply"; settings.Text = "Apply"; settings.UseSubmitBehavior = false; settings.ClientSideEvents.Click = "btnApplyClick"; }).GetHtml() In the btnApplyClick JS function,...
javascript,c#,asp.net-mvc,devexpress
You can use the GetValue method: spin.PropertiesSpinEdit.ClientSideEvents.ValueChanged = "function(s,e) { alert(s.GetValue()); }"; ...
asp.net,excel,devexpress,aspxgridview
The ASPxGridViewExporter exports the grid content by values, not display text. Create an instance of the XlsxExportOptions class, set its TextExportMode property to Text, and use this instance during exporting. Here is a corresponding ticket on DevExpress Support Center: ASPxGridView - The CustomColumnDisplayText event doesn't not work when exporting to...
You need to get DetailView for current row and sum quantity of all DetailView's filtered rows. To get DetailView you can use GridView.GetDetailView method and to get filtered rows you can use undocumented GridView.DataController.GetAllFilteredAndSortedRows method. If DetailView is null then you need to get «DevExpress filter engine» and use it...
c#,string,timestamp,devexpress
You've not provided any attempts to solve it yourself but it's really quite straight forward: var theHoursToAdd = int.Parse(textedit1.Text); // Error handling needs to be added var startTime = timePekerjaanStart.Time; timePekerjaanEnd.Time = startTime.AddHours(theHoursToAdd); ...
Use DataSource map function. http://js.devexpress.com/Documentation/ApiReference/Data_Library/DataSource/Configuration/?version=14_2#map dataSource = new DevExpress.data.DataSource({ store: inputArray, map: function (item) { return { key: item.label, items: item.elements }; } }); See following fiddle http://jsfiddle.net/tabalinas/bjqmbume/...
visual-studio,devexpress,toolbox
Please see the Visual Studio Support History help topic. According this document, DevExpress components of version 12.2 cannot be used with Visual Studio 2013. The cause of such limitations is that newer Visual Studios have a different registration mechanism for add-ins, thus you can't use the "Add new item" add-in....
.net,winforms,devexpress,xtrareport
This feature was implemented in v2014 vol 1.3.: An integer RowSpan property has been introduced for the XRTableCell class. This property specifies the number of merged cells. So, in this version you can create a table like this: In your version the only one way is to create additional tables...
I solved it. If you want show correct date you need datetime variable for it. No string as I have....
Simply replace 'AdvOfficeStatusBar1.Panels[0].Text' with AdvOfficeStatusBar1.Panels[0].Text The former is a string literal, the latter is the expression that yields the status bar text....
As it turned out, I've been using the wrong approach. You have to use CellTemplate instead of the EditSettings: <dxg:GridColumn.CellTemplate> <DataTemplate> <dxe:ButtonEdit Name="PART_Editor" AllowDefaultButton="False"> <dxe:ButtonEdit.Buttons> <dxe:ButtonInfo Content="X"/> </dxe:ButtonEdit.Buttons> </dxe:ButtonEdit> </DataTemplate> </dxg:GridColumn.CellTemplate> ...
javascript,webforms,devexpress
Yes, it was a bug in the control, it could not start document processing/calculating while it is invisible (or is placed in an invisible container). This bug is fixed in the context of this ticket: https://www.devexpress.com/Support/Center/Question/Details/T198005. The hotfix is already requested and I believe it will be available in the...
asp.net,devexpress,aspxgridview
I found the solution. GridViewSettings.Images.HeaderFilter.Url property to customize the Header Filter image
Simple example for using a non-anonymous class. public class MyLovelyClass { public Int32 Number { get; set; } public bool Selection { get; set; } } var packs = from r in new XPQuery<Roll>(session) select new MyLovelyClass() { Number = r.number }; gcPack.DataSource = packs; ...
Propably I found the solution. There is a problem with devexpress model binding: https://www.devexpress.com/Support/Center/Question/Details/T124733
knockout.js,devexpress,phonejs
Almost everything is correct, just remove the condition if (loadOptions.refresh) in the load method. See fields of the loadOptions in the docs http://js.devexpress.com/Documentation/ApiReference/Data_Library/CustomStore/Configuration/?version=14_2#load I would also use map function of dataSource instead of manual mapping (see example) var dataSource = new DevExpress.data.DataSource({ load: function (loadOptions) { var deferred = new...
Using Gridview, we can rename the column name at Form_load() event... gridView1.Columns["fileName"].Caption = "Your custom name"; ...
You need to use custom summaries. Handle the ASPxGridView.CustomSummaryCalculate event and implement your logic there. Follow the Obtain Summary Values article to get values of other summaries.
The TabIndex property is not applicable for dock panels. Use the DockManager.ActivePanel property to get or set the currently active dock panel: dockManager1.ActivePanel = dockPanel1; The active dock panel is the one that has focus or contains a control that has focus. When the active dock panel is changed the...
javascript,ajax,asp.net-mvc-5,devexpress
You can't use Razor syntax in external js files. Instead you'll have to use either... The static solution that you tried, '/Home/Client/' Move the entire JavaScript to your view (not recommended) Use a JavaScript variable to store the URL and pass it to the external file: <script type="text/javascript"> var myPath...
user-interface,knockout.js,devexpress,tooltip,devextreme
You could use observable content for tooltip... <div data-bind="dxTooltip: { visible: visible, target: target }"> <div data-bind="text: tooltipContent"></div> </div> var vm = { tooltipContent: ko.observable() //..... }; I've made a sample here http://jsfiddle.net/p3ret0vx/17/...
vb.net,formatting,repository,devexpress
Problem no. 1.: your edit mask is dd.mm.yyyy. mm stands for minutes, you have to use dd.MM.yyyy. If this doesn't help, set the column's display format as well. Code in C#: columns[0].DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; columns[0].DisplayFormat.FormatString = "dd.MM.yyyy"; ...
You need to deploy the DevExpress.ExpressApp.Xpo.v14.2 assembly as well. Not only DevExpress.Xpo.v14.2.
The DevExpress support team provided me with the following solution: Private Sub gridview_CustomColumnDisplayText(sender As Object, e As DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs) Handles gridview.CustomColumnDisplayText If e.Column.FieldName = "CloseDate" Then Dim strDate As String = DateTime.ParseExact(e.Value, "yyyyMMdd", Nothing).ToString("MM\/dd\/yyyy") e.DisplayText = strDate End If End Sub ...
asp.net,gridview,user-controls,devexpress,datasource
You need to create two public properties in the user control. Then set them when you want to access the user control and then use that properties to bind the datasource. Example- namespace projects.WebApplication.mySystem.Controls { public partial class myusercontrol: System.Web.UI.UserControl { public event EventHandler Close; public event EventHandler Show; public...
The answer for my particular task is to use a calculated field. Using the instructions found here, create a calculated field (returning the data type that you want it to be if it's what you don't want (for example, if 50 meant "Paid" and 90 meant "Complete", use the expression...
The same issue is already discussed at DevExpress Support Center: Tabbing issue in CellTemplate. Thus, you can use the solution provided by the DevExpress Support Team. The main idea of this solution is in custom handling of the TabbedView.PreviewKeyDown event: void TableView_PreviewKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Tab)...
Finally I got it working with the help of DevEx support. It seems that a custom dataset serializer is required for dataset that are created on run time to work. Here is the updated code now XtraReport report = new XtraReport(); report.Extensions[SerializationService.Guid] = MyDataSerializer.Name; report.DataSource = MyDataSerializer.GenerateActorMembers(); report.DataMember = "Actor...
javascript,angularjs,devexpress,devextreme
Try to use the following code to define cellTemplate: $scope.onClick = function(cellInfo) { // cellInfo object }; $scope.dataGridOptions = { dataSource: [ { name: "Alex", age: 23 }, { name: "Bob", age: 25 } ], columns: [ "name", { dataField: "age", cellTemplate: function(cellElement, cellInfo) { var $button = $("<button>") .text("Click...
0. Three labels. In report designer set the width of you 2nd label as more as possible: Set the CanShrink, CanGrow, Multiline and WordWrap to true: xrLabel2.CanShrink = true; xrLabel2.CanGrow = true; xrLabel2.Multiline = true; xrLabel2.WordWrap = true; In result you will get something like this: 1. One label with...
Did you attach Devexpress Dll's to application directory?
javascript,asp.net,vb.net,visual-studio-2013,devexpress
I seemed to have fixed the visibility issue. I simple removed the second part of the VB code..... If (Not ClientScript.IsStartupScriptRegistered("showonlyonev2")) Then Page.ClientScript.RegisterStartupScript _ (Me.GetType(), "showonlyonev2", "showonlyonev2('divContactDetails');", True) End If Return End If Now the navigation is better but now getting Null References on other code. The joys of programming!...
You have sourceContainerId option in your code, but in last versions this option has name sourceContainer. Try to replace it and maybe this will help you.
Ok , after a lot of research I seem to have found a solution. It goes like this: Private Sub GridView1_InitNewRow_1(sender As Object, e As InitNewRowEventArgs) Handles GridView1.InitNewRow ' auto increment first column GridView1.SetRowCellValue(e.RowHandle, "COLUMN", GridView1.RowCount + 1) ' I want to start from one End Sub ...
You can set the color and thickness by using ShapeFormat.Outline property of your series objects. Call to ShapeOutlineFill.SetSolidFill method to set the color of your line and use the ShapeOutline.Width property to set the line width. Here is example: chart.Series(5).Outline.SetSolidFill(Color.Magenta) chart.Series(5).Outline.Width = 20 ...
If you need to handle on a client when DevExpress controls finish their callbacks, handle the ASPxClientGlobalEvents.EndCallback event. To access this event, add the ASPxGlobalEvents component onto a form and use its ClientSideEvents. If you use MVC, there is the MVCxClientGlobalEvents class which is an analog of ASPxClientGlobalEvents. The CallBackRouteValues...
c#,wpf,grid,devexpress,gridcontrol
Add Data to your binding: ... <dxg:GridColumn Header="Symbol Subscription"> <dxg:GridColumn.CellTemplate> <DataTemplate> <ComboBox ItemsSource="{Binding Data.SubscribedSymbols}"/> </DataTemplate> </dxg:GridColumn.CellTemplate> </dxg:GridColumn> ... If you using DE controls the better option is using dxe:ComboBoxEdit instead of ComboBox. ... <dxg:GridColumn Header="Symbol Subscription"> <dxg:GridColumn.CellTemplate> <DataTemplate> <dxe:ComboBoxEdit ItemsSource="{Binding...
I think you should be able to run the following: (please bear with me, if the code does not work, due to I'm not familar to ASP) BillTypes b = BillTypes.Electric; AspxListBox alb = new AspxListBox(); alb.Items.Add(BillTypes.Natural_Gas.ToString().Replace("_", " ")); alb.Items.Add(BillTypes.Electric.ToString().Replace("_", " ")); alb.Items.Add(BillTypes.Water.ToString().Replace("_", " ")); alb.SelectedIndexChanged += (ob, ex) =>...
Your application contains the DXGrid. Thus, according to the DXGrid's required Redistributable Assemblies list, the DevExpress.Printing.v14.2.Core.dll assembly contains classes that allows to implement the functionality for DXGrid's printing and exporting based on DXPrinting library.
c#,list,gridview,checkbox,devexpress
You must create a Datatable.The number of columns will be the count of your Analises Then you have to add 1 row for each nID and set the value for each column. Here is a code sample List<nAnalises> lst = new List<nAnalises>(); lst.Add(new nAnalises() { Id = 2, Name =...
.net,wpf,c#-4.0,data-binding,devexpress
The problem was that I had Module derive from TileBarItem so the path wasn't working as intended. New class declaration: public class Module { public string ModuleTitle { get; private set; } public string ImageSource { get; private set; } .... } ...
This is the standard context menu of the Windows EDIT control, and not part of the Delphi code behind the control that you are using. In other words, the Delphi control that you are using is wrapping some system provided functionality. I suppose that it would be possible to remove...
You can always use methods of your data source to add, delete and modify individual rows if the data source supports these methods: BindingList<Person> personsList = new BindingList<Person>(); gridControl.DataSource = personsList; //... personsList.Add(new Person("John", "Smith")); // !!! Or you can use the ColumnView.AddNewRow method to add a new row to...
c#,wpf,drag-and-drop,devexpress,uielement
You may have incompatible references. Update the references, this should work.
it's because UploadControl_FileUploadComplete is a callback event handler, not a postback one. as a work-around, try saving combobox selection in a session variable, like this: protected void ApplicationList_SelectedIndexChanged(object sender, EventArgs e) { ASPxComboBox cb = (ASPxComboBox)sender; ASPxGridCustomers.FilterEnabled = true; ASPxGridCustomers.FilterExpression = "( applicationid = " + cb.SelectedItem.Value + ")"; Session["cbSelectedValue"]...
You can use RepositoryItemLookUpEdit.GetDisplayValueByKeyValue method to get the display member from known value member. And you need to handle GridView.CustomSummaryCalculate event. Here is example: Private values As List(Of String) Private Sub dgView_CustomSummaryCalculate(sender As Object, e As CustomSummaryEventArgs) Handles gridView1.CustomSummaryCalculate If Not e.IsTotalSummary Then Exit Sub End If Const fieldName$ =...
What your updated q is asking for is straightforward and as usual with Devex stuff, it's all in the OLH as long as you can find your way into it. A way to find which rows currently match the filter is to use the cxGrid1DBTableView1.DataController.FilteredRecordIndex[] property. You can then find...
c#,gridview,devexpress,cell,identify
You can use GetRow() method to get row: var row = TaskGridView.GetRow(1) as YourModel; using ValueChangedEvent: private void TaskGridView_CellValueChanged(object sender, CellValueChangedEventArgs e) { if (e.RowHandle < 0) return; var row = TaskGridView.GetRow(e.RowHandle) as YourModel; } for speicific column you can do: private void TaskGridView_CellValueChanged(object sender, CellValueChangedEventArgs e) { if (e.RowHandle...
You need to use another DataTable variable to hold values for your second form and use this variable as GridControl.DataSource instead of BindingSource. When the user clicks Save button you need to update your details table. Here is example: 0. Create DataTable for your second form: var secondFormTable = new...
delphi,devexpress,delphi-xe7,tcxgrid
Got it : procedure TARCHIVE.cxDateEdit1PropertiesChange(Sender: TObject); begin with cxGrid1DBTableView1 do begin if DataController.DataSource.DataSet.Locate('FOR_DATE',cxDateEdit1.Date, [loPartialKey]) then begin ViewData.Records[DataController.FocusedRowIndex].Expand(True); end else begin ShowMessage('No entries for desired date.'); end; end; end; ...
mvvm,knockout.js,devexpress,devextreme
Looks like you have an error in your code. There is no items variable that you try to access. var items = [ { text: "Tea" }, { text: "Coffee" }, { text: "juice" } ]; var viewModel = { items: items, defaultvalue: ko.observable(items[2]) }; See working fiddle: http://jsfiddle.net/tabalinas/tfvtq9y0/...
entity-framework,devexpress,xaf
You can modify model nodes in code using Generator Updaters. This approach is not related to EF or Generics, however you can trigger this behaviour according to View ObjectType. You may find the following references helpful: Devexpress xaf ungroup layout of inherited class. (programmaticaly) How to: Create Additional ListView Nodes...
c#,.net,user-interface,devexpress
All Ribbon items are subscribed to the bbi_ItemClick event handler on the frmMain form. This handler calls the ButtonClick method of a current module (Mail for the "New Button"). There an instance of the Message class is created and passed to the frmEditMail form which represents the form you are...
c#,devexpress,devexpress-windows-ui
Let's define the enum [Flags] public enum BeverageInfoEnum { Water = 1 << 0, HasAlcool = 1 << 1, Wine = 1 << 2, Soda = 1 << 3, Warm = 1 << 4 } The [Flags] attribute is mandatory here. Values can be mixed. The DevExpress TokenEdit has a...
Devexpress doesn't supports skinning of regular winforms controls. You need to use their own controls to get the application skinned/themed. For TextBox you use TextEdit, for Button you use SimpleButton and so on. But you can read the skin element colors at runtime and apply yourself. Sample code from the...
asp.net,devexpress,asp.net-ajax
I found the problem. The page is inherit our own base class that has a custom implementation of FindControl.
Please, take a look at the Column Header Panel help-article - you can control this panel's visibility via the TreeListView.ShowColumnHeaders property. P.S. Further, I suggest you to use the Visual Elements documentation-section that describe the control elements that you see on screen. Each sub-topic of this section contains a screenshot...
The best way is to handle the server-side Init event of your controls and set their ClientInstanceName in code. In the same way, you can write your JS functions to handle client-side events. Take a look at the The general technique of using the Init/Load event handler article on DevExpress...
So I suppose I should have gone with my gut here and just circumvented DevExpress altogether. The blow code calls a regular javascript function and the solution from there is rather easy. <dx:GridViewDataTextColumn FieldName="InventoryBank" Caption="InventoryBank" Width="100px"> <EditItemTemplate> <dx:ASPxSpinEdit runat="server" NumberType="Float" DecimalPlaces="1" AllowNull="true" AllowMouseWheel="true" AllowUserInput="true" MinValue="-999999999" ID="lblInventoryBank" Value='<%# Bind("InventoryBank") %>' Width="100px"...
I have got an answer from DevExpress support. PLinqInstantFeedbackDataSource is a read-only data source. If you wish to edit data directly in the grid, bind your source collection to the GridControl.ItemsSource property without using an Instant Feedback data provider. ...
Because it is hard to extract column's information from ArrayList, I suggest you use generic List<T> instead (or BindingList<T> if you want to track element's changes): List<dataSourceEntry> dataSource = new List<dataSourceEntry>(); foreach(FileInfo element in dir.GetFiles()) { dataSourceEntry item = new dataSourceEntry(); item.fileCreateDate = element.CreationTime.Date; item.fileName = element.Name; item.check = true;...
You can use XtraTabControl.SelectedTabPage property to get the current tab page. If xtraTabControl1.SelectedTabPage Is XtraTabPage2 Then 'Do something End If But if you want to get current tab page in XtraTabControl.SelectedPageChanging event then you can use e.PrevPage property. Here is example: Private Sub XtraTabControl1_SelectedPageChanging(ByVal sender As System.Object, ByVal e As...
c#,winforms,graphics,devexpress
int right = (int)(left + width * value); This code calculates the bar length correctly only if the value is between 0 and 1. If values are between 0 and 100 or between 0 and 10, you need to divide the result of multiplying by 100 or 10 correspondingly. int...
.net,vb.net,datagridview,devexpress
I finally managed to do it in the following way! you need to handle two events: GridView.CellValueChanged GridView.CustomDrawCell You need to keep track of every changed cell's indices. So, we need a List Create a class and three fields in it. Public Class UpdatedCell 'UC means UpdatedCll Public Property UCFocusedRow...
I tried adding some html at the bottom of the page, but that seems to break some button functionality A partial view with a grid should contain only the grid. It can't contain other elements. Remove those HTML tags you have from the grid's PartialView to resolve this problem....
.net,vb.net,devexpress,xtragrid
According to documentation: Cell values are edited by editors inherited from the BaseEdit class. Once a user starts to edit a cell value, the cell's editor is created. When editing is complete, the cell editor is destroyed. Thus, there can be only one active editor instance at any moment. So,...
I guess you see ellipsis instead of your image. It's because you set the EditorButton.Kind property to ButtonPredefines.Ellipsis. You need it to be Glyph. see the possible values at ButtonPredefines Enumeration. Dim image As System.Drawing.Image = System.Drawing.Image.FromFile("C:\carl\addAccount.png") Dim buttonAdd As New RepositoryItemButtonEdit buttonAdd.TextEditStyle = TextEditStyles.HideTextEditor buttonAdd.Buttons(0).Kind = ButtonPredefines.Glyph buttonAdd.Buttons(0).Image =...
javascript,jquery,callback,devexpress,each
I think you could work with deferred objects. Create an array with deferred objects for each callback RVGridCB and inside of the callback call dfd.resolve(). In the done callback $.when.apply($, deferred_arr).done(function () ...); you can call doSuccess(...). Here is a deferred example with timeouts to simulate the asynchronous events. You...
There are several problems in your code. You are closing the connection at the end of your cycle and in the next iteration your getting the error with closed connection. So, you must open your connection before execution of command. Also you need to use GridView.DataRowCount property instead of GridView.RowCount...
vb.net,devexpress,export-to-csv,xtragrid
To get this working, you need the extra line for BindingContext as below: (ForceInitialize is not essential in this context, but in other contexts - within Form Load for example - it is very helpful - so I left it intact) Dim grdGrid As New XtraGrid.GridControl Dim gdvGrid As New...
Option 1 If you use the code below, in your code behind, you can see the result. protected void Page_Load(object sender, EventArgs e) { ddl_time.DataSource = GetDataSource(); ddl_time.DataBind(); } private DataTable GetDataSource() { //datatable definiton var dtSource = new DataTable(); dtSource.Columns.Add("Id", typeof(int)); dtSource.Columns.Add("FirstName", typeof(string)); //fill sample rows dtSource.Rows.Add(1, "Item One");...
forms,grid,devexpress,pivot,customization
You need to use PivotGridControl.ShowingCustomizationForm event and PivotGridControl.ShowCustomizationForm event. In PivotGridControl.ShowingCustomizationForm event you need to get CustomizationForm object from CustomizationFormShowingEventArgs.CustomizationForm property and use this object in PivotGridControl.ShowCustomizationForm event to customize the customization form. To get the filter area and other area objects, you need to use CustomizationForm.BottomPanel property and its...