Telerik Forums
UI for WPF Forum
1 answer
291 views
I have done grouping in the Telerik Gridview,My task is to Alter the header of the Group item at the run time , So i have implemented the below Code while clicking on the Expander i could able to get the content Nothing is displayed. 
Please help me on this 


 <telerik:RadGridView x:Name="telerikGrid" ItemsSource="{Binding Path=Collection}"  GridLinesVisibility="Horizontal" KeyboardNavigation.TabNavigation="Cycle" ShowGroupPanel="False"
 AutoGenerateColumns="False"  CanUserInsertRows="False" AutoExpandGroups="True" CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed" CanUserResizeColumns="False" CanUserSortColumns="True" CanUserReorderColumns="False" 
 MinHeight="360" MaxHeight="360" MaxWidth="880" MinWidth="880"  ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Visible">
      <telerik:RadGridView.GroupRowStyle>

<Style TargetType="telerik:GridViewGroupRow">
                    <Setter Property="Background" Value="Red"/>
                    <Setter Property="BorderBrush" Value="Yellow"/>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type telerik:GridViewGroupRow}">
                                <telerik:RadExpander IsExpanded="True" Background="#2A5581" BorderThickness="1,1,1,1">
                                    <telerik:RadExpander.Header>
                                        <DockPanel>
                                            <Grid>
                                                <Rectangle Fill="White" Width="Auto" Margin="0,1,0,1" Stroke="Black"/>
                                                <TextBlock Text="{Binding Path=TextName}" Margin="4,0,4,0" Grid.Column="0" Grid.Row="0" Foreground="Black"/>
                                            </Grid>
                                            <Grid>
                                                <Rectangle Fill="Black" Width="Auto" Margin="0,1,0,1"/>
                                                <TextBlock Text="{Binding Path=TextName}" Margin="4,0,4,0" Foreground="White" />
                                            </Grid>
                                        </DockPanel>
                                  
                                    </telerik:RadExpander.Header>
                                    <telerik:RadExpander.Content>
                                        <ItemsPresenter/>
                                    </telerik:RadExpander.Content>
                                </telerik:RadExpander>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>

                </Style>
            </telerik:RadGridView.GroupRowStyle>
<telerik:RadGridView.Columns>
 <telerik:GridViewColumn  MaxWidth="40" MinWidth="40">

          </telerik:GridViewcolumn>
</telerik:RadGridView.Columns>
         <telerik:RadGridView.Columns>
 <telerik:GridViewColumn  MaxWidth="40" MinWidth="40">

          </telerik:GridViewcolumn>
</telerik:RadGridView.Columns>
         <telerik:RadGridView.Columns>
 <telerik:GridViewColumn  MaxWidth="40" MinWidth="40">

          </telerik:GridViewcolumn>
</telerik:RadGridView.Columns>
</telerik:RadGridView>



Vanya Pavlova
Telerik team
 answered on 31 Jan 2013
1 answer
180 views
Howdy. I know this component is fairly new... but is there anyway to set the Add and Delete commands? Basically, they need to do things in my view model. As far as I can tell, they seem currently hard coded to actually add or remove items from the underlying collection.
Dimitrina
Telerik team
 answered on 31 Jan 2013
3 answers
150 views
I have a custom style for my connections. I set the target cap type as follows:
<Setter Property="TargetCapType" Value="Arrow1Filled" />

The result is an arrow pointing in the wrong direction, which is kind of ugly. See attached image!

How can I fix this?
Tina Stancheva
Telerik team
 answered on 31 Jan 2013
4 answers
387 views
Hello,

My list of data containing an image in byte [].
How I can include that image in a mail merge.
I tried using the INCLUDEPICTURE but does not work.

Is there any way?

Thanks and sorry for my English,

Jose
Petya
Telerik team
 answered on 31 Jan 2013
5 answers
217 views
With the help of a sample application I found a memory leak in Richtextbox.
It just displays a Dialog with a RichTextBox and then closes the window. After closing a call to GC.Collect() is made.
If you repeat that (e.g. 15 times) than the consumed memory is growing.

Please, can you confirm it is a bug or tell me the solution?

sample project: Here
Boby
Telerik team
 answered on 31 Jan 2013
10 answers
440 views
Hi everyone,

I use a RadRichText box and I need to insert a Telerik.Windows.Documents.Model.Table object(It is generated in Runtime)
into a Document, and in each cell I add a placeholder using InlineUIContainer,
so the question is how can I disable editing of my cell that contains a placeholder,
because currently all my functionality works perfect but cells are editable.

Method below initializes a TableCell instance where a placeholder is injected.
private double InitDataCell(TableCell dataCell, DynamicColumnViewModel columnVm, bool isWidth100, double percent)
{
            double cellHeight = 0;
 
            dataCell.Tag = columnVm.DynamicCellData.TableID.ToString();
 
            if (isWidth100)
            {
                dataCell.PreferredWidth = new TableWidthUnit(TableWidthUnitType.Percent, percent);
            }
            else
            {               
                dataCell.PreferredWidth = new TableWidthUnit(TableWidthUnitType.Fixed, columnVm.Width);
            }           
 
            dataCell.TextAlignment = columnVm.Alignment;
            dataCell.VerticalAlignment = RadVerticalAlignment.Center;
            var paragraph = new Paragraph();
            paragraph.TextAlignment = columnVm.Alignment;
            dataCell.Blocks.Add(paragraph);
 
            dataCell.Background = columnVm.DynamicCellData.Background;         
 
            var tb = new TextBlock
            {
                Text = columnVm.Expression,
                Tag = string.Format("{0}{1}", DynamicTableCommon.DynamicTable.TABLE_TAG_ID_PREFIX, columnVm.DynamicCellData.TableID.ToString()),
                FontSize = columnVm.DynamicCellData.FontSize,
                Background = new SolidColorBrush(columnVm.DynamicCellData.Background),
                Foreground = new SolidColorBrush(columnVm.DynamicCellData.Foreground),
                FontFamily = columnVm.DynamicCellData.FontFamily,
                FontWeight = columnVm.DynamicCellData.FontWeight,
                FontStyle = columnVm.DynamicCellData.FontStyle,
                TextDecorations = columnVm.DynamicCellData.TextDecoration
            };
 
            tb.VerticalAlignment = VerticalAlignment.Bottom;
 
            tb.HorizontalAlignment = PlaceHolderReplaceManager.ConvertRadTextAlignmentToHorAlignment(columnVm.Alignment);
 
            System.Windows.Controls.Border border = new System.Windows.Controls.Border();
            border.BorderThickness = new Thickness(0);
            border.BorderBrush = Brushes.Transparent;
            border.Background = new SolidColorBrush(columnVm.DynamicCellData.Background);           
            border.VerticalAlignment = VerticalAlignment.Center;
            border.HorizontalAlignment = HorizontalAlignment.Center;
            border.Child = tb;
 
            border.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));        
 
            Size s = new Size(border.DesiredSize.Width + 1, tb.DesiredSize.Height - 1);
            var uic = new DynamicCellInlineUIContainer(border, s);                         
 
            paragraph.Tag = columnVm.DynamicCellData.TableID.ToString();
            paragraph.Inlines.Add(uic);
 
            cellHeight = uic.Height + 10;
 
            return cellHeight;
 }

and another question is - In what Table property can I save my ViewModel ID(table ID) value, because when
I try to save it in a Tag property, it dissapears when I do an export my Document(contains a table with Tag initialized property) to Html using HtmlFormatProvider?

Thanks in advance.
Petya
Telerik team
 answered on 31 Jan 2013
9 answers
317 views
Hello,

I'd like to show/hide a radpane following a user choice, store in my code.

When user clicks on menu "hide/show zoom"
  I set the ishidden property by program and it works.

Now, I'd like that my code boolean will be update when user close directly the radpane (x).

I use this code :
 
<telerik:RadSplitContainer InitialPosition="FloatingOnly"
                    telerik:RadDocking.FloatingLocation="250, 50" MinWidth="150" MinHeight="150">
                <telerik:RadPaneGroup >
<
telerik:RadPane CanDockInDocumentHost="False" CanUserClose="True" x:Name="paneZoom" 
                                     Header="Zoom" IsHidden="{Binding DisplayZoom, Mode=TwoWay}"

but, my DisplayZoom property is not setting.

Have you an idea ?
Aurore



M
Top achievements
Rank 1
 answered on 31 Jan 2013
7 answers
336 views
Hi,

From what I understand the purpose of data virtualization is to only keep a finite number of records in memory at any given time.  However, while experimenting I found that the ItemsLoading event only gets called while I scroll down to the bottom of the RadGridView.  Once I am at the final row and start scrolling back up it is no longer being called.  This has led me to believe that records are not being unloaded from memory once they have been scrolled out of view.

I am wondering if I am missing something as I do not see any cache size member to set how many things to hold in memory at one time.  Any guidance on how to properly utilize the VirtualQueryableCollectionView with the RadGridView would be greatly appreciated.  The example posted is for RIA services, but we are not using RIA.
Vlad
Telerik team
 answered on 31 Jan 2013
10 answers
286 views
Hello,

how can I change the Style of the FilterRow e.g. to change Background and remove Borders...
It would be great if you have some XAML CodeExamples for that!

regards
Maya
Telerik team
 answered on 31 Jan 2013
1 answer
639 views
Hi,

When I click on Overflow Button Inside the toolbar then it shows the remaining control which are not visible, here in this case I want to stop/disable the animation when it shows the overflow controls.
Could anyone please tell me how can I disable this animation.

Thanks,
KK
Petar Mladenov
Telerik team
 answered on 31 Jan 2013
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
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?