Telerik Forums
UI for WPF Forum
3 answers
173 views
Hi,
i need to change at run time the culture of all controls used in my application, but i've a RadTimeBar's localization problem.

I've try to use the solution posted by Evgenia in the "TimeBar Localization does not work - please help" thread with a button that set the French culture on click, but it doesn't work for me.

My code behind is:

        private void btn_Click(object sender, RoutedEventArgs e)
        {
            CultureInfo culture = new CultureInfo("fr");
            System.Threading.Thread.CurrentThread.CurrentCulture = culture;
            System.Threading.Thread.CurrentThread.CurrentUICulture = culture;
        }

The only way to change the language of RadTimeBar's labels is to destroy and recreate the RadTimeBar on windows loaded, because nothing changes if i only set the Culture.

I'm using Q3-2011 version, there's any other solution for this problem?

Thanks,

Rob
Tsvetie
Telerik team
 answered on 27 Sep 2012
5 answers
691 views
hi,

i'm using the newest Verison of RadCrontrols for WPF. The ItemSource of my gridView is a MVVM (ObservableCollection<Paketdata>).

I my codebehind i run through all the Items in GridView:
var itemsSource = UebersichtDataGrd.ItemsSource as IEnumerable;           
 foreach (Paketdata item in itemsSource)
 {
      if (!string.IsNullOrEmpty(item.Modul))
      {
           // SET Backgroundcolor of GridView row
      }        
}

How do i set the Backgroundcolor of the GridViewRow in this case?
Thanks
Best Regards
Rene
Nagendra
Top achievements
Rank 1
 answered on 27 Sep 2012
1 answer
230 views
Hi.
the problem im facing is that i try to use RadRichTextbox as a document designer. It works perfect for wordlike documents but what i need is to get WSIWG designer of HTML or XAML. I need to put comboboxes (<select> tag for html), textboxes into that document.
and this tag is just skipped during loading into RadDocument. Is there a workaround to this or maybe should i use some other controls? Thanks in advance for any ideas.

Greetings
Maciek
Mihail
Telerik team
 answered on 27 Sep 2012
1 answer
114 views
I have a bug with Autorange = true. The line and bubbles are not in a line! (fail autorange.png )
If I load it again (autorange_small.png ) its working but with very strange autorange.

If i calculate the Y-Axis by my self, there is no problem!

Have you ever seen anything like this? 

thanks
Petar Kirov
Telerik team
 answered on 27 Sep 2012
2 answers
145 views
Hi,
Do you have example available for serializing WPF RadGridView FilterDescriptorCollection to XML file?

I followed some previous thread and the link was pointing to your WPF Controls Examples app, but I couldn't find it there.
Ari
Top achievements
Rank 1
 answered on 27 Sep 2012
2 answers
152 views
HI,
I want to set a document image in the leaf node, currently i have set a folder image at parent node.
can you please tell me how can i set that ?

please check the image for more information.

Regards,
Srinivas.
Ravi
Top achievements
Rank 1
 answered on 27 Sep 2012
2 answers
192 views
Hi,
I have a requirement to pinned the RadPane when i clicked on AutoHideArea,( i have overrided the OnMourEnter of Radpane and changed the moueseenter event)
public class CustomPane : RadPane
{
protected override void OnMouseEnter(System.Windows.Input.MouseEventArgs e)
{
this.ChangeVisualState(true);
            
}
        
now i want to pinned the CustomPane when i click on the auto hide area. can any one help me ? 

I have attached a image please check for more information

Thanks in Advance.
Srinivas.
Ravi
Top achievements
Rank 1
 answered on 27 Sep 2012
1 answer
149 views
Hello,

i'm trying to bind a xaml document to my radrichtextbox which is situated in a backstageitem. This doesn't want to work. 
Below you can see the code i use in my backstageitem, the CurrentPatchnotes is situated in the datacontext of a contentcontrol in the backstageitem. The textblock shows the value correctly (when uncommented ofc) yet the richtextbox won't show a thing.


                                                <Grid Grid.Row="1" Height="400">
                                                    <!--<TextBlock Text="{Binding CurrentPatchNotes, UpdateSourceTrigger=PropertyChanged}"/>-->
                                                    <telerik:XamlDataProvider RichTextBox="{Binding ElementName = Viewer}" Xaml="{Binding CurrentPatchNotes, UpdateSourceTrigger=PropertyChanged}" />
                                                    <telerik:RadRichTextBox IsSpellCheckingEnabled="False" x:Name="Viewer" IsReadOnly="True"/>
                                                </Grid>


Someone has any experience with this?

Thank you in advance
Martin Ivanov
Telerik team
 answered on 27 Sep 2012
0 answers
195 views
In a wpf application I have  ScrollViewer that contains a Grid with 1 row. The height row value is *. 
In the grid row there is a RadGridView. The RadGridview extends with height/width infinity.
How can not allow the RadGridview extends ? 
Giulio
Top achievements
Rank 1
 asked on 27 Sep 2012
0 answers
149 views
Hi Support Team,
 
I would like to know and have the sample project in WPF how to add  new RowDetailsTemplate for every row of RadGridView dynamically because every row detail template will having different binding and different controls and navigation buttons at run time.

Please let me know either can I add a new RowDetailsTemplate for every row of RadGridView dynamically or not. I can, please provide the sample application how to achieve this.
My Code is following which adds but while expending row details it throw an exception which is following after the code.

class testApp
{
.....................
..................
 private void rgvParent_RowLoaded(object sender, RowLoadedEventArgs e)
        {
            DataTemplate dt = (DataTemplate)XamlReader.Parse(RowDetailsTemplate(count));
            e.GridViewDataControl.RowDetailsTemplate = dt;
                     
               
        }

        private string RowDetailsTemplate(int count)
        {
            return @" <DataTemplate
                   xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation""
                   xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""
                   xmlns:telerik=""http://schemas.telerik.com/2008/xaml/presentation""
                   xmlns:Event=""clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity""
                   xmlns:cmd=""clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WPF4"" >
                   <telerik:RadGridView Name=""playersGrid" + count.ToString() + @"""     GridLinesVisibility=""Both"" IsReadOnly=""True"" AutoGenerateColumns=""true"" VerticalAlignment=""Top""
                              CanUserFreezeColumns=""False"" ShowGroupPanel=""false"" RowIndicatorVisibility=""Collapsed"" Width=""Auto"" Height=""Auto""
                              ScrollViewer.VerticalScrollBarVisibility=""auto""  ScrollViewer.CanContentScroll=""True"" ScrollViewer.HorizontalScrollBarVisibility=""auto""
                              SnapsToDevicePixels=""False"" VerticalContentAlignment=""Top"" CanUserResizeColumns=""False""  SelectionMode=""Single"" SelectionUnit=""FullRow""
                               Background=""#EAF3FC"" GroupPanelBackground=""#CFE3F9"">
                            <telerik:RadGridView.ColumnGroups>
                                <telerik:GridViewColumnGroup Name=""DefaultGroup" + count.ToString() + @""">
                                </telerik:GridViewColumnGroup>
                            </telerik:RadGridView.ColumnGroups>
                            <telerik:RadGridView.Columns>
                                <telerik:GridViewDataColumn ColumnGroupName=""DefaultGroup" + count.ToString() + @""" />
                                <telerik:GridViewDataColumn ColumnGroupName=""DefaultGroup" + count.ToString() + @""" />
                                <telerik:GridViewDataColumn ColumnGroupName=""DefaultGroup" + count.ToString() + @""" />
                            </telerik:RadGridView.Columns>
                        </telerik:RadGridView>
                   </DataTemplate>";
               
        }
    }


While expending row details it throws the following exception.

InvalidOperationException was unhandled

An infinite loop appears to have resulted from repeatedly invalidating the TimeManager during the Layout/Render process.


I hope someone will provide solution for this requirement.

Thanks
Laxman
Laxman
Top achievements
Rank 1
 asked on 27 Sep 2012
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
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?