Telerik Forums
UI for WPF Forum
1 answer
109 views
I have an RadDocument and added a MailMergeDataSource to it.
I want to merge the first record.

When using this:
editor.Document.MailMergeDataSource.MoveToFirst();
resultDoc = editor.Document.MailMergeCurrentRecord();
... the CurrentItem seems to be empty: 

But, doing it this way:
editor.Document.MailMergeDataSource.MoveToFirst();
editor.Document.MailMergeDataSource.MoveToNext();
editor.Document.MailMergeDataSource.MoveToPrevious();
resultDoc = editor.Document.MailMergeCurrentRecord();
..., the CurrentItem is Ok: 



Iva Toteva
Telerik team
 answered on 13 Mar 2012
7 answers
165 views
Hello!
RadExpander is a nice component that I want to use in my application. Unfortunately there is a small draw back to it: each time I click it there is that dotted frame visible that I would like to hide it, 
please check the attached images
Is there a work arount for it?

Thank you!
Roxana C
Petar Mladenov
Telerik team
 answered on 13 Mar 2012
4 answers
141 views
I have problem with a Delete button that I added beside this GridView. At the runtime its IsEnabled property goes "false"!
would you please help me to figure it out, why?

Here is the XAML Code:

<telerik:RadGridView Margin="12,12,12,68" Name="radGridView1" AutoGenerateColumns="False" FlowDirection="RightToLeft"
                             ElementExporting="radGridView1_ElementExporting" ShowColumnFooters="True" ShowGroupFooters="True" AutoExpandGroups="True"
                             ShowInsertRow="False" SelectionMode="Extended" ActionOnLostFocus="None">
            <telerik:RadGridView.Columns>
                                                               ...
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

        <Button Height="50" HorizontalAlignment="Left" Margin="68,0,0,12" x:Name="btnDelete" VerticalAlignment="Bottom" Width="50" Click="btnDelete_Click" Command="telerikGrid:RadGridViewCommands.Delete" CommandTarget="{Binding ElementName=RadGridView1}"/>

and this is the code-behind it:

public partial class myProgram : Page
    {
        KDBEntitiesSecond DBContext = new KDBEntitiesSecond();

        public myProgram()
        {            
            InitializeComponent();

            var queryGrid = from c in DBContext.TblLeads select c;
            radGridView1.ItemsSource = queryGrid;

        }
        private void btnDelete_Click(object sender, RoutedEventArgs e)
        {            
            DBContext.SaveChanges();
        }
    }

Thanks in advance!
Kevin
Top achievements
Rank 1
 answered on 12 Mar 2012
2 answers
115 views
When I select an item in a RadTreeListView, press CTRL+C to copy, and paste into notepad, the results suggest to me that what the control is actually doing is calling the list item's ToString() method and placing the string result on the clipboard. The objects we display in our list view do not override ToString(), so the copied result is the return value from Object.ToString(), which is the name of the type.

Since we can't come up with a useful string representation of the objects we display, we'd rather just disable the copy operation, rather than have it put some not-very-useful string on the clipboard. Is there a way to do this?

Thanks,
Larry
Larry
Top achievements
Rank 1
 answered on 12 Mar 2012
1 answer
405 views
In Java Swing, there is a TreeTable component. Is it possible to implement something similar by integrating RadTreeView and RadGrid?
Petar Mladenov
Telerik team
 answered on 12 Mar 2012
2 answers
113 views
Hello,

I appologise if this has been asked before, but my search yielded no results.

In my application I have a ListBox which has a basic ItemTemplateSelector. This works perfectly fine without any themes, and with Summer theme, but it no longer works when the Metro theme is applied. The Template Selector does not get fired at all. I have narrowed the issue down to the following line of code in my resource dictionary:

<Style TargetType="{x:Type ListBoxItem}">
     <Setter Property="telerik:StyleManager.Theme" Value="Metro"/>
</Style>

If I take the Style out, or change it to Summer theme, everything works fine. The issue seems to lie with the Metro theme, but I can not narrow down the issue any further. I have not posted the Tempate Selector code since it works with other themes, therefore I do not think that is where the issue lies. If you want me to post that code as well, please let me know.

VS2010
.NET 4.0
Telerik v2011.3.1220.40

Thank you,
Aleks
Aleks
Top achievements
Rank 1
 answered on 12 Mar 2012
0 answers
118 views
Hi,

I am using RadGridView in WPF application and binding it to a DataTable view. For my RadGridView I have set AutoGenerateColumns as "True" (to get my columns automatically).
 
Problem: In DataTable object (which I am binding to RadDataGridView) I have one DateTime column. In RadDataGridView it only shows Date calender in the dropdown for picking date, but no time. More over I want to change date format for DateTime column. As AutoGenerateColumns  is true, I don't have any control over the columns. Can anyone please show me how to show RadDateTimePicker in RadGridView column when AutoGenerateColumns is True?

My XAML code for RadGridView  is as below:

<telerik:RadGridView Grid.Row="1" AutoGenerateColumns="True" ItemsSource="{Binding ManualDataTable}" IsReadOnly="False" CanUserDeleteRows="True"  Name="radGridViewManualData" ShowInsertRow="True" />

Any help will be highly appreciated.


Regards,
Moon
Moon
Top achievements
Rank 1
 asked on 12 Mar 2012
0 answers
119 views
Hi Telerik Team,

Is it possible to add a checkbox inside a RadGridView's GroupDescriptor? so when user click on it, all checkboxes for sub-items inside the grouping will be checked as well.

Thanks,
Andy
Andy
Top achievements
Rank 1
 asked on 12 Mar 2012
1 answer
181 views

Hello Telerik

I have the following problem:

When I use docking and I use a single pane at the buttom Capture1.PNG  then maximize the Window, then maximize the buttom pane Capture2.png, then restore down the Window, the pane will stay the same (maximized) size Capture3.png. The buttom pane will make the tabs disappear and if I use AutoHide Option it will exced the Window size Capture4.png.

Albert
Top achievements
Rank 1
 answered on 12 Mar 2012
1 answer
164 views

Hello,

I have 2 questions about RADTreeView for WPF:

1) I need to store a value alongside header in my tree nodes. Every tree node will have the follwoing information:
Name
Record #

However, only Name will be visible in the tree (stored as Header). Record # will not be visible but should be stored for background processing. Other tools typically have a Value property alongside Header (or Text). Does Telerik's TreeView allow for storing other data elements in a node?

2: I have a ContextMenu in my tree. Here is the code for the menu's click event:
        private void TreeContextMenu_ItemClick(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            // Get the clicked context menu item
            RadMenuItem menuItem = ((RadRoutedEventArgs)e).OriginalSource as RadMenuItem;
            string header = menuItem.Header as string;
            switch (header)
            {
                case "Add":
                    // code to insert a new node below the highlighted node.
                    break;
                case "Delete":
                    // code to delete the highlighted node in the tree.
                    break;
            }
        }

A) How can I insert a new node below the currently selected node in the tree?
B) How can I delete the currently selected node?

Thanks,
Hamid

Tina Stancheva
Telerik team
 answered on 12 Mar 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?