Telerik Forums
UI for WPF Forum
8 answers
423 views
Hi,

I have bar chart with  Y-Axis having range from 0 to 100. On the same chartarea I have one more Y-Axis(right hand side) having range from -100 to 100 in the step of 50. i want to make -100, -50 label values invisible so that 0 starts in the middle of the Y-axis.  I am using this Y-Axis for showing line chart. Please help me achieve this.
Peshito
Telerik team
 answered on 03 Nov 2011
1 answer
135 views

In the treelistview row loaded event , when I am trying to expand a tree node programatically,the scrollviewer resets.

 

private void rtSummaryInfo_RowLoaded(object sender, RowLoadedEventArgs e)

 

{    

 

        TreeListViewRow

 

lobjTreeListViewRow = (e.Row as Telerik.Windows.Controls.TreeListView.TreeListViewRow);

 

 

        SummaryData lobjSummaryData = (e.Row as Telerik.Windows.Controls.TreeListView.TreeListViewRow).DataContext as SummaryData;

 

 

        if (_lstExpandedNode.Contains(lobjSummaryData.NodeName))

 

        {

     

 

          lobjTreeListViewRow.IsExpanded =

true;  // at this point, scrollviewer gets resets 

 

        }

}

I need to maintain the scroll position while expanding a node. Your help is appreciated.

Sharada
Top achievements
Rank 1
 answered on 03 Nov 2011
0 answers
104 views
Hello,
I would like to implement in my WPF application autoupdate functionality, like WPF online demos. Is it using click once??
My application will be separated in modules, and I want to each module check for newest version, download and install it automatically.
The application is goning to run in our intranet, not internet like demos.
I was seeing demos source but it's a bit complicated, I would like to see a simplest example.

Thanks in advance
Alejandro
Dominios Molinos
Top achievements
Rank 1
 asked on 03 Nov 2011
5 answers
256 views
I've noticed a strange performance issue with QueryableCollectionView (which it seems is being used as the default CollectionView for the RadGridView). If I add just a single item to the list, QueryableCollectionView ends up calling PopulateListInternal, which will iterate through ALL of the items in the in my ObservableCollection. Why is this the case?
Vlad
Telerik team
 answered on 03 Nov 2011
1 answer
1.1K+ views

According to their documentation “Link below” to set their date time picker to military time you have to create a new culture. We are using the culture below, as you can see from the screen shot it got it half way right but I think it would be better without the AM & PM after it.I attached a screen shot of the clock. We just want to remove the AM and PM.

 

CultureInfo cultureInfo = new CultureInfo("en-US");

cultureInfo.DateTimeFormat.ShortTimePattern = "H:mm";

cultureInfo.DateTimeFormat.LongTimePattern = "H:mm";

cultureInfo.DateTimeFormat.PMDesignator = "";

cultureInfo.DateTimeFormat.AMDesignator = "";   

 

 

http://www.telerik.com/help/wpf/raddatetimepicker-features-formatting.html

 

Ivo
Telerik team
 answered on 03 Nov 2011
1 answer
394 views
If we set style via  
<UserControl.Resources>
       <Helpers:RequiredValueStyleSelector x:Key="RequiredFieldStyleSelector" />
       <Style TargetType="telerik:GridViewDataColumn">
           <Setter Property="CellStyleSelector" Value="{StaticResource RequiredFieldStyleSelector}"/>
       </Style>
 </UserControl.Resources>


within our User Control
all is working as expected but if comment this in usercontrol out and put the same code

<Helpers:RequiredValueStyleSelector x:Key="RequiredFieldStyleSelector" />
<Style  TargetType="telerik:GridViewDataColumn">
    <Setter Property="CellStyleSelector" Value="{StaticResource RequiredFieldStyleSelector}"/>
</Style>

 

 into generic.xaml nothing happens

Any suggestions?
PS. in Helper.dll attributes look like

PS. in Helper.dll attributes look like

 

[assembly: ThemeInfo(
    ResourceDictionaryLocation.None,
    ResourceDictionaryLocation.SourceAssembly
    )]

 

 

 

Bob
Top achievements
Rank 1
 answered on 03 Nov 2011
1 answer
780 views
  Hi everybody
i try to change headerRow Color
but it have a little i don't know to how change. pls check the attach.

<Grid.Resources>
            <Style x:Key="style1" TargetType="telerik:GridViewHeaderRow">
                <Setter Property="Background" Value="#FFB8C8E4"/>
                <Setter Property="BorderThickness" Value="0"/>
                
            </Style>
           
            <Style x:Key="style3" TargetType="telerik:GridViewFilteringDropDown">
                <Setter Property="IsEnabled" Value="False" />
            </Style>
            
            <Style x:Key="style2" TargetType="telerik:GridViewHeaderCell">
                <Setter Property="Background" Value="#FFB8C8E4"/>
                <Setter Property="BorderThickness" Value="0"/>
                <Setter Property="Foreground" Value="Black"></Setter>
            </Style>
        </Grid.Resources>

<telerik:RadGridView  Margin="40,24,88,72" HeaderRowStyle="{StaticResource style1}" ItemsSource="{Binding Collection}">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn FilteringControlStyle="{StaticResource style3}" Header="EmployeeName" HeaderCellStyle="{StaticResource style2}" DataMemberBinding="{Binding Property3}"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
Maya
Telerik team
 answered on 03 Nov 2011
2 answers
364 views
There are combo boxes all over the app that are experiencing the same issue.  This combo box in particular is bound to a Dictionary which is loaded based on the current language the user has selected in their preferences of the application.  Normal text fields etc are display the correct translation from the correct resource file.  Placing a breakpoint in code shows the correct translated values in the MyTypes, however, from the UI the combo box ItemsSource are always displayed in English.

How can I get the correct translated item from the resource file to be display in the combo box?

Visual Studion 2010

public Dictionary<string, string> MyTypes
{
get { return myTypes; }
}
public void InitializeCriteria(SelectionCriteria criteria)
{
var culture = Thread.CurrentThread.CurrentUICulture.ToString();
base.InitializeStandardSelectionCriteria(criteria, culture);
// Load the Types
var mTypes = MyTypes.Select(c => new Tuple<string, string>(c.Key, c.Value));
Array.ForEach(mTypes.ToArray(), criteria.MyTypes.Add);
var defaultMyType = criteria.MyTypes.FirstOrDefault();
if (defaultMyType != null)
{
criteria.MyTypes= defaultMyType .Item1;
}
}


protected override void OnInitialize(ESEntities entities)
{
    base.OnInitialize(entities);
 
    LoadMyTypes(entities);
    LoadSomeOtherData(entities);
}
private
void LoadMyTypes(ESEntities entities)
{
 myTypes = new Dictionary<string, string>()
 {
  { "" , Resources.Resources.NoneLabel },
  { "D", Resources.Resources.DMessage },
  { "F", Resources.Resources.FMessage},
  { "H", Resources.Resources.HMessage },
  { "I", Resources.Resources.IMessage },
  { "L", Resources.Resources.LMessage } };
}

 

<GroupBox x:Name="LGroup" Header="{x:Static Resources:Resources.OptionsL}">
           <telerik:RadComboBox x:Name="attenuationComboBox"
                 ToolTip="{x:Static Resources:Resources.OptionsDesired}" Height="23"
                 VerticalAlignment="Top"  ItemsSource="{Binding Criteria.MyTypes, Mode=OneWay,
                 NotifyOnSourceUpdated=True, NotifyOnTargetUpdated=True,UpdateSourceTrigger=PropertyChanged}"
                 SelectedValue="{Binding Criteria.MyType, Mode=TwoWay}"
                 IsEnabled="{Binding SelectionOptions.CEnabled}" DisplayMemberPath="Item2" SelectedValuePath="Item1" />
</GroupBox>

 

 

 

 

 

Woshi
Top achievements
Rank 1
 answered on 03 Nov 2011
1 answer
47 views
Hi,

Children rows (when expanded) don't get drawn properly after using AddRange(elementList) to add to the Children collection. Visually, exactly one row gets added to the children elements regardless of how many elements in the elementList list. They seems to get drawn properly only if I manually collapse then expand them again.

Thanks,

Vince
Vince
Top achievements
Rank 1
 answered on 02 Nov 2011
3 answers
324 views
Hi,

I've created a custom appointment just like this tutorial demonstrates.

Everything works fine, but now I'm trying to apply a style trigger to an appointmentiotemcontenttemplate:

        <DataTemplate x:Key="AppointmentItemContentTemplate">
            <Grid>
                <Border>
                    <Border.Style>
                        <Style>
                            <Style.Triggers>
                               <DataTrigger Binding="{Binding ProductCategory}" Value="Building">
                                    <Setter Property="Border.Background" Value="CornflowerBlue"></Setter>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </Border.Style>
                    <Grid>
                        <TextBlock Margin="8,2" HorizontalAlignment="Stretch" TextWrapping="Wrap" Text="{Binding Subject}" Grid.Column="1" />
                        <TextBlock Margin="8,2" HorizontalAlignment="Stretch" TextWrapping="Wrap" Text="{Binding ProductCategory}" Grid.Column="1" />
                    </Grid>
                </Border>
            </Grid>
        </DataTemplate>


In two instances here I'm trying to use the ProductCategory property, and it won't work. If I were to change the trigger to use the 'Subject' property of the appointments I am dragging (from a listbox I should add) onto the ScheduleView it works without a problem. Likewise, the textblock that attempts to display the ProductCategory does not work, whereas the 'Subject' does. It seems that any additional fields I have added to the Job.cs (custom appointment) are not accessible!? The syntax (private/get/set) is exactly the same as the tutorial so I can't understand it?

Thanks a LOT for any help in advance!
Philipp
Top achievements
Rank 1
 answered on 02 Nov 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?