Jeff,
I would suggest you to handle the GettingCellValue event of template column to return the value. This event is used to provide the cell value to export.
Thanks,
Deepak Sharma
Jeff,
I would suggest you to handle the GettingCellValue event of template column to return the value. This event is used to provide the cell value to export.
Thanks,
Deepak Sharma
Hi ,
Calling update method in chart throws this exception . any body have idea to fix this.
My sample data is like this below
double[] valst = new double[] { 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6 };
double[] vals = new double[] { 12.4, double.NaN, 12.503, double.NaN, 12.48, double.NaN, 12.502, double.NaN, 12.4, double.NaN, 12.502 };
//chart.EndUpdate();
//chart.BeginUpdate();
XYDataSeries ds = new XYDataSeries()
{
XValuesSource = valst,
ValuesSource = vals,
ItemsSource=valst,
ConnectionStrokeThickness = 1
};
chart.EndUpdate();
Message: Unhandled Error in Silverlight Application Attempted to divide by zero. at System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawLine(Int32[] pixels, Int32 pixelWidth, Int32 pixelHeight, Int32 x1, Int32 y1, Int32 x2, Int32 y2, Int32 color)
at System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawPolyline(WriteableBitmap bmp, Int32[] points, Int32 color)
at System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawPolyline(WriteableBitmap bmp, Int32[] points, Color color)
at C1.Silverlight.Chart.Renderer2D.RenderSeriesFast(RenderContext rc, DataSeries ds, IPlotElement defel, List`1 objs)
at C1.Silverlight.Chart.Renderer2D.C1.Silverlight.Chart.IView2DRenderer.Generate()
at C1.Silverlight.Chart.ChartViewport2D.CreateDataObjects(IRenderer renders)
at C1.Silverlight.Chart.ChartViewport2D.RebuildTree()
at C1.Silverlight.Chart.ChartViewport2D.UpdateLayout(Size arrangeSize)
at C1.Silverlight.Chart.ChartView.Rebuild(Double w, Double h)
at C1.Silverlight.Chart.C1Chart.RebuildChart()
at C1.Silverlight.Chart.C1Chart.InvalidateChart()
at C1.Silverlight.Chart.C1Chart.b__0()
Regards
Muthusankar.M
Deepak,
Thank you for your response.
Actually I’m not using template columns, I just assign a "complex" (a grid and a label inside the grid) control hierarchy to the column’s header property instead of the basic string value.
DOTY_Grid.Model.utils.CustomHeaderGrid grid = new DOTY_Grid.Model.utils.CustomHeaderGrid(); grid.Path = e.Column.Binding.Path.Path; TextBox txtBoxHeader = new TextBox(); Converters.ApplyColumnHeaderStyle(grid, txtBoxHeader, modelColumn.HeaderStyle); txtBoxHeader.SetBinding(TextBox.TextProperty, headerBinding); txtBoxHeader.KeyDown += new KeyEventHandler(txtBoxHeader_KeyDown); grid.Children.Add(txtBoxHeader); e.Column.Header = grid;
Except that, everything else (including the column type) is being taking care of by the Grid.
Do you have another way to solve my problem in this context ?
Thanks,
-jeff.
Hello,
thank you for the code, it works as expected.
Also sorry for the late reply, I didn’t get a notification.
I am unable to reproduce the issue on IE 10. Clicking on the buttons does changes the position of the control.
Can you trying toggling the compatibility view of IE?
Thanks
Hi
I am using the c1gridview is my asp project. In the development environment it works fine. When I publish it and load a page with the control on it, it tells me its an evaluation version. I have put licence.licx in all the obvious places but still get this message. What can I do?
Hi,
I am testing in IE 9, Mozilla and and Chrome.
It’s not working in any.
Regards,
Balu
The c1FlexGrid1.Columns[0].FontStyle can set FontStyles.Italic, FontStyles.Normal and FontStyles.Oblique, but can’t set to System.Drawing.FontStyle.Strikeout.
How to set System.Drawing.FontStyle.Strikeout to c1FlexGrid1.Columns[0].FontStyle.
I want to use the C1ComboBox in C1PropertyGrid, but how can I bind the C1ComboBox.ItemSource at behind code.
Using the Olap control I can defer changes to the view with OlapEngine.Update
But if I want to change a lot of records on the DataSource without change causing a recalculation, how do I do that?
For instance, the word control after ThisControl is marked as repeated:
.. ThisControl control ….
yet, the word is not really repeated.
OK. I assume that you have to ask the "Progress 4GL" guys how to read a UTF8 stream.
A project/solution level dictionary would be very helpful.
A quick solution might be an option to use either the global dictionary or a 'local’ dictionary defined for the solution.
A more comprehensive solution would allow defining the dictionary for each project with the option of adding words to the global or local dictionary.
Hi,
Environment:
Win7
C1.Win.C1Input.2.dll version 2.0.20112.33265
C1.Win.C1TrueDBGrid.2.dll version 2.0.20112.61272
I’m using a custom editor (that I assign programmatically to a TrueDB column) like this:
foreach (Split split in defaultGrid.Grid.Splits) { C1DisplayColumnCollection dcc = split.DisplayColumns; C1DataColumn DC_DEFAULT_VALUE = defaultGrid.Grid.Columns[DF_DEFAULT_VALUE]; int displayColumnDefValIndex = dcc.IndexOf(DC_DEFAULT_VALUE); C1DisplayColumn c1dcDefVal = dcc[displayColumnDefValIndex]; C1NumericEdit c1ne = new C1NumericEdit (); c1ne.NullText = ""; c1ne.EditMask = "###,###"; c1ne.FormatType = FormatTypeEnum.CustomFormat; c1ne.EditFormat.CustomFormat = "###,###"; c1ne.DisplayFormat.CustomFormat = "###,###"; c1ne.ParseInfo.CustomFormat = "###,###"; c1ne.ParseInfo.NumberStyle = NumberStyleFlags.Currency; c1ne.ParseInfo.FormatType = FormatTypeEnum.StandardNumber; c1ne.ParseInfo.NumberStyle = NumberStyleFlags.Currency; c1ne.Update(); c1ne.Location = new Point(100, 100); c1ne.Name = "editor_pe"; c1ne.Size = new Size(100, 20); c1ne.TabIndex = 0; c1ne.Tag = null; c1ne.VisibleButtons = DropDownControlButtonFlags.None; c1ne.EmptyAsNull = true; … }
The type of the DC_DEFAULT_VALUE display column data field is Decimal. I expect the field to show/handle values from -999,999 to +999,999 Well, when click on a TrueDBGrid cell under the DC_DEFAULT_VALUE column and just type the minus sign (-) and tab out to the next cell, I get zero (o) in the cell?!? Once I get a zero in the cell, I can’t even delete this via Backspace and/or Delete buttons! This must be a bug since I specify EmptyAsNull = true;
Please, help me with this issue. Thanks.
Regards,
George
I have a grid set up for DragDrop operations just like the sample. The sample works great. However, in my app, it works slightly different and I don’t see why.
In the sample, you can easily drag and drop a textblock to a different row/column in the grid and it moves just fine.
In my app, I can drag around the grid, but it only lets me drop over an existing element in the grid. This is fine, but there are the areas of the grid that are empty. When I drag over these areas, the DragLeave event is fired, and the drop operation is not allowed, and the orange drag border is dimmed. In other words, it thinks it is not an area where it should be dropped.
_dragDropManager.RegisterDropTarget(_uiRoot, true);
The _uiRoot is the grid. This is the code that registers it.
_dragDropManager.RegisterDragSource(border, DragDropEffect.Move, ModifierKeys.None);
Any suggestions appreciated.
Greg
To clarify, what I mean during the drag operation, if the grid has an UIElement in the grid, such as a TextBlock, it sees that as a valid drop target. But if a grid cell is empty, it sees it as not a valid drop target and doesn’t let the drop occur.
Hi,
Please check the attached example, its connecting to a test mysql server on my servers so that you can see what i’m saying, about the problem i’m facing.
No thats not the case, those two things are unrelated.
I have several grids in my application, which do different jobs.
Hi.
I am facing a problem with specifing rows in XAML, when working with celltemplates
My pasted XAML only results in this blank space... tested with IE10 and FF20.0.1 See attached File instead
With this XAML the Rows in the C1FlexGrid.Rows collection do not display the columns I specified threw the celltemplates. Once I use the ItemsSource property and populate it with an IEnumerable it works.
How can let C1FlexGrid display the columns correclty when declaring the rows in XAML?
Hope you can help me out.
Thanks in advance.
Hi, I have problem with calculated field with CanGrow = True on multipaged document. On the first page is everything OK, but on second one it ignores Left property and render itself same as with Left = 0. I tried place a Line on the left side of the Field, but then it appears same as with KeepTogether = True, which totaly screw layout. You can see this in attached example on page 3.