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

Reply To: Print eight charts in one page

$
0
0

Thanks for the reply.

I used SaveImage and DrawImage, the problem is that I have to convert the file I saved from SaveIamge to Image. Any other easy way around?

Thanks,


Reply To: Sort column that have content as "String" type but flexgrid sort it like number

$
0
0

I've tested on unbounded mode as well by assign value to grid directly with code. Below is my code. But it still does not work when I click column header to sort them:

With grdItem
.Rows.Count = 1
.Cols.Count = 3
.Cols(1).DataType = GetType(Integer)
.Cols(2).DataType = GetType(String)

.AddItem("")
.Row = .Rows.Count - 1
.Item(.Row, 1) = 1
.Item(.Row, 2) = "05-510"

.AddItem("")
.Row = .Rows.Count - 1
.Item(.Row, 1) = 2
.Item(.Row, 2) = "05-511"

.AddItem("")
.Row = .Rows.Count - 1
.Item(.Row, 1) = 3
.Item(.Row, 2) = "05-512"

.AddItem("")
.Row = .Rows.Count - 1
.Item(.Row, 1) = 4
.Item(.Row, 2) = "055-10"

.AddItem("")
.Row = .Rows.Count - 1
.Item(.Row, 1) = 5
.Item(.Row, 2) = "055-11"
End With
I expected the list should be sorted in Ascending mode as:
05-510
05-511
05-512
055-10
055-11
But it is sorted as:
05-510
055-10
05-511
055-11
05-512
Even you said the sort behavior is default sort behavior of .NET, I also test it with common control ComboBox in .net and assign the same value list to it and set this ComboBox.Sorted property as true
cboPart.Sorted = True
cboPart.Items.Clear()
cboPart.Items.Add("055-11")
cboPart.Items.Add("05-510")
cboPart.Items.Add("05-511")
cboPart.Items.Add("05-512")
cboPart.Items.Add("055-10")
When I run, the values listed by ComboBox is in the sort order that I expected. So I don't think the sort behavior that I see on flexgrid is the default sort behavior of .NET.
And for the example you send to me, it will take out numerical data only from the cell content and then sort them, but it does not make sense for value that treated as string and contain alphabet and number both. As common sense, when compare 2 string values, on the same position if the text is a letter it should be sorted after the value that with a number. So for the value list of "29", "10a10", "103g", "102", "10ff8" in your example, they should be sorted in ascending as
102
103g
10a10
10ff8
29
not the way that the example shows. So I still think that is problem of flexgrid

Reply To: C1DataGrid and my ICollectionView

c1PDFViewer - Can't print in landscape

$
0
0

I'm having a bit of trouble printing a pdf file in landscape orientation. I'm tried loading from IO.Stream originally, from a file both don't seem to want to print from landscape correctly. I even tried printing the sample STUDIO WPF Edition form C1 and couldn't get their sample to print in landscape. Originally, I wanted to do this programatically, but I can't even do this manually through the viewer.

Appreciate any help.

Reply To: Hosting Windows Form in C1DockControl Problem

$
0
0

Hi Prashant,
Thank you for supporting.
Hope the problem will be fix soon.
Best regards,

@PrashantS said:
Hello,

Thanks for your confirmation. I have escalated this issue to our development team (with tracking id:#150413) for further investigations and will let you know as soon as I get any update from them.

Regards,
Prashant

Reply To: C1DataGrid and my ICollectionView

$
0
0

Hello,

Here is the reply from our development team:

You have set Filter of CollectionView to hide the items. We also set the Filter of CollectionView (DataSource) to apply our filters. So the Filter of CollectionView which set by you in sample will be replaced. To meet the your requirement, we need to add an invisible column which bind the remove field and apply the filter on it. I have updated the sample and attached it. Please refer to the attachment "C1DataGridIssue_Updated.zip".

Thanks,
Prashant

Reply To: Language Dictionaries for SpellChecker?

Reply To: MVC flexgrid and cell template

$
0
0

Hi @AbdiasM,
Your suggestion mostly works for my target.



    function csFlexGrid_ItemFormatter(sender, args) {
        var panel = args.panel,
            cell = args.cell,
            c = args.col,
            r = args.row;

        // we are dealing only with the 'cell' panel
        if (wijmo.grid.CellType.Cell === panel.cellType) {

            // assume default color (for ALL cells backgorund)
            var color = '';

            // apply conditional formatting for 'comparison' column
            if (panel.columns[c].binding === "Rid") {
                var cellData = panel.getCellData(r, c);
                if (wijmo.isNumber(cellData)) {
                    color = cellData > 0 ? 'lightgreen' : '';
                }
            }
            if (panel.columns[c].name === "viewdoc") {
                // to do with template column...
                var item = editGrid.collectionView.items[r];
                if (item.Rid === null) {
                    cell.innerHTML = '<B>No document</B>';
                }
                
            }
            // apply the color (to ALL cells)
            cell.style.background = color;            
        }
    }

If I declare the formatter event in the grid builder, it doesn't work correctly, but declaring it in the document.ready() function (as per your sample) it works fine!
Thank you.


Reply To: MVC flexgrid and cell template

$
0
0

Hi,

I'm glad to know that it works for you. Yes, the formatter event declared in document ready will work because the template doesn't get applied before that.

Regards

Reply To: ScrollIntoView in C1FlexGrid

$
0
0

Hello

I could nor reproduce the mentioned issue with the provided information. Please refer to the attached sample with which I tried to replicate the issue also you may see the correct behavior at my end into the attached gif file.
You are suggested to test your case with the latest C1WPFLibrary build: 4.0.20161.503, which can be downloaded from below link and share your observations.

http://prerelease.componentone.com/dotnet40/c1wpflibrary/2016-t1/C1WPFBasicLibrary.4_4.0.20161.503.zip

If problem persists then, please share a stripped down sample or make the necessary changes into the attached sample to replicate the issue so that I can assist you accordingly.

Regards,
Prashant

Reply To: Print eight charts in one page

$
0
0

Hello,

As it is directly not possible to print multiple images of C1Chart on a single page. This is why we have suggested you the above workaround which is possible. So, as to implement it you need to get the Image object.

Thanks,
Akshay

Reply To: c1PDFViewer - Can't print in landscape

Reply To: sum if criteria in report footer

$
0
0

Hello,

I would like you to know that a particular field in C1Report can have a single formatting applied. Also, a column in a database is usually used to store the values of same format. Therefore, I am not sure how exactly are you rendering dollar and euro values in the same column in your report. In case, you are applying formatting on the currency field and prefixing the currency signs in OnPrint event of Detail section of the report. So, we suggest you to follow the steps given below to calculate the Dollars and Euros currency total:
1. Declare two variables to hold the dollars and euros total separately.
2. While prefixing the currency signs add the amount in the respective variable.
Please refer to the attached sample report.
Note: Set the attached Data.mdb as the DataBase of the report.

If you are using some other way to have different types of currency in a single column then, we request you to please share that way. It will be great if you could share the report definition file or the screenshot of your report.

Thanks,
Akshay

Scheduler - Setting DayHeader Font

$
0
0

Hi all,

I struggle in setting the fontstyle in DayHeader differnt to all other fonts that are bind to "FontSize", "FontFamily" etc.

Is there a was to do this ?

In the future there is perhaps a need of changing the timeline font as well.

Thx
Michael,..,

Reply To: C1FlexGrid and SelectedItem/SelectedIndex for ScrollIntoView

$
0
0

Hi,

I set not SelectedIndex, but SelectedItem.
Please see attached sample: setting SelectedItem has no effect.

Regards


Reply To: C1FlexGrid and SelectedItem/SelectedIndex for ScrollIntoView

$
0
0

Hello,

SelectedtItem property gets/sets the DataItem of current selected row. It has noting to do with UI interactions. It is avaialble only for the bound data.
You are suggested to use the SelectedIndex property to achieve your requirements.

Regards,
Prashant

Reply To: BindingRedirect & License 'NAG' Screen

$
0
0

Hi Guy,

The only way to compile the license info into the embedded resource is to rebuild the solution as suggested in my last response.
Sorry, I could not provide much help in this scenario.

Thanks and Regards,
Pragati Kaushik

Reply To: Render TrueDBGrid doesn't fit on a page

$
0
0

Hi,

The issue is yet to be resolved. However, I have asked the development team to look into it on a higher priority and will let you know once they come back with any information regarding the same.

Thanks and Regards,
Pragati Kaushik

Reply To: Render TrueDBGrid doesn't fit on a page

$
0
0

Ok ... thanx ... i'll wait for an answer :) ...

Reply To: How to Read ribbon control in C# code and looping,bind in flexgrid

$
0
0

Hi,

Please find the attached sample according to your requirements.

Hope it helps!

Regards,
Nilay Vishwakarma

Viewing all 14170 articles
Browse latest View live


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