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

Reply To: RibbonMenu\FormatText Issue

$
0
0

I have tried a number of methods of achieving Wolfgangs suggestion, but nothing works. (UpdateData, EditActive) - I don't want to get into the arcane (sendkeys to force a location change).

Any other suggestions?

Kind Regards
Jamie


Reply To: ColImageList only accepts 32-bit handles

$
0
0

What is the status if this defect ?

Context Menu Operations like Cut-Copy-Paste with Undo/Redo operation on FlexGrid

$
0
0

Dear C1,
1. Is there any inbuilt commands or functions are there to support context menu operations like Cut-Copy-Paste on FlexGrid of ComponentOne.
2. Also I want to know that can we select a particular range of the cells and apply context meny operations on it.
3. Can we apply Undo/ Redo functionality on Flexgrid?, if yes upto how many iterations we can Undo/Redo the FlexGrid Operations.
If possible, Please provide some examples with code.
And if any of the above mentioned features is not supported in Flexgrid please suggest alternative if any.

Thanks in advance.

Reply To: Red Cross

$
0
0

Hi Sunil,

There can be a number of reasons for this. There could be a memory leak in your application or in the control (both of which are very unlikely).
Can you share with us some more details bout your application.
What are the operations you are performing on the grid?
Are you using Paint or OwnerDrawCell method anywhere in your code?
Is the application multi threaded? Are you using timers with grid?

Can you perform a memory or GDI profile test of your application?

~nilay

Reply To: Format number in Decorations Label

$
0
0

Hi,

Thanks for providing the screenshot.

It seems that you want to avoid the overflowing of the number -0.8000000000.... from the linear gauge. In order to wrap the number inside the control you need to set the Format property of the Labels to say, 0.#. Please refer to the attached screenshot representing the same.

Thanks,
Akshay

Reply To: ColImageList only accepts 32-bit handles

$
0
0

Hi,

I have asked the development team to provide an ETA on this issue. Will update the thread once they come back.

Thanks.

Reply To: Context Menu Operations like Cut-Copy-Paste with Undo/Redo operation on FlexGrid

$
0
0

Hello,

C1FlexGrid does not provides any inbuilt functionality to handle Cut-Copy-Paste and Undo/Redo operations. However, as a workaround, I suggest you to use the below code to implement Cut-Copy-Paste behavior in C1FlexGrid.


 private void mnCut_Click(object sender, RoutedEventArgs e)
        {
            CopyData.Clear();
            for (int r = c1FlexGrid.Selection.TopRow; r <= c1FlexGrid.Selection.BottomRow; r++)
            {
                CopyData.Add(new List<string>());
                for (int c = c1FlexGrid.Selection.LeftColumn; c <= c1FlexGrid.Selection.RightColumn; c++)
                {
                    CopyData[r - c1FlexGrid.Selection.TopRow].Add(c1FlexGrid[r, c].ToString());
                    c1FlexGrid[r, c] = "";
                }
            }
        }

        private void mnCopy_Click(object sender, RoutedEventArgs e)
        {
            CopyData.Clear();
            for (int r = c1FlexGrid.Selection.TopRow; r <= c1FlexGrid.Selection.BottomRow; r++)
            {
                CopyData.Add(new List<string>());
                for (int c = c1FlexGrid.Selection.LeftColumn; c <= c1FlexGrid.Selection.RightColumn; c++)
                {
                    CopyData[r - c1FlexGrid.Selection.TopRow].Add(c1FlexGrid[r, c].ToString());
                }
            }
        }

        private void mnPaste_Click(object sender, RoutedEventArgs e)
        {
            for (int r = 0; r < CopyData.Count && c1FlexGrid.Selection.Row + r < c1FlexGrid.Rows.Count; r++)
            {
                for (int c = 0; c < CopyData[r].Count && c1FlexGrid.Selection.Column + c < c1FlexGrid.Columns.Count; c++)
                {
                    c1FlexGrid[c1FlexGrid.Selection.Row + r, c1FlexGrid.Selection.Column + c] = CopyData[r][c];
                }
            }
        }

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

Also, currently I could not find a way to implement the Undo/Redo operation in C1FlexGrid with multiple selection. Therefore, I have escalated this issue to our development team (with tracking id:#192169) for further investigations and will let you know as soon as I get any updates from them.

Regards,
Prashant

Reply To: Cut-Paste Operation on Treeview for random nodes

$
0
0

Hello,

C1TreeView does not provide any inbuilt functionality to handle the cut/paste operation. I have escalated this issue to our development team (with tracking id:#192176) for a solution and will let know as soon as I get anything substantial from them.

Regards,
Prashant


Reply To: Undo/Redo operations in TreeView

$
0
0

Hello,

C1TreeView does not provide any inbuilt functionality to handle the undo/redo operation. I have escalated this issue to our development team (with tracking id:#192176) for a solution and will let know as soon as I get anything substantial from them.

Regards,
Prashant

Reply To: C1dView sample: page number is not refreshed

$
0
0

Thanks, I verified it now. Everything is fine ;-)

Best regards

Wolfgang

Reply To: FlexReport to pdf memory stream

DataGrid Unknown Type

$
0
0

Hi,

Hit a little problem whilst parsing XAML from a database. The element contains a number of controls which all load and display fine - until I drop in a DataGrid (or FlexGrid) at which point it errors with the following.

Cannot create unknown type '{http://schemas.componentone.com/winfx/2006/xaml}C1DataGrid'.'

My header section for the element contains the following,

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"

If I copy the element (with DataGrid) directly into the target window of the application it displays and executes fine; only appearing to error when I parse from a string.

Unfortunately I have to load the XAML from a database as the application requires a variety of layouts.

I am using the controls from the Demo download. Perhaps related?

Thank you.

Reply To: Format number in Decorations Label

MVVM and LoadedCellPresenter order

$
0
0

Hello,

I have a MVVM architecture and imagine that in my GUI I have a TabControl where every TabItem contains a C1DataGrid. In the TabControlViewModel I have a list of TabItemViewModel classes, to populate my TabControl and the Items.

The DataGrid inside the TabItem has defined, using EventTrigger, an event LoadedCellPresenter.

Strange behaviour: When I add the first Item, the LoadedCellPresenter event has not been fired. Only when I add a second Item, both items fire the LoadedCellPresenter event.

What problem could it be ?
Do you have any idea ?
When the LoadedCellPresenter event, occurs ?

Thanks
Gabriele

FlexGrid, DataBinding, ComboList, DataMap

$
0
0

Hi,

I'd like to use FlexGrid in the following situation:

1. The value of a flexible number of columns should be entered by a combobox. For that reason I set ComboList as well as a DataMap property for each of these columns.

2. On the other hand I'd like to use data binding which works fine for remaining columns.

The main problem seems to be that in case 1. there does not exist a property in the data source with the name of the column (there can't be a property because the number is given on run-time only). I tried to change the values by different events which occurs when updating cells etc., but it does not work, because the comboboxes are bounded - one can not exclude columns from data bounding.

Any idea?

Best wishes
Markus Wendt

Enclose a short example:


  flexGrid.Rows.Add(2);
  flexGrid.AllowMerging = C1.Win.C1FlexGrid.AllowMergingEnum.Spill;
  flexGrid.Styles.Normal.WordWrap = true;
  flexGrid.Rows.Fixed = 2;
  flexGrid.AllowMerging = C1.Win.C1FlexGrid.AllowMergingEnum.FixedOnly;

  int numberOfDataUsages = Enum.GetValues(typeof(ModelComponentManager.DataUsage)).Length;
  flexGrid.Cols.Add(numberOfDataUsages);

  flexGrid.Rows[0].AllowMerging = true;
  var dataUsageCellRange = flexGrid.GetCellRange(0, 0, 0, numberOfDataUsages - 1);
  dataUsageCellRange.Data = "Apply to";
  dataUsageCellRange.StyleNew.TextAlign = TextAlignEnum.CenterCenter;


  int i = 0;
  foreach (var treeDataUsage in EnumString.GetValues(typeof(ModelComponentManager.DataUsage)))
  {
    var col = flexGrid.Cols[i];

    col.Caption = treeDataUsage.StringRepresentation;
    flexGrid.Cols[i].ComboList = m_BoolComboBoxString;
    flexGrid.Cols[i].DataMap = m_BoolComboBoxMapping;
    flexGrid.Cols[i].Name = treeDataUsage.Value.ToString();
    i++;
   }
  var NameColumn = flexGrid.Cols.Add();
  nameColumn.Name = "Name";
  nameColumn.Caption = "Name";
  
  // further code...

  IBindingList dataSource = new BindingList();
  flexGrid.SetDataBinding(dataSource, "", preserveLayout: true);

  
  // end: Init of flexgrid


public class ModelComponentItem
{
// some code, constructor etc.


  public string Name  
        {
            get;
            set;
        }

 // the following methods should be used for the first columns that contains a combobox

  public bool GetItem(DataUsage treeDataUsage ){
    //...
  }

  public void SetItem(DataUsage treeDataUsage, bool value){
     // ..
  }
}

C1Toolbar: Icon next to HelpButton how?

$
0
0

Hello Guys,

I have 2 questions:

1. How can I put another Icon/Button next to the ShowHelp-Button (Screenshot, red border)
2. How can I trigger an event for collapse - expand the toolbar in the code?

Heiko
THX

Reply To: C1Report Standalone Designer - Headers/Footer Editing Problem

$
0
0

Hi John,

I have replied at your SupportOne case with Case ID: 192009.

Thanks,
Akshay

FlexReport draw OMR marks

$
0
0

Hello,

I would like to ask if there is way how to put on rendered FlexReport an OMR marks. The marks have fix position on the page and their visibility depends on actual page number and number of pages in rendered report. In C1Report I could implement the OMR functionality using some tricks with C1Report.PageImages collection. The similiar way is described in this topic http://our.componentone.com/groups/topic/draw-omr-marks/

Thanks for your help,

Milo

Reply To: FlexReport to pdf memory stream

$
0
0

Thanks, but I do not think this is responsive to my inquiry. As far as I can tell, the FlexViewer allows downloads only as part of its visual implementation - that is, the user sees a report in a page, then downloads it. This is not what my code sample performed using C1Report, and not what I requested.

I need a server-side-only solution whereby a user can download a report without viewing it, and without generating an explicit file on the server.

If this is illustrated in the sample you indicated, please let me know where (file, linenum); if this is otherwise possible, please let me know how.

Thanks,

R

Reply To: Access Item from a Row in C1FlexGrid

$
0
0

Thanks Nilay,

It works well. How should I label this question as "Answered"?

Viewing all 14170 articles
Browse latest View live


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