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

Reply To: Sizeable content of panel

$
0
0

Hi Markus,

It seems that you want to resize the controls placed on a form as the form is resized to a minimum possible level. You can use C1Sizer control to achieve the same and it will resize the controls accordingly. Please refer to the product sample AddControls which can be downloaded from the link given below:

http://www.componentone.com/Studio/Pages/Samples/winforms-addcontrols

If issue still persists then, please share the screenshots/videos representing your desired behaviour and the behaviour you are currently getting.

Thanks,
Akshay


Reply To: FlexGrid "no data" message

$
0
0

Thanks, I will be interested to hear if they have a solution.

Reply To: C1Live Initialization Error

$
0
0

This has now been fixed with the latest build

Reply To: C1Live Initialization Error

$
0
0

And where do we get this build? I was just given a link by Support, but the version they linked to is the same I installed a few months ago under the original Win 10. My machine was hit by the upgrade and now I have the same message again. I have not tested the same install as I suspect it will not work, and I have to head out of town. Will test next week, but my guess is that since I am using the same...

Holy (fill in the blank). I just tried it again and it flashed and then I saw build 52225 for a moment then 52226 which appears to work. Go figure...

Reply To: C1Live Initialization Error

$
0
0

The new build downloaded automatically when I ran the C1Live utility again. C1 have stated in another post about this issue that they have now fixed the problem.

Reply To: C1Live Initialization Error

Reply To: C1TextBox.Modified not set properly

$
0
0

Hi,
I could reproduce the problem and have asked the development team for their insights on this. Will get back to you once there is any information from them.

Thanks,
Sonu

Reply To: Extended part of dropdown not populated with columns.

$
0
0

Hi Nilay,
sorry for delayed answer, but it was really hard to reproduce the problem. It seems, that in most cases, putting new combo on a form and setting it up from scratch doesn't cause the problems (however in my application I was able to get it a couple of times). So this is how I prepared a sample: there are 2 forms, on the first one I put a combo, prepared it in designer and then I copied PropBag to resx file and an InitializeComponents section from one of my application forms, where I encountered a problem. The second form is a copy of the first one, but I did the following: I entered a combo designer, on Split tab I changed SpliSizeMode from Scalable to Exact - that was enough to get the dropdown part look correctly. Then I set SplitSizeMode back to Scalable and it still looks good. It seems that changing SplitSizeMode helps. Unfortunately it works only in design mode, I tried to change it in code in runtime, but it has no effect. I have a lot of 'old' combos im my application, so I wouldn't like to correct them all manually. Please try to correct the problem or provide a workaround.
Regards,
Peter


Reply To: Setting RibbonComboBox SelectedIndex

$
0
0

Please note, I could not replicate the issue at my end using the latest 2016 V2 build. In case you are working with any older version, please check the behavior with the latest build of WinForms which can be downloaded from the link below:
http://prerelease.componentone.com/dotnet20/c1winforms/2016-t2/C1WinForms.2_2.0.20162.188.zip

http://prerelease.componentone.com/dotnet40/c1wpfreport/2016-t2/C1WPFReport_4.0.20162.188.zip/b

Please find a sample application attached for implementing the same.
Hope it will solve the problem. If it does not, please share a small sample application for replicating the said issue so that I can assist you further accordingly.

Thanks,
Sonu

Reply To: Cannot Assigne Data Source to new C1FlexReport

Reply To: C1Live

Reply To: C1Live Initialization Error

How to remove dotted border around selected cell?

$
0
0

Hello! Every time I select a cell it receives a dotted border. How can this be removed?

I have tried:

flexgrid.Styles.Normal.Border.Style = BorderStyleEnum.None;
flexgrid.Styles.Focus.Border.Style = BorderStyleEnum.None;
flexgrid.Styles.Highlight.Border.Style = BorderStyleEnum.None;

I have also created a CellStyle with border.style = none and I apply it to any cell that gets selected but the dotted border remains.

How can this be accomplished? I will provide more details if necessary.

Thanks,

-Trevor

Reply To: Dividing the grid using splits for specific condition

$
0
0

Hi Sonu,

I tried the above code but it doesn't work for me. I want data on three splits to be operated independently. But all the three splits bind on the same data and operate together.

Anything else that I can try?

C1Numeric Control in Flexgrid column

$
0
0

We are using a C1NumericEdit control in one column of a Flexgrid control. The problem is that when the focus stays within the flexgrid control the Flexgrid and C1NumericEdit validating is performed in one sequence, but in a different sequence when focus is moved outside the flexgrid control.

When staying within the Flexgrid control the flexgrid ValidateEdit is fired followed by the C1NumericEdit Validating and Validated then the flexgrid AfterEdit. If the cursor is moved to a control outside the flexgrid control the sequence is as follows: flexgrid ValidateEdit, flexgrid AfterEdit, C1NumericEdit Validating and then C1NumericEdit Validated. This creates a problem since the functionality of the C1NumericEdit control is bypassed under that scenario.

Is there any way to force the C1NumericEdit validating to be completed before the AfterEdit of the flexgrid, which is the sequence when the cursor stays in the flexgrid control? The field _flex.Editor.Text is a null reference when the C1NumericEdit validating is entered and can't be used in the C1NumericEdit. In this scenario the flexgrid control is bypassing the editing functionality of the C1Numeric Edit.

Any help will be appreciated. We are using version 4.0.2016.2.174.


Reply To: FlexGrid "no data" message

$
0
0

Hi John,

In order to achieve it, we need make a little change with previous solution.

<script>
    function loadedRows() {
        var grid = wijmo.Control.getControl("#FlexGrid1"),
            cv = grid.collectionView;

        if (!cv.sourceCollection || !cv.sourceCollection.length) {
            grid.selectionMode = "None";
            grid.cells.rows.insert(0, new wijmo.grid.Row());

            if (!grid.cells.columns.length) {
                grid.cells.columns.insert(0, new wijmo.grid.Column());
            }
        }
    }

    function formatItem(s, e) {
        var cv = s.collectionView;

        if (e.panel.cellType != wijmo.grid.CellType.Cell || e.col != 0)
        {
            return;
        }

        if (!cv.sourceCollection || !cv.sourceCollection.length) {
            setTimeout(function () {
                e.cell.innerHTML = "no data";
            }, 0);
        }
    }
</script>

<script id="chartLink" type="text/html">
    <a href="/Chart/View?userId={{UserId}}&chartName={{ChartName}}" rel="nofollow">{{ChartName}}</a>
</script>
@(Html.C1().FlexGrid().Id("FlexGrid1")
    .AutoGenerateColumns(true)
    .OnClientLoadedRows("loadedRows")
    .OnClientFormatItem("formatItem")
    .Columns(c =>
    {
        c.Add(cb => cb.CellTemplate(ct => ct.TemplateId("chartLink")).Header("Chart").Width("*"));
        c.Add(cb => cb.Binding("Description").Header("Description").Width("3*"));
    })
)

Thanks.
Ryan

Reply To: C1DataGrid Export Excel

$
0
0

But can I scroll in Code behind when I Export the Grid?
That means, I have to make this for my view and also for Export and then maybe for printing :-( Very bad Situation.

C1.WPF.OLAP issue

$
0
0

Hello,

we get an Random error when we change multiple times the row/Column Data or Filter And all the App crash.
For that I just used your demo:CustomizePage.4.

The problem now is I make multiple Cases on your support but no fix and It's very hard to explain what the problem is regarding the bug random problem.

Regards

Reply To: In designer : can't select individual controls on a form

$
0
0

Hi,

This is very peculiar. I don't see any reason why this should occur if the above suggestions are already implemented. I would have to discuss this with the developer.

~nilay

Reply To: Customsort and Filter with bound c1.wpf.flexgrid.4

$
0
0

Hi,

When using custom sorting you need to render the sorting glyph with your own implementation. This is not handled by the grid. This is by design. You need to create an implementation of CellFactory to achieve this.

Public Class SortCellFactory
    Inherits CellFactory
    Public Overrides Sub CreateColumnHeaderContent(grid As C1FlexGrid, bdr As Border, range As CellRange)
        Dim col = grid.Columns(range.Column)
        MyBase.CreateColumnHeaderContent(grid, bdr, range)
        If (col.Tag IsNot Nothing) Then
            If col.Tag.ToString() = "D" Then
                Dim header As New Grid()
                Dim tb As New TextBlock()
                If bdr.Child IsNot Nothing Then
                    tb = TryCast(bdr.Child, TextBlock)
                End If
                bdr.Child = Nothing
                tb.HorizontalAlignment = HorizontalAlignment.Left
                tb.VerticalAlignment = VerticalAlignment.Center
                header.Children.Add(tb)
                Dim sort As New Polygon()
                sort.Fill = Brushes.Black
                sort.FillRule = FillRule.EvenOdd
                sort.HorizontalAlignment = HorizontalAlignment.Right
                sort.VerticalAlignment = VerticalAlignment.Center
                sort.Points = New PointCollection(New List(Of Point)() From {
                New Point(0, 4),
                New Point(8, 4),
                New Point(4, 0)
            })
                header.Children.Add(sort)
                bdr.Child = header
            ElseIf col.Tag.ToString() = "A" Then
                Dim header As New Grid()
                Dim tb As New TextBlock()
                If bdr.Child IsNot Nothing Then
                    tb = TryCast(bdr.Child, TextBlock)
                End If
                tb.HorizontalAlignment = HorizontalAlignment.Left
                tb.VerticalAlignment = VerticalAlignment.Center
                bdr.Child = Nothing
                header.Children.Add(tb)
                Dim sort As New Polygon()
                sort.HorizontalAlignment = HorizontalAlignment.Right
                sort.VerticalAlignment = VerticalAlignment.Center
                sort.Fill = Brushes.Black
                sort.FillRule = FillRule.EvenOdd
                sort.Points = New PointCollection(New List(Of Point)() From {
                New Point(0, 0),
                New Point(8, 0),
                New Point(4, 4)
            })
                header.Children.Add(sort)
                bdr.Child = header
            ElseIf col.Tag.ToString() = "" Then
                Dim header As New Grid()
                Dim tb As New TextBlock()
                If bdr.Child IsNot Nothing Then
                    tb = TryCast(bdr.Child, TextBlock)
                End If
                tb.HorizontalAlignment = HorizontalAlignment.Left
                tb.VerticalAlignment = VerticalAlignment.Center
                bdr.Child = Nothing
                header.Children.Add(tb)
                Dim sort As New Polygon()
                sort.HorizontalAlignment = HorizontalAlignment.Right
                sort.VerticalAlignment = VerticalAlignment.Center
                sort.Fill = Brushes.Black
                sort.FillRule = FillRule.EvenOdd
                sort.Points = New PointCollection(New List(Of Point)() From {
                New Point(0, 0),
                New Point(8, 0),
                New Point(4, 4)
            })
                'header.Children.Add(sort)
                bdr.Child = header
            End If
        End If
    End Sub
End Class

Please refer the attached sample with complete implementation.

~nilay

Viewing all 14170 articles
Browse latest View live


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