infragistics

True MVVM and third party controls

限于喜欢 提交于 2019-12-09 18:29:48
问题 In a True MVVM model we do not expect any code behind in xaml.cs also we do not expect viewModel to have refernece of view. However all third party controls do not provide good support for True MVVM. In my case I am using Infragistics xamDatagrid control and I want to export its data to excel. The only way I can export data to excel of data grid is by using following code: xamDataGridExcelExporter.xamDataGridExcelExporter xamDataGridExcelExporter1 = new xamDataGridExcelExporter

Controls on WinForm not modifiable in Designer

狂风中的少年 提交于 2019-12-09 18:14:56
问题 I've inherited a project that has been modified in a way that is beyond me to undo. Every single control on the form is not modifiable in the designer except through the Properties window and each control has an icon in the area below (see image) in the section usually reserved for non-visible items (e.g. DataSource). How do I undo this and return the designer to a usable version without wiping it all out and starting over? 回答1: Could the controls be locked? I have run into legacy code in

Cannot select Infragistics controls in WinForms designer

北城以北 提交于 2019-12-08 07:33:33
问题 I just upgraded the Infragistics controls on a project from 2006 to 2011. Now, if I open the designer for a form containing any Infragistics controls, the Infragistics controls appear in a separate panel underneath the form designer, and I am unable to select their counterparts in the design view. If I click on an Infragistics control in the designer, it select the container control instead. However, if I click the control in the lower panel, I can still edit the properties, and Visual Studio

c# Infragistics UltraChart LineChart

拈花ヽ惹草 提交于 2019-12-08 01:59:53
问题 Can someone please provide a simple example of adding a line series to an UltraChart from a data table? The table has time series values (time values on x-axis, measurement (double) values on the y-axis). So far the only examples I've seen where time series are added to the Chart are for a finite set of hard-coded datapoints. I want to be able to fee the data series from a selection in the table. Any thoughts ideas and/or advice is greatly appreciated. Thanks, Ruben. 回答1: Define a Numeric

.Net 4.0 app slower on 64 bit than 32 bit (Profiling and possible solutions) (app is using NetAdvantage)

你。 提交于 2019-12-07 00:13:39
问题 We have got .NET app written in VB .NET 4.0 / VS2010, compiled with all projects set to the AnyCPU setting for both Debug and Release configuration. We have noticed that when this app is run on a 64 bit environment (tested on Windows Server 2003 R2 and 2008 R2) that the app then takes at least double as long (in absolute terms about 25 secs) as opposed to around 6-12 seconds on a 32 bit environment (Win XP and 7) to start up. I should add that the 64 bit systems are powerful servers,

Infragistics xamDataGrid bound to hierarchical data - how to notify grid of changed in second level?

走远了吗. 提交于 2019-12-06 07:40:16
Lets first imagine some domain objects: Customer: Name Phone List of Orders Order: Date Amount My grid is then set up with the following field sets: <XamDataGrid> <XamDataGrid.FieldLayouts> <FieldLayout Key="Customers"> <Field Name="Orders" IsExpandable="True" /> <Field Name="Name" /> <Field Name="Phone" /> </FieldLayout> <FieldLayout ParentFieldLayoutKey="Customers"> <Field Name="Date" /> <Field Name="Amount" /> </FieldLayout> </XamDataGrid.FieldLayouts> </XamDataGrid> This works fine when my list of customers are pre-populated with data. Each customer row gets a +, and when clicked, the row

GIF Animation not working in Windows Form

一笑奈何 提交于 2019-12-06 04:38:18
问题 I have 2 WinForms Form2 uses Infragistics ultraTabControl. On Tab Changing im Showing Form1. In Form1 I have a PictureBox assigned with animated GIF In Form2 I am displaying Form1 like this. Form1 frmOne=new Form1(); frmOne.Show(); Problem GIF is not playing animation. 回答1: Make sure you have your image in the image property NOT THE BACKGROUND IMAGE PROPERTY . That's the mistake I made 回答2: It is working fine for me. I have just dragged a new pictureBox on form and setting image property at

Display rows in multiple columns in Asp.net Gridview

隐身守侯 提交于 2019-12-05 20:32:43
问题 By default each row of a Gridview maps to each row in a datatable or dataset attached to its datasource. But what if I want to display these rows in multiple columns. For example if it has 10 rows, 5 rows each should be displayed in 2 columns side by side. Also can I do this with the Infragistics grid. Is this possible? 回答1: You can use a DataList control instead. It has a RepeatColumns property that you can define the number of columns you want to display. In .NET Framework 3.5, there is an

Converting WPF to Web [closed]

*爱你&永不变心* 提交于 2019-12-05 10:44:09
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . My application is built into WPF using Infragistics control(xaml). I wanted to port the existing app into Web but we don't want to use silverlight(for silverlight we need plugin to be available in our browser and target users will not be

Enabling and disabling of columns in Infragistics UltraGrid

早过忘川 提交于 2019-12-05 03:36:16
I have an Infragistics grid and I want to disable and enable some columns based upon some requirement. I have read some articles that say to use AllowUpdate = DefaultableBoolean.True but it did not work for me. I suppose that when you talk of disabled columns you mean disable editing in these columns. Also you don't specify the language, so I will use C# UltraGridColumn c = grdWork.DisplayLayout.Bands[0].Columns["YourColumnName"]; c.CellActivation = Activation.NoEdit; c.CellClickAction = CellClickAction.CellSelect; The property CellActivation could also be set to Activation.Disabled or