Telerik Forums
UI for WPF Forum
2 answers
149 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
153 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
196 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
151 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
198 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
154 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
207 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
1 answer
227 views
I'm using RadGridView with a GridViewDataColumn defined with custom CellTemplate and CellEditTemplate defined. What I would like to do now is affect something defined in my DataTemplate for the CellTemplate based on whether it's row is selected or not.

More specifically in my example I have a DataTemplate that contains a TextBlock with TextTrimming and TextWrapping set up to show the text as a single line with character ellipsis when there is overflow. What I would like to do is display the text with TextWrapping turned on and without TextTrimming which I could do various ways if I can access the selection state of the parent row for that cell.

<telerik:GridViewDataColumn.CellTemplate>
    <DataTemplate>
        <TextBlock Text="{Binding Note}"
               TextWrapping="NoWrap"
               TextTrimming="CharacterEllipsis" />
    </DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>

What's the best way for me to accomplish this with the RadGridView control? Is there an inherited attached property I can use or will a relative binding work. I would prefer doing this through a defined style with triggers on my TextBlock if possible to avoid writing value converters.
Jeff
Top achievements
Rank 1
 answered on 26 Sep 2012
1 answer
182 views
Can I construct a bar chart, stacked, that looks like the following?

http://www.highcharts.com/demo/bar-negative-stack
Petar Kirov
Telerik team
 answered on 26 Sep 2012
1 answer
133 views
Hey
I think, the tile tells all.
I don't want the enduser be able to enter a negative price. - How can I do this!?

Thx for any tipp!
Tina Stancheva
Telerik team
 answered on 26 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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?