Hi,
I have asked the developer for this and will share his insights soon.
~Pragati
Hi,
I have asked the developer for this and will share his insights soon.
~Pragati
Hi Gary,
did you set the "DataType" of the column to e.g. "decimal"? It seems to be a string column.
Best regards
Wolfgang
Hello,
I am sorry, I could not understand your exact requirements clearly. As per my understandings, you are using "MonthView" of C1Scheduler and wish to hide the last row which contains dates.
Could you please elaborate more on your issue so that I can proceed further with my investigations.
If possible, please share a snapshot of the desired behavior for clear understandings.
Regards,
Prashant
Thanks. Is there a way to display this in the grid, rather than using an alert?
Thx for your answer.
That is exactly what i need, in month view i want to have only four or five rows instead of six.
Like this calendar.
Hi,
We are sorry to mention however, it is directly not possible to have scrollable legends in C1Chart for Winforms.
However, it is possible to achieve the same using C1Chart for Wpf/Silverlight. Please refer to the below provide blog link representing the same.
http://our.componentone.com/2012/10/25/scrollable-legend-in-c1chart/
Thanks,
Akshay
Thanks Wolfgang.
Set the datatype and all good.
Thanks a lot, Nilay.
Hello,
We are not aware of any wrappers for Direct2D/DirectWrite from nuget\MS except Win2D project. It is for Windows Store apps only. Also, it is platform-dependent, i.e. we can't reference Win2D from our controls built for AnyCPU platform. The only known alternative for the DX dll is SharpDX project. But we actively use some new Direct2D/DirectWrite interfaces, not supported in SharpDX yet. If you are aware of any good alternatives please let us know.
Thanks.
-Andrey
Hi John,
Please try this below code:
<script>
function loadedRows() {
var grid = wijmo.Control.getControl("#FlexGrid1"),
cv = grid.collectionView;
if (!cv.sourceCollection || !cv.sourceCollection.length) {
//alert("no data");
grid.cells.rows.insert(0, new wijmo.grid.Row());
grid.cells.columns.insert(0, new wijmo.grid.Column());
grid.setCellData(0, 0, "no data");
}
}
</script>
@Html.C1().FlexGrid().Id("FlexGrid1").OnClientLoadedRows("loadedRows")
Hi,
You can use ValueLabel with a visible gridline. You can use a symbol that can be dragged with the mouse to other times as well. It is important that the Annotation method be set to Mixed for the Gantt Y Axis (horizontal axis with times). Mixed allows both the numeric values automatically placed by the chart AND ValueLabels as well. Positioning the ValueLabel (and therefore the line) is a simple matter of setting the DateTime or Numerical value of the ValueLabel. The text is optional but in your case would eliminate the need to supply a separate label. Movable ValueLabels for both axes are used in the Histogram sample.
Please see the attachment, Gantt-with-Marker.png.
Thanks,
Akshay
Hi Christian,
The issue will get fixed in the next release of C1Winforms. Till then, we suggest you to try using earlier builds of C1Winforms. Please let us know if you need any from our side.
Thanks,
Akshay
Hi Akshay,
Thank you very much! Rolling back to an earlier version of C1Winforms works for us.
Regards,
Christian
Any News?
Hi.
I want to set a Content into my toprow in the second colum.
I work with this and it works fine.(in my CellStyle I write this)
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=Column.Index}" Value="2"/>
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=Row.Type}" Value="Top"/>
</MultiDataTrigger.Conditions>
<Setter Property="Content">
<Setter.Value>
<Grid HorizontalAlignment="Left" Margin="5,0,0,0" VerticalAlignment="Center" >
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock x:Name="Saldovortragtxt" FontWeight="Bold" Text="Saldovortrag:" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<TextBlock x:Name="Saldovortragtxt1" FontWeight="Bold" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5,1,1,1" Text="{Binding JournalClient.Saldo.Saldovortrag, Converter={StaticResource DecimalConverter}}" Grid.Column="1"/>
</Grid>
</Setter.Value>
</Setter>
</MultiDataTrigger>
The user can choose another ItemsSource.
So if I do this for example 4 times the Content is in the TopRow.
But then there is nothing in the toprow. Then I Change the list and the Content is there.
When I debug the Content is "TextBlock". But my Content is a "Grid".
Do you have any idea?
Regards
Hi there
How do I bind SelectedItem from the inner datagrid to a property on the ViewModel.
I tried the following but it didn't work:
SelectedItem="{Binding DataContext.SelectedSearchItem, RelativeSource={RelativeSource AncestorType={x:Type Window}}
I included you a sample where it doesn't works.
If you reset the TopRows and then back it doesn't works.
Ok.
Does FlexChart allow you to have a scrollable legend?
Hi,
We were trying to find out something to help you out and here it is:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
var ds = new DataSet();
var dt = new DataTable("table");
dt.Columns.Add("First");
dt.Columns.Add("Second");
dt.Rows.Add(new object[] { 1, "A" });
ds.Tables.Add(dt);
c1TrueDBGrid1.SetDataBinding(ds, dt.TableName);
c1TrueDBGrid1.ColEdit += c1TrueDBGrid1_ColEdit;
c1TrueDBGrid1.KeyDown += Grid_KeyDown;
}
private void c1TrueDBGrid1_ColEdit(object sender, ColEventArgs e)
{
if (c1TrueDBGrid1.Col == 0)
{
c1TrueDBGrid1.Columns[1].Value = "ABC";
}
}
private void Grid_KeyDown(object sender, KeyEventArgs e)
{
var grid = sender as C1TrueDBGrid;
if (e.KeyData == Keys.Escape && grid.Columns[0].DataChanged)
{
grid.DataChanged = false;
}
}
}
Please refer to the attached sample application implementing the same.
Thanks,
Akshay
This will not work. Markers are always underneath the bars. I need the line to be drawn on top of the bars.