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

Reply To: C1 Web Resources authorization issue

$
0
0

Hi John,

I think there are two ways to work around this issue.
1. You can exclude C1WebMvc(controller)/WebResources(action) from the authorized request list.
2. Write a customed controller which inherits from C1WebMvcController and then make some changes with the RouteConfig. Please refer to the below code.
1) Add a new controller.

    
namespace YourApp.Controllers
{
    [AllowAnonymous]
    public class C1WebMvcController : C1.Web.Mvc.C1WebMvcController
    {
    }
}

2) Do some config with RouteConfig.cs, add namespaces.


routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                namespaces: new string[] { "YourApp.Controllers" },
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );

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

Reply To: Excel sheet viewer via Flex Report

$
0
0

Hi,
Please note, there is no direct way to show the content of a Excel sheet in a Flex Report viewer. However, you can achieve your requirement by creating images of excel using screenshots or any other way and then add these image(s) in C1FlexReport using Image control.
Please see the attached image for Image control. Hope it will help you.

Thanks,
Sonu

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

$
0
0

Hi,

I make all the steps of the link.
After that, Visual Studio starts as it was the first time it starts, but unfortunately, it doesn't work ...

For information, we also apply the latest update of the VS2015 : 14.0.25431.01 Update 3

Steven

Flex Grid Format

$
0
0

I have a column with the format .Cols(fintColUnit).Format = "C". When a number is entered into the column an error: (Parsing Error: Value "99" cannot be converted to the destination type System.String using format "CustomFormat".)

Reply To: Context Menu for C1TopicBar Links

$
0
0

Hi,

Thanks for providing the code snippet.

In order to show context menu only when the right click is performed on the links you need to use HitTest method to check the type of the element clicked in MouseDown event and set the ContectMenuStrip object accordingly.

private void c1TopicBar1_MouseDown(object sender, MouseEventArgs e)
        {
            if (c1TopicBar1.HitTest(e.Location).Type == C1.Win.C1Command.C1TopicBarHitTestTypeEnum.LinkText && e.Button == System.Windows.Forms.MouseButtons.Right)
                c1TopicBar1.ContextMenuStrip = contextMenuStrip1;
            else
                c1TopicBar1.ContextMenuStrip = null;
        }

Please refer to the attached sample application.

Thanks,
Akshay

Reply To: Fix Top Visible Row

$
0
0

Hi,

When a new data row is added and the addition is successful, you can increment the TopRow value. Please refer the attached sample.

int row = c1FlexGrid1.TopRow;
dt.Rows.InsertAt(dr, 0);
c1FlexGrid1.TopRow = row+1;

~nilay

Reply To: C1.Scheduler more than one appointment

$
0
0

the number of displayed appointments should depend on screen size. It is not limited to 1


Reply To: Fix Top Visible Row

Reply To: C1.Scheduler dynamic row height

$
0
0

do you mean Month View? By default MonthView shows 6 weeks so that you always can see the whole month.
It's impossible to change row height with default control templates. But you can change C1Scheduler.VisualTimeSpan from 42 to smaller value like 35 in custom MonthView style. In this case you will have more room for appointments in individual days

Reply To: C1 Web Resources authorization issue

$
0
0

Thanks, I used the second approach and created a controller which allows anonymous access. That did it!

Scrollable Legends with Winforms C1Chart

$
0
0

Is there a way to make the legend area of the Winforms version of C1Chart scrollable? If so, how?

Thanks, -d

C1.Scheduler number of rows

$
0
0

How can i do that my scheduler show only four or five rows. Actually its showing 6 rows and i dont need the last one.

Dividing the grid using splits for specific condition

$
0
0

Hi All,
I am new to C1 studio. Need help for the below scenario.
I am trying to split the trueDBGrid based on certain condition and I am unable to make the specific rows visible for a particular split.

what I am going is:
Checking the cell value for a particular column, say column 4 and based on the value I need specific rows in different splits.

Thanks in advance

FlexGrid "no data" message

$
0
0

How can I display a "no data" message in my FlexGrid when it is bound to an empty datasource?


Reply To: Failed to create a 'TargetType' from the text 'c1grid:ItemCellPresenter'

$
0
0

Hello!

Taking a look at my code I guess you are right. I'm copying code from another project to a new one in which the data format from the datatable is different plus was in XAML. So, something that I don't see nor understand could be wrong... With that being said, let me start again and rephrase my question to make it simple as possible.

Lets say that I have a dataTable set to the ItemsSource in which it has 3 fields (Selection (Boolean), Date (DateTime), myImportantValue (String)). The data is readonly and can't be changed while being displayed.

What I would like to do is to be able to change the row forecolor to Red when myImportantValue is not empty. All other rows must not change (should be default forecolor which is black). Actually, myImportantValue will be only in one row (that is how the Stored Procedure works!).

I created the myObject like this (VB.Net, No XAML):

Dim myObject as new myC1DataGrid
'Note: myC1DataGrid Inherits C1.WPF.C1DataGrid.C1DataGrid. All that has is many Public Property.

With myObject

.AutoGenerateColumns = True
.AllowDelete = False
.AllowColumnMove = False
.AllowGroupBy = False
.AllowHierarchicalData = False
.AllowHorizontalColumnSizing = False
.AllowHorizontalSplit = False
.AllowHorizontalSplitSizing = False
.AllowVerticalColumnSizing = False
.AllowVerticalSplit = False
.AllowVerticalSplitSizing = False
.GroupByVisibility = Visibility.Collapsed
.HeaderVisibility = Visibility.Visible
.NewRowPlacement = C1.WPF.C1DataGrid.NewRowPlacement.None
.RowHeaderVisibility = Visibility.Collapsed
.IsTabStop = False
.AllowSort = True
.MaxHeight = 550
.MaxHeight = 550
.Margin = New Thickness(3)

.ItemsSource = myDataWithThreeFields ' Works fine without next line.

'.Template = myCustomControlTemplate ' Here is where I guess that the Custom Control Template should be assign. Right?

End with

Return myObject

Again:

What I would like to do is to be able to change the row forecolor to Red when myImportantValue is not empty. All other rows must not change (should be default forecolor which is black). Actually, myImportantValue will be Only in one row.

Note: All special stuff was left out to make this example simple.

Please, no XAML.

Thank you in advance!

Cultrue issue for Spread

$
0
0

We just upgrade farpoint from 7 to 9. Our system support multi cultures. when US user enter the system. we will set the culture of current thread to en-us. but if German user we set the culure to de-DE.

originally farpoint 7 doesn't support different culture. so there is no problem when we hard-code for example fpSpread.ActiveSheet.Cells[0, 0].Formula = "Sum(1,2)" for any countries.

but now after upgrade. there is problem for German culture. it will throw invalid token with parseException. I find the reason is German culture need to us ";" instead of "," so here we should code like Sum(1;2).
you can just try type =sum(1,2) in a cell when set german culture to reproduce this issue.

since we had saved whole spreadsheet into database from farpoint7. we definitely had save lots of formula with "," for Germany case. the upgrade become not advantage to us.

Is there any way or property we can set to ignore the culture in farpoint9 so that we don't need to change anything from our code and conversion?

Reply To: FlexGrid "no data" message

$
0
0

Hi John,

You can use the below code to achieve this.


<script>
    function updatedView() {
        var grid = wijmo.Control.getControl("#FlexGrid1"),
            cv = grid.collectionView;
        
        if (!cv.sourceCollection || !cv.sourceCollection.length) {
            alert("no data");
        }
    }
</script>

@Html.C1().FlexGrid().Id("FlexGrid1").OnClientUpdatedView("updatedView")

Reply To: Flex Grid Format

$
0
0

Hi,
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

Please find a sample application attached for implementing the same.

Thanks,
Sonu

Reply To: Dividing the grid using splits for specific condition

Viewing all 14170 articles
Browse latest View live


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