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

Can summary task be empty?

$
0
0

I wish to display an empty summary task on GanttView or atleast change a task.BarStyle to that of Predefinied BarStyle.SummaryTask but whenver I attempt to the task looks like ManualTask/AutomaticTask depending on it's planning. How do I archieve that?

Ignore the completion percent, I wish to display it blank without it.


Reply To: Selecting multiple tasks from GanttView and using GridContextMenu

$
0
0

Hello,

As it is directly not possible to get the collection of selected tasks so, below is a workaround that you may try to achieve the same:
1. Get the C1FlexGrid object ossociated with the C1GanttView.
2. In SelChange event of C1FlexGrid get the object of the selected Tasks.
3. Add the Task object into a collection object.

C1FlexGrid grid;
        private void Form1_Load(object sender, EventArgs e)
        {
            grid = (C1FlexGrid)ganttView.Controls[2];
            grid.SelChange += Grid_SelChange;
        }

        ArrayList al = new ArrayList();
        private void Grid_SelChange(object sender, EventArgs e)
        {
            if (grid.Selection.TopRow > 0)
            {
                al.Clear();
                for (int i = grid.Selection.TopRow; i <= grid.Selection.BottomRow; i++)
                {
                    al.Add(ganttView.Tasks.Search(grid[i, 2].ToString()));
                }                
            }
        }

Hope it helps.

Thanks,
Akshay

Select Columns Without Sorting

$
0
0

Hi,

Is there a way to allow user to select columns without sorting or firing the HeadClick event. When the user presses Ctrl+Shift to select columns, the grid is sorted because the HeadClick event is fired.

Thanks

richard

Reply To: Scheduler - Setting DayHeader Font

$
0
0

Hello,

Please find the attached sample implementing your requirements and let me know in case of any doubts or queries.

Regards,
Prashant

VSPrinter/Table: Multirow header on each page

$
0
0

Hi,

I have an issue regarding my Work with the VSPrinter control. I try to print a table, which goes over more than one page, with its header on the top of every page.
I know this is generally possible with the .AddTable() Method, but my Header is a multi Row Header with different formatted Rows, which I create by using the .TableCell Method
to build my Table.

My first choice was to intercept the NEwPage() or EndPage() events, but imho they are fired after the whole table is build?

How can I intercept in the table building process, in the moment, when the table reaches an end of a single page?

I'm really loooking forward for your help, thanks in advance

Sincerely,

SDKTeam

Reply To: Font Size in 3D

$
0
0

Hi,

I will forward your comments to the development team and will get back to you when there is any information from their side.

Thanks.

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

$
0
0

Hi,

In the previously attached sample the CustomComparer was an example only. I gave the custom comparer to show how custom comparer are written for flexgrid.

Please find the attached sample where I've written custom comparer according to your requirement.
In the same sample you can see that I ve added data to an ArrayList(.NET object) and sorted them and printed on output window. The items are sorted as:
05-510
055-108
05-511
055-111
05-512
Thus, .NET behavior.

Regards,
Nilay Vishwakarma

Reply To: Select Columns Without Sorting

$
0
0

Hi Richard,

What you could do here is to change the sort behavior of TDBGrid on pressing Ctrl+Shift. Please find the attached sample that does the same. In the attached sample, whenever you have pressed Ctrl+Shift, the column get selected and when you don't press Ctrl+Shift, the column get sorted.

Regards,
Nilay Vishwakarma


Reply To: ScrollIntoView in C1FlexGrid

$
0
0

Hello Prashant,

i am sorry. I did not test it (reproduce) properly.
I have a small SampleDemo where the problem still exists. It is a really special problem, I think. There I load the content of a TabControl dynamically. It has two FlexGrids with bound Items. I want to store the selected item.
We have a ViewModel, which is never destroyed. The FlexGrids each need to "remember" selection when i close and open it.
The selection is correctly remembered, but the FlexGrid is not scrolled to the selected item.

I think it depends on the "IsSynchronizedWithCurrentItem=false" onLoad and "IsSynchronizedWithCurrentItem=true" in my ItemssourceChanged Handler. But this is needed, to not overwrite my saved selected item upon loading the "new" FlexGrid.

Do you have a better solution?

Regards
Tom

C1DataGrid Highlight like FullTextSearch

$
0
0

I'm using ElasticSearch to return results that I populate in the C1DataGrid. I'd like it to act like the C1FullTextSearch where specific text is highlighted.

Is there a way to supply a value to the C1DataGrid to highlight a substring in all columns if matched, without using FullTextSearch?

If not then this would be a feature request ;)

Reply To: C1FlexGrid and SelectedItem/SelectedIndex for ScrollIntoView

$
0
0

Hello,

how can i get record Index for a known DataItem with current sorting in flexgrid? Is there are search function?

Microsoft set SelectedIndex automatically on SelectedItem change.

Regards

Reply To: Select Columns Without Sorting

$
0
0

Hi Nilay,

Many thanks. It works!

--Just change the "&&" to "||" to allow Ctrl or Shift only

if (e.Control || e.Shift)
....
if (e.KeyCode == Keys.ControlKey || e.Modifiers == Keys.Shift)

Thanks again.

Richard

Reply To: VSPrinter/Table: Multirow header on each page

$
0
0

Hi Stefan,

NewPage and EndPage events would be best suited for your requirements as they fire when the page starts and finishes rendering respectively. You can use the NewPage event to print custom headers and footers or to add text and graphics that will overlay the contents of the page. When the NewPage event is fired, the page is still blank. Please refer to the following documentation links for more information on these events:

http://helpcentral.componentone.com/nethelp/vsview8/webframe.html#newpageevent.html

http://helpcentral.componentone.com/nethelp/vsview8/endpageevent.html

Since you want to print multi row headers in the table of your document, I would also suggest you to refer to the product sample 'MultiRowHdr'. It will be installed on the following location on your machine if you choose the default installation path:
C:\Users\UserName\Documents\ComponentOne Samples\VSView 8.0\VB\MultiRowHdr

Thanks and Regards,
Pragati Kaushik

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

$
0
0

Hello,

In order to print C1trueDBGrid with large number of columns on multiple horizontal pages you need to use RenderTable so that, it can be split through columns.
Below is the code to achieve the same:

Private Sub preButton_Click(sender As Object, e As EventArgs) Handles preButton.Click

        '' Setting options on C1TrueDBGrid1.PrintInfo allows to control how the RenderTable
        '' representing the grid will be created:
        C1TrueDBGrid1.PrintInfo.PageBreak = C1.Win.C1TrueDBGrid.PrintInfo.PageBreaksEnum.OnColumn
        C1TrueDBGrid1.PrintInfo.FillAreaWidth = C1.Win.C1TrueDBGrid.PrintInfo.FillEmptyEnum.None

        '' RenderC1Printable used to generate the representation of the true grid:
        Dim _C1Render As New C1.C1Preview.RenderC1Printable
        _C1Render.Object = C1TrueDBGrid1

        '' Generate the grid's representation:
        _C1Render.GenerateInnerRenderObjects()

        '' Rather than using the RenderC1Printable itself, we use the RenderTable created by it
        '' that represents the table:
        Dim table As C1.C1Preview.RenderTable = _C1Render.Children(0)
        '' This will allow us to assing 'table' directly to our C1PrintDocument.Body.Children:
        _C1Render.Children.Clear()
        '' Can add table to the document now:
        C1PrintDocument1.Body.Children.Add(table)

        '' Set up table's properties:
        table.Width = Unit.Auto
        '' table.ColumnSizingMode = TableSizingModeEnum.Auto - use to auto-size the columns rather than using the current widths
        table.ColumnSizingMode = TableSizingModeEnum.Fixed

        For i = 0 To table.Cols.Count
            '' Uncommenting the next line and setting ColumnSizingMode to Auto above will auto-size columns:
            ''table.Cols(i).Width = Unit.Auto
        Next

        table.SplitHorzBehavior = SplitBehaviorEnum.SplitIfNeeded
        table.SplitVertBehavior = SplitBehaviorEnum.SplitIfNeeded

        '' Generate the document:
        C1PrintDocument1.Generate()

        With C1PrintPreviewDialog1
            .Document = C1PrintDocument1
            .WindowState = FormWindowState.Maximized
            .NavigationPanelVisible = False
            '.Text = traducir(1245, "Vista Preliminar")
            .PrintPreviewControl.PreviewPane.ShowRulers = False
            .ShowDialog()

        End With
    End Sub

Please refer to the attached sample application implementing the same.

Thanks,
Akshay

DatePicker (again)

$
0
0

Sorry, I should have been more clear.
There is a bug with the TextAlign property with DatePicker when the inputpanel control is themed with certain themes (try office Office2013Green). TextAlign Center and Right are reversed.


Reply To: sum if criteria in report footer

$
0
0

Thank you very very much for your replay.. but i am using another field that holds the currency type not on the symbol of the currency, the table structure is like the following ...

name amount currency
----- ------- --------
.
.
.
total dollars = ?
total euros = ?

so the total summation is based on the currency field , and thanxxx again for your time...

Reply To: RichTextBox in Tablet Mode with Screen Keyboard

$
0
0

Do you have any news for me? I have to decide to go back to the old version (with the described bug) or go forward with a fixed version of the RTF control. I have to deliver a corrected version of the app due to new requested functionalities. Thank you in advance. Regards, Sven.

Copy cell styles

$
0
0

I am using C# and am writing cell values from one grid into another. Some of the cells in the source grid are highlighted. How do I copy the cell style from the source grid to the destination grid? I want the destination cell to have the same style (highlighted) as the source cell?

Thanks!

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

$
0
0

GREAT Akshay!!! :)

It works fine for us ... thanks a lot ...

Reply To: C1DateEdit buttons look "broken" in .33345

$
0
0

OK, then you can close this.

Best regards

Wolfgang

Viewing all 14170 articles
Browse latest View live


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