Telerik Forums
UI for WPF Forum
5 answers
679 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
216 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
108 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
142 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
149 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
180 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
138 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
189 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
132 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
1 answer
188 views
Columns are not cannot be re-sized beyond grid width when at least one column has Width set to *. This is not the behavior that I would expect and in my opinion it makes the * option almost useless because as soon as you use it, resizing columns behaviors awkwardly where the grid always tries to maintain a static total width and steals the width from other existing columns when a column is made wider.

<Window x:Class="TelerikRadGridViewTest.MainWindow"
        Title="MainWindow"
        Height="350"
        Width="525">
    <Grid>
        <telerik:RadGridView Name="grdEstimates"
                             Margin="5,1,0,0"
                             ShowGroupPanel="False"
                             IsFilteringAllowed="False"
                             AutoGenerateColumns="False"
                             IsReadOnly="True">
            <telerik:RadGridView.Columns>
 
                <telerik:GridViewDataColumn Header="Column1"
                                            Width="*"
                                            SortMemberPath="Column1"
                                            UniqueName="Column1" />
                <telerik:GridViewDataColumn Header="Column2"
                                            Width="Auto"
                                            SortMemberPath="Column2"
                                            UniqueName="Column2" />
                <telerik:GridViewDataColumn Header="Column3"
                                            Width="Auto"
                                            SortMemberPath="Column3"
                                            UniqueName="Column3" />
                <telerik:GridViewDataColumn Header="Column4"
                                            Width="Auto"
                                            SortMemberPath="Column4"
                                            UniqueName="Column4" />
                <telerik:GridViewDataColumn Header="Column5"
                                            Width="Auto"
                                            SortMemberPath="Column5"
                                            UniqueName="Column5"
                                            DataFormatString="{}{0:C}" />
                <telerik:GridViewDataColumn Header="Column7"
                                            Width="Auto"
                                            SortMemberPath="Column7"
                                            UniqueName="Column7"
                                            DataFormatString="{}{0:C}" />
                <telerik:GridViewDataColumn Header="Column7"
                                            Width="Auto"
                                            SortMemberPath="Column7"
                                            UniqueName="Column7" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>


I would expect the behavior for Width * instead to fill the available space if there is additional available horizontal space within the RadGridView control to fill. Generally this would be equal to the situation where a horizontal scroll bar is not automatically shown because it is not needed. If there is no additional horizontal space to consume with the * columns(s) then either their MinWidth values and/or Auto behavior come into play to determine what the size of these columns should be. After initial layout is done and the user attempts to re-size a column, then any column should allow resizing to grow the column larger up until it's MaxWidth value and push any columns to extend into the clipped region causing horizontal scroll to become active if it wasn't already.

If I change the definition of Column1 so that it has a Width of Auto instead of * so effectively there are no * columns then everything works as expected. Well almost, that is except for when the total width of all columns is less than the width of the GridView control itself then I get what a lot of people describe as the "extra blank column" which I understand is just there because there are no * columns to automatically fill the space. This is where I would expect a properly behaving * column to kick in and properly consume that available space, but only in this situation.
Vlad
Telerik team
 answered 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
PersistenceFramework
DataPager
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?