Telerik Forums
UI for WPF Forum
0 answers
74 views
Hi Support
I have problem with binding a value of FilterDescriptor in RadGridView. I'm just able of binding it to StaticResource how can we bind it to non static ones.

Thanks in advance
Mehri
Mehri
Top achievements
Rank 1
 asked on 21 Jul 2011
3 answers
227 views
I have a gridview, with a column that is a date. It displays the date in the format of the current culture.
However, at runtime the culture can change.
How can I let the gridview adapt to this new culture, so that the dates are formatted in the new culture format?
Milan
Telerik team
 answered on 21 Jul 2011
1 answer
101 views
Hi,
How can I change the content of DateTime MaskedInput programmaticaly?
I set the new DateTime to Value property of MaskedInput but nothing changed.
the setter of Text property is inaccessible also and cannot be changed.
I've used MaskedInput in a UserControl and wanna change it from the main App Window in code.
What's the solution?  
Libertad
Top achievements
Rank 1
 answered on 21 Jul 2011
0 answers
66 views
Hi

I' facing an issue that on load gridview cloumns first Shrink and then expand. which looks odd in the application. Kindly suggest me how to overcome with this issue.

Regads
Nikhil Jain
Top achievements
Rank 1
 asked on 21 Jul 2011
6 answers
242 views
Hi,

I am trying to implement a binding for some properties of SeriesDefinition for RadChart in XAML. Here is a part of my XAML:

<telerik:RadChart.SeriesMappings>
    <telerik:SeriesMapping LegendLabel="Rates" CollectionIndex="1">
        <telerik:SeriesMapping.SeriesDefinition>
            <telerik:LineSeriesDefinition AxisName="Rate" ItemLabelFormat="0.00 \%">
                <telerik:LineSeriesDefinition.Visibility>
                    <Binding Path="ChartRateSeriesVisible" Source="{StaticResource ViewModel}" Converter="{StaticResource BooleanToSeriesVisibilityConverter}" />
                </telerik:LineSeriesDefinition.Visibility>
            </telerik:LineSeriesDefinition>
        </telerik:SeriesMapping.SeriesDefinition>
    </telerik:SeriesMapping>
</telerik:RadChart.SeriesMappings>

This binding works fine, it gets the value from my ViewModel, so series are either visible on invisible.

The issue is the following:
I have a CheckBox on my View (UserControl defined in XAML) which is also binded to the same property of ViewModel (ChartRateSeriesVisible  property). And I want to control the visibility of a series by clicking on the checkbox. CheckBox's binding is defined property. I can see in the trace that checking/unchecking the checkbox updates the value of ChartRateSeriesVisible property.

But chart is not updated automatically. Only then I reload the chart completely (by updating its ItemsSource for instance), my LineSeries is hidden or visible depending on the value of ChartRateSeriesVisible.

What am I doing wrong or what am I missing?
In the telerik's sample application 'Simple Filtering' almost the same approach is used! Series Visiblity property is also binded to the ViewModel's property, etc.

I am using WPF 3.5 and the version of telerik assemblies is 2010.2.924.35.

Thanks in advance.
Giuseppe
Telerik team
 answered on 21 Jul 2011
3 answers
162 views
Hi,

I am using MVVM Architecture, When I tried to bind ClientID (int value) to X Axis, everything seems working fine, but when I tried to bind Client Name (String Value) to X Axis. I am getting Error saying "Input string is not in correct format".

How Can I bind Custom String Value to X Axis using XAML (no Code Behind)?


 

<telerik:RadChart x:Name="RadChart1" ItemsSource="{Binding Data}" Grid.Row="0" Grid.Column="0" Width="700" >

<telerik:RadChart.SeriesMappings>
<
telerik:SeriesMappingCollection>
<
telerik:SeriesMapping LegendLabel="CandleStick Series" >

 <telerik:SeriesMapping.SeriesDefinition >

<telerik:CandleStickSeriesDefinition /> 
</
telerik:SeriesMapping.SeriesDefinition>

<telerik:ItemMapping FieldName="High" DataPointMember="High" />

<telerik:ItemMapping FieldName="Low" DataPointMember="Low" />

<telerik:ItemMapping FieldName="Open" DataPointMember="Open" />

<telerik:ItemMapping FieldName="Close" DataPointMember="Close" />

<telerik:ItemMapping FieldName="CName" DataPointMember="XValue" />
</telerik:SeriesMapping>

</telerik:SeriesMappingCollection>

 </telerik:RadChart.SeriesMappings>

<telerik:RadChart.DefaultView>

<telerik:ChartDefaultView>

<telerik:ChartDefaultView.ChartArea>

<telerik:ChartArea>

<telerik:ChartArea.AxisX>

<telerik:AxisX LabelRotationAngle="90" Title="Client Name"> </telerik:AxisX>

</telerik:ChartArea.AxisX>

<telerik:ChartArea.AxisY> <telerik:AxisY ExtendDirection="Down" AutoRange="False" MinorTickPointMultiplier="5" Step="{Binding Interval}" MinValue="{Binding MinValue}" MaxValue="{Binding MaxValue}" Title="Blood Volume (mL)">

 </telerik:AxisY>

 </telerik:ChartArea.AxisY>

 <telerik:ChartArea.Legend>

 <telerik:ChartLegend Visibility="Collapsed" /> </telerik:ChartArea.Legend>

</telerik:ChartArea> </telerik:ChartDefaultView.ChartArea> </telerik:ChartDefaultView> </telerik:RadChart.DefaultView> 

</telerik:RadChart>

 

Evgenia
Telerik team
 answered on 21 Jul 2011
1 answer
59 views
Dear Team

After adding a new row in DataGrid, if we click on any other row than both rows are shown as selected. We want that row that is clicked lately only it should be shown as selected and SelectedItems must only containt one element.

Regards
Shahnawaz Babar
Maya
Telerik team
 answered on 21 Jul 2011
3 answers
98 views
Hi

I want to get last selected column when I select new column.

Regards
Vijay
Milan
Telerik team
 answered on 21 Jul 2011
0 answers
68 views
Hello,

I want to change background color to gridview column when user click in a cell. I have this code:

 

private void SelectColumn (string columnName)
{

  foreach (var column in GridViewNew.Columns)
                {
                    if (column == columnName)
                    {
                        ((GridViewDataColumn)column ).Background = new SolidColorBrush(Color.FromArgb(255, 165, 215, 241));                       

                    }
                    else
                    {                     
                        ((GridViewDataColumn) column ).Background = new SolidColorBrush(Colors.White);                       
                    }
                }
}

At first it works, but when i click over another cell, the column chages its color but column´s footer doesn´t.

Gerardo
Top achievements
Rank 1
 asked on 21 Jul 2011
0 answers
105 views
Hi,

is it posisble to disable drag and drop only on a certain row but not entirely disable the row?

thanks
ronald
Top achievements
Rank 1
 asked on 21 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?