Quantcast
Channel: Our ComponentOne » All Posts
Viewing all 14170 articles
Browse latest View live

Reply To: C1PropertyGrid.ValueChanged not fired on PropertyChanged event

$
0
0

Thanks for the code. I now see why the event isn’t working on C1PropertyGrid.
You should manually Raise the ValueChanged event on the control. See below modified code:-

Public Class PGEditor_Percent
    Inherits TextBox
    Implements ITypeEditorControl
 
 Dim pa as PropertyAttribute

    Public Sub Attach([property] As PropertyAttribute) Implements ITypeEditorControl.Attach
        Dim oBinding As New Binding([property].MemberName & ".DisplayValue")
        oBinding.Mode = BindingMode.TwoWay
        Me.SetBinding(TextBox.TextProperty, oBinding)
        pa=[property]
    End Sub
 
    Public Function Create() As ITypeEditorControl Implements ITypeEditorControl.Create
        Dim retval As New PGEditor_Percent
        Return retval
    End Function
 
    Public Sub Detach([property] As PropertyAttribute) Implements ITypeEditorControl.Detach
    End Sub
 
    Public Function Supports([Property] As PropertyAttribute) As Boolean Implements ITypeEditorControl.Supports
        Return ([Property].PropertyInfo.PropertyType Is GetType(Percent))
    End Function

 Protected Overrides Sub OnTextChanged(e As System.Windows.Controls.TextChangedEventArgs)
        If (pa IsNot Nothing) Then
            Dim pc As New System.ComponentModel.PropertyChangedEventArgs(pa.PropertyInfo.Name)
            RaiseEvent ValueChanged(Me, pc)
        End If
    End Sub
 
    Public Event ValueChanged(sender As Object, e As ComponentModel.PropertyChangedEventArgs) Implements ITypeEditorControl.ValueChanged
 
End Class

Regards


Reply To: C1PropertyGrid.ValueChanged not fired on PropertyChanged event

Need API to Export grid data to excel

C1DataGrid Cell

$
0
0

Hi.
I have following problem.

In my DataGrid I have a DataGridTextColumn. In the binding I have a converter.
I write one letter and the Converter ConvertBack an enum and this should convert the enum ToString that the text of the cell is the Enum.ToString.

But now there is no text in the cell!
And now I debug on CommittedEdit and if I look to the cell the text is ok. But nothing is shown on the UI.

I included you a picture.

Thanks

LoadingRows event for Unbound mode

$
0
0

Looking for an event to notify when a row is loaded to the grid, there is "LoadingRows" event but it’s not working in Unbound mode, I am doing data virtualization using Unbound flex grid. I want events when a row loaded to grid and when removed from grid, so I can load data from server for visible rows on the grid

I would be great if anyone has some workaround for this, Please help

Reply To: Width property problems

$
0
0

That was also my assumption, but it doesn’t work. With serverratio=15 hardcoded, I get:

- Creating the file on an IIS server with PixelsToTwips=15, opening resulting file on same machine where it was created: 106 pixel
- Creating the file on an IIS server with PixelsToTwips=12 (using hardcoded serverratio=15), opening resulting file on same client as above: 84 pixel.

So, no, it does not work. We have to be missing something.

Reply To: Upgrading components from v2.0.xxx to v4.0.xxx

$
0
0

Hello Alexey,

Please refer to the attached text files which contains the changes in the controls from 2007-v1 to 2013-v1.

As such, there is no major change in terms of object model of the control but yes, there have been many bug fixes, new features have added etc. over period of time. You may upgrade the application and if you face any issue in the process then do let me know.

Thanks,
Richa

Reply To: LoadingRows event for Unbound mode

$
0
0

Hello,

LoadingRows and LoadedRows event only fire when the Grid is in bound mode. I would suggest you to check if C1FlexGrid.Rows.Count increases or decreases for Add and Remove.

Thanks,
Deepak Sharma


Reply To: MovingAverage line

$
0
0

Hi C1_UpkarS,
Thanks for your answering. I did as you suggested in Excel, and i found that the plotting is the same. I didn’t know that in excel it looks like what i have .
Thanks

DataGrid group indention / shifting not correct

$
0
0

Hi.

I’m using the DataGrid with grouping by CollectionViewSource via xaml. And the grouping is correct, but the view is sometimes (often) bad. The data rows are not indented or shifted. It looks like the group column (first column in grouped grid, which has no content) has no width for the data rows. And if one manually resize the group column, the data rows "snap" in their correct shifting. See attachments "Wrong-Indention" and "Correct-Indention" for an example.
What can I do to get the right indention? Is theirs a way to tell the grid to rezise the group column, if it has the widht zero? Or another workaround to handle this?

Best regards,

Sascha

Set the C1FlexGrid cell backcolor

$
0
0

Hi!

This is only an example, but how do I generate a display where cell in row:0 column:0 displays blue and cell in row:1 coloumn:0 displays red?

I used VB.Net 2005 for the code:

With C1FlexGrid1
Dim NewStyle As C1.Win.C1FlexGrid.CellStyle
NewStyle = .Styles.Add("NewStyle")
NewStyle.BackColor = System.Drawing.Color.Blue
.SetCellStyle(0, 0, NewStyle)
NewStyle.BackColor = System.Drawing.Color.Red
.SetCellStyle(1, 0, NewStyle)
End With

It only displays both cells as red color. What should I do to be able to display the appropriate result?

Thanks!! :D

-> Nico

Reply To: Upgrading components from v2.0.xxx to v4.0.xxx

$
0
0

Thank You very much for Your assistance!
The attached files are really useful.

Reply To: LoadingRows event for Unbound mode

$
0
0

Deepak,

That’s true, but I want some notification for Unbound mode when rows loaded or removed from Grid UI, In other word when rows comes in visible area or goes out from visible area.

I am adding empty rows to the grid say 1000 rows, but only 2o rows will be visible at a time, so when user scroll down some other rows will be visible / loaded at bottom and some rows visible removed from top, I want notification for those.

Reply To: Filterbar focus on startup

$
0
0

Hello,

DataField property is automatically assigned value when you bind a datasource to the TrueDBGrid. I am not sure how are they blank in your application. Could you please let me know how are you binding the data to the grid.

Further, I was not able to replicate the issue at my end with the latest version of TrueDBGrid i.e. v4.0.20132.61308. Please have a look at the attached sample used for testing. I would request you to test the issue with the latest version, which you can download from the following link:

http://prerelease.componentone.com/dotnet40/C1TrueDBGrid/2013-T2/

However, if you still face the same issue I would request you to modify the attached sample to depict your issue so that I can replicate the issue at my end and debug it further.

Thanks,
Manpreet Kaur

Reply To: Fixed Style and VisualStyles

$
0
0

HI,

With ref to your observations and point One, this is correct you would need to reset the BackColor, Forecolor and the Borders. So that when the grid is painted, the visual style of the ribbon is applied to it.

For the problem Two, I think it depends on the requirement as to whether it is needed to render the contents as per the System renderer or the visual style renderer, say for e.g the code could want to draw a custom marker in a cell. In this case, it should call e.DrawCell() to draw the entire cell, and later add the note marker. However if the focus is simple on the same set of colors and styles as used in the grid’s visual style then you may use the Grid renderer as per the visual style of the grid

The problem Three has been Escalated to DEV as an enhancement as in the FP case #29902, as currently there is no ETA on the same.

For the Fourth one, to add "OnAmbientChangedVisualStyle" event that is fired whenever the visual style of the gird is changed, I’d look into this and see if this can be forwarded as an enhancement to DEV.

Regards,


Upgrading to Word 2010 with D2H Already Installed

$
0
0

We have Doc-To-Help installed on two Windows 7 PCs and will be upgrading from Office 2007 to Office 2010 on each PC. Since these are enterprise installations, we will be unistalling Office 2007 and installing Office 2010.

Has anyone done this? Will we need to uninstall and reinstall Doc-To-Help? If not, do we need to save the D2H templates (C1H_…) somewhere before uninstalling, or perform any other steps to make this work?

How to make RibbonNumericBox spin only, no keyboard edit

$
0
0

I need a to have the field allow input via spin up/down buttons only. How do you disable keyboard input?

I am looking for something similar to setting the Combo box to DropDownList instead of DropDown.

Can this be done?

Reply To: Delete empty paragraph before pasting formated text from word

$
0
0

Its not that easy. It is even possible to copy Word table to C1editor? Here is my test file. If I select all in Word (ctrl+a) and paste it into the editor, then it:
a.)disappear immediately after paste
b.)if text doesn’t disappear, than after switching into the source mode, it will throw exception:
Value cannot be null.
Parameter name: markupPointer

Get multiple selected values

$
0
0

Hi,

I am using C1 List for winform(version 4.1.2).

List have a display member and value member set up and can select more than one item at a time.

I am not sure how to get all the selected values (value member) from selected items

Any help?

Thanks

Reply To: Ignoring GUIDs

$
0
0

Hello David,

If you do not want the GUID to be spellchecked, just checked 'Ignore words with numbers’ option and guid will not be spellchecked.

Let me know if this doesnt work for you.

Thanks,
Richa

Viewing all 14170 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>