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

Reply To: Clipboard Opeartions Support on Tree View

$
0
0

Dear C1,

I have the following queries:

1. Mouse Hover : If I hover my mouse on treeview then it looks like node gets highlighted – this behaviour is ok for one node But if I hover my mouse from multiple node it look like multiple nodes gets highlighted due to this I cannot figure out what are the nodes I have randomly selected using Cntrl + Mouse click. (refer attached Image - Image 1 ).In below snap I have randomly selected on node 3 and 2 remaining still look like selected

2. Sequence of Nodes : If there are 3 (1,2,3) nodes present and if I randomly select 2 nodes (1,3) so it returns me the selected nodes in the order which I selected i.e. if I select (3,2) then it returns me collection in same order but I don’t want this behaviour even though I randomly select any node in any order it supposed to return me in order it display on tree. I am using below code to get selected nodes. (refer attached Image - Image 2)

if (Main.ViewModel.MainViewModel.SelectedtreeViewControl != null && Main.ViewModel.MainViewModel.SelectedtreeViewControl.SelectedItems != null)
{
foreach (var Item in Main.ViewModel.MainViewModel.SelectedtreeViewControl.SelectedItems)
{
C1TreeViewItem selectedItem = Item as C1TreeViewItem;

if (selectedItem.Header is CompanyData)
{
CompanyData companyObject = selectedItem.Header as CompanyData;
profileDataToDelete.Categories.MotorsData.Add(companyObject);
deleteProfileViewModelObject = new DeleteProfile.ViewModel.DeleteProfileViewModel(profileDataToDelete.Categories.MotorsData);
}
}
}


Reply To: Insufficient Amount of Ticks on the Axis

$
0
0

Hi Michael,

You can set the Axis' UnitMajor/UnitMinor properties to change the intervals at which the Major/Minor ticks are drawn. For example the following code draws major ticks at an interval of 0.025 on the Y-axis(see screenshot)

c1Chart.ChartArea.AxisY.UnitMajor = 0.025;

Regards,
Ankit

Reply To: Moving VScrollBar to the left side of grid

$
0
0

Hello Sonu,
Thanks for reply.
for My windows application which im using multiple language interface i need to set vsrollbar to left c1trudedbgrid side when language isn't (english).
what about using vscroll control and drag it into c1truedbgid (at design time) but i need code for linking scroll with grids rows while scrolling
i hope you understand me..
and i am will be pleasure if you help me to write code with event

 
private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
        {
//some code here to link Vscroll control(microsoft vstudio) with c1truedbgid 
        }

very thanks

Reply To: C#/XAML for HTML5 with C1

$
0
0

Hi,

First of all apologies for the delay in getting back. The tool you've mentioned seems to be nice but since it's a third party tool, I'm not sure to what extent will it be able to support the C1 libraries and the conversion of code written with C1 Controls.

Now, since you have a Silverlight/WPF application developed using C1 Controls, it will be much easier if you had a way to port your existing application without much hassle and having to learn new concepts. That is why, I would like to introduce you to Wijmo5 which is a pure Html5 Javascript based set of tools for client side development. The Wijmo5 controls have an object model similar to their Xaml counterparts.

I would like you to take a look at the following great articles which demonstrate how to easily migrate your existing Xaml applications to Web using Wijmo5:

http://wijmo.com/blog/migrating-from-xaml-to-html5-with-wijmo/

http://wijmo.com/blog/migrating-mvvm-applications-to-html5/

Do let me know if you need any other help.

Cell Wrap forcing Update.

$
0
0

I have a very odd and very sporadic problem in my vb.net application.

The first time I go into a grid on a form and start typing into the last editable cell on a row, when the text reaches the visible bounds of the column (regardless of column width) it will automatically post what you have typed.

If you are unaware of this it you carry on typing and override what you have just typed. This doesn't happen on the second time through.

I was wondering if this is some behaviour you can actually activate and is accidently turned on the first time, if so any idea where it would be? Or is it a bug? Can anyone help?

Danny

Reply To: Setting a Cell-Value in C#

$
0
0

@reema-pruthi said:
Hello Lauri,

You may set a cell's value using the following code :


c1TrueDBGrid1[2, 1] = 10;    // cell value at 2nd row & 1st column 

Let me know if this works for you or not.

Regards,
Reema

When I do this in a NEW ROW, it erases all of the other entries in the row, and then the entire row disappears until I click on the grid, when it will re-appear with all values present.

I am setting this value in the AfterColEdit handler on a certain column. Based on the value just entered, I want to set the value of the next column.

Please advise.

Reply To: Difficulty to do custom grouping on one column values

$
0
0

Hey Pragati,

Thanks for your help.
But the problem is after grouping my other functionalities doesn't work like copying a row or deleting it, fetching cell styles which works fine on ungrouped data .
So is there any solution to it?

Reply To: Merging c1 truedbgrid Header Columns ( Cells ) by adding Multiple Headers


Reply To: Load C1WordDocument and set Bookmark Value

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

$
0
0

Hi,

This is by design. C1FlexGrid use its own implementation of custom CellFactory to create FilterEditor. If you apply your own cell factory it overrides it. A simple way would be apply the filter own your grid after applying cell factory. This way, your cell Filter's cell factory component would be added to your custom cell factory.

_flex.CellFactory = New SortCellFactory()
'Add the below mentioned lines
Dim filter As C1FlexGridFilter = New C1FlexGridFilter()
filter.Owner = _flex

~nilay

Reply To: Expanding after filtering grouped grid

$
0
0

Hi NaserArab,

Thank you for modifying the application for me. I could observe the issue.
When I tried using the same code snippet in the AfterFilter event, it worked perfectly (application attached). This event is triggered when the filter has been applied, therefore you can easily expand/collapse.

Please refer to the following documentation link for reference:

http://helpcentral.componentone.com/nethelp/c1truedbgrid/C1.Win.C1TrueDBGrid.4~C1.Win.C1TrueDBGrid.C1TrueDBGrid~AfterFilter_EV.html

If you still face any problem, do let me know. I would be happy to assist you further.

Thanks,
Pragati

Reply To: Expanding after filtering grouped grid

$
0
0

Oh my :) I did not know that, thank you very much, it works like a charm .

Reply To: Cell Wrap forcing Update.

$
0
0

Hi Danny,

If I understood correctly, text is assigned to the cell automatically if you type in the last cell of a row and the entered text exceeds column bounds. I am sorry to mention but I could not replicate the issue using the latest TrueDbGrid build version 4.0.20162.188 at my end. Please refer to the attached application demonstrating the same.

In case you are working with any older build, please verify the behavior with the latest build which can be downloaded from here:

http://prerelease.componentone.com/dotnet20/c1winforms/2016-T2/C1WinForms.2_2.0.20162.188.zip

http://prerelease.componentone.com/dotnet40/c1winforms/2016-T2/C1WinForms.4_4.0.20162.188.zip

If the problem still persists on using the latest build as well, please modify the attached application and share back so that I can reproduce the issue at my end and assist you further accordingly.

Thanks,
Pragati

Reply To: Pointer position on document - C1PdfViewer

$
0
0

Hi,

It seems that you want to get the current pointer position relative to the text characters. However, it is directly not possible to achieve the same.

Please let us know if you need any further assistance.

Thanks,
Akshay

Reply To: Rowstate

$
0
0

Hi Paulo,

This query case been answered in your support case 212333.

Thanks,
Pragati


Reply To: Difficulty to do custom grouping on one column values

$
0
0

Hi Kinjal,

This query has been answered in your support case 214365.

Thanks,
Pragati

Reply To: PDF for UWP Platform

$
0
0

Hi,

We are sorry to mention however, PdfViewer for UWP currently does not support finding of text and render modes to show bookmarks, etc.

Thanks,
Akshay

Reply To: Setting a Cell-Value in C#

$
0
0

Hello John,

I tried replicating your scenario with the latest TrueDbGrid build 4.0.20162.188 but, could not do so. Please refer the attached application demonstrating the same. In this application, I am setting LastName to "Parker" only when the user types "John" in FirstName column.

In case you are working with any older build, please verify the behavior with the latest version which can be downloaded from here:

http://prerelease.componentone.com/dotnet20/c1winforms/2016-T2/C1WinForms.2_2.0.20162.188.zip

http://prerelease.componentone.com/dotnet40/c1winforms/2016-T2/C1WinForms.4_4.0.20162.188.zip

If the problem still persists on using the latest build, please modify the attached application and share back so that we can reproduce the issue at our end and assist you further accordingly.

Thanks,
Pragati

Reply To: Moving VScrollBar to the left side of grid

$
0
0

Hi,

Call ResetScrollBar() whenever the grid's row count change or VisibleRows change.

private void ResetScrollBar()
{
  vScrollBar1.Minimum = 0;
  vScrollBar1.Maximum = Grid.RowCount - Grid.VisibleRows + vScrollBar1.LargeChange;
}

Then you can use this:

private void VScroll_Scroll(object sender, ScrollEventArgs e)
{
    if (e.OldValue != e.NewValue)
    {
        Grid.ScrollGrid(0, e.NewValue - e.OldValue);
    }
}

Grid here is truedbgrid

~nilay

Reply To: Insufficient Amount of Ticks on the Axis

$
0
0

Hi Ankit,

thanks for the quick response.

Is there any way to force the chart to set a fix amount of ticks on the axis?

Otherwise the interval for the major ticks has to be determined new every time the data is changed or the size of the chart is changed.

Best Regards,
Michael

Viewing all 14170 articles
Browse latest View live


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