Telerik Forums
UI for WPF Forum
2 answers
162 views
How can I determin in code which column is sorted in a RadGridView?
This always returns null

if (grid.CurrentColumn != null)
{
    DoSomething
}
else
    MessageBox.Show("No column selected");
Jeff
Top achievements
Rank 1
 answered on 29 Oct 2012
1 answer
76 views
I have a GridView with a GridViewDataColumn, EditTriggers is set to TextInput and F2. I select a cell and begin typing input. When the first character is entered it becomes highlighted essentially causing me to override the first letter with any subsequent characters. 

Essentially the same problem as in http://www.telerik.com/community/forums/winforms/gridview/editmode-rewrites-first-character.aspx

But that post says the issue has been addressed so possibly a different bug?
Yoan
Telerik team
 answered on 29 Oct 2012
2 answers
120 views

r.a.d.datepicker dont support other language date!!!

Dotnetnuke use this plugin in core va date use this object but dont can use this object for show date

r.a.d.datepicker dont support 1400 year or dates under 1980
when this bug is fix ?????????

arash
Top achievements
Rank 1
 answered on 29 Oct 2012
2 answers
119 views
When I open my project it is constantly reminding me that my project doesn't use the latest version of the WPF controls. But I can't seem to permanently turn off this notification. I can only tell it to remind me later.

Is there away to tell the extension not to remind me again for this project? When the time comes that I want/need to update, I will do a manual update. This project is source controlled on TFS so I'd rather not use an automatic update.
Rayne
Top achievements
Rank 1
 answered on 29 Oct 2012
0 answers
517 views
The new update to my trial version contains binaries for WPF40 and WPF45.  I am using VS 2010.  Which should I use; WPF40 or WPF45?
Rob
Top achievements
Rank 1
 asked on 29 Oct 2012
3 answers
176 views
There seems to be a Bug within the MaskedTextInputControl. When I set the Mask to Alphanumeric ( f.e. a20 ) I can hit return to break the line. When Setting Mask to literals ( f.e. l20 ) this behavior disappers.

Is there a known workaround so I can set my TextInput to alphanumeric without being able to break the line ?

Bug can be easily reproduced at the Demo

See here : http://s1.directupload.net/file/d/3048/o8ymta7s_jpg.htm
Tina Stancheva
Telerik team
 answered on 29 Oct 2012
0 answers
214 views
What's wrong with this code???
why binding doesn't work???
Check the attachment.


public class UcMetadataPropertyGrid : RadPropertyGrid
    {
        public UcMetadataPropertyGrid(MetadataCollection col)
        {
            foreach (Metadata data in col)
            {
                PropertyDefinition def = new PropertyDefinition();
                def.DisplayName = data.Name;
                //def.Binding = new Binding("StringValue");
                //def.Binding.Source = data;
                //def.Binding.Mode = BindingMode.TwoWay;
                def.EditorTemplate = CreateEditor(data);
                this.PropertyDefinitions.Add(def);
            }
        }

        private DataTemplate CreateEditor(Metadata metadata)
        {
            var dt = new DataTemplate();
            var textbox = new RadWatermarkTextBox() { Name = "cp" };
            textbox.Text = "{Binding Path=StringValue}";
            var binding = new Binding
            {
                Path = new PropertyPath("StringValue"),
                Mode = BindingMode.TwoWay,
                UpdateSourceTrigger = UpdateSourceTrigger.LostFocus,
                Source = metadata
            };
            textbox.SetBinding(Metadata.StringValueProperty, binding);

            //dt.VisualTree = textbox;
            //dt.Seal();
            return dt;
        }

        private DataTemplate CreateEditor()
        {
            var sb = new StringBuilder();
            sb.Append("<DataTemplate ");
            sb.Append("xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' ");
            sb.Append("xmlns:controls='clr-namespace:Nezam.DigitalVideoArchive.UI.Controls;assembly=Nezam.DigitalVideoArchive.UI' ");
            sb.Append("xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>");
            sb.Append("<Grid>");
            sb.Append(@"<TextBox Text=""{Binding StringValue,Mode=TwoWay}"" />");
            sb.Append("</Grid>");
            sb.Append("</DataTemplate>");
            
            return (DataTemplate)System.Windows.Markup.XamlReader.Parse(sb.ToString());
        }
    }



public MainWindow()
        {
            InitializeComponent();

            MetadataCollection col = new MetadataCollection();

            StringMetadata sm = new StringMetadata();
            sm.Name = "StringMetadata";
            sm.StringValue = "Amin";
            col.Add(sm);

            BoolMetadata bm = new BoolMetadata();
            bm.Name = "BoolMetadata";
            bm.Value = true;
            col.Add(bm);

            GuidMetadata gm = new GuidMetadata();
            gm.Name = "GuidMetadata";
            gm.Value = Guid.NewGuid();
            col.Add(gm);

            DateTimeMetadata dm = new DateTimeMetadata();
            dm.Name = "DateTimeMetadata";
            dm.Value = DateTime.Now;
            col.Add(dm);


            UcMetadataPropertyGrid pg = new UcMetadataPropertyGrid(col);
            //pg.FlowDirection = System.Windows.FlowDirection.RightToLeft;
            this.Grid1.Children.Add(pg);
        }
Amin
Top achievements
Rank 1
 asked on 29 Oct 2012
1 answer
142 views
The following xaml give me an error (Could not load file or assembly 'Telerik.Windows.PersistenceFramework...) during runtime:
<UserControl x:Class="MainSail.EquipmentList.Views.EquipmentListNavigator"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:l="clr-namespace:MainSail.Common;assembly=MainSail.Common"
             xmlns:local="clr-namespace:MainSail.EquipmentList.Views"
             mc:Ignorable="d"
             FontSize="14"
             Height="500">
  <telerik:RadDockPanel>
    <Border Margin="10,5,10,10" Grid.Row="1" CornerRadius="4,4,4,4" BorderBrush="#193441" Background="#DDDCC5" BorderThickness="2,2,2,2">
      <!-- EQUIPMENT TREE -->
    <telerik:RadTreeListView Name="equipmentTreeView" Margin="8" Background="Beige"
                         telerik:PersistenceManager.StorageId="equipmentTreeView"
                         ItemsSource="{Binding FirstGeneration}"
                         telerik:StyleManager.Theme="Vista" 
                         IsDragDropEnabled="True"
                         SelectionMode="Single"
                         SelectionUnit="FullRow"
                         IsSynchronizedWithCurrentItem="False"
                         AutoGenerateColumns="False" >

Rob
Top achievements
Rank 1
 answered on 29 Oct 2012
0 answers
65 views

I am trying to write a C# program in wpf that retrieves the content of a web page.

The first thing I tried was to try the WebRequest and WebResponse classes.  This did not provide the actual displayed content.  WebResponse reveils the HTML code that is sent to the browser.  But I discovered that, while the page is being loaded by the browser, javascript can change what content is finally displayed in the browser.

So I decided to use the WebBrowser class.

Immediately I found that there are two WebBrowser classes.  Thee is the one that is documented for WinForms and there is another that is documented for WPF.  I need to understand the one documented for WPF.  What I think I neeed to know what to do is to retrieve code after the "LoadCompleted" method is caused.  But I do not know how to this and I cannot find any example demonstrating how this is done.

 

William
Top achievements
Rank 1
 asked on 28 Oct 2012
1 answer
76 views
Not sure what info to write, but wanted to get this thread started. I have a project with 2 UI developers. I run some of the testing and builds on my machine.

The UI guys can pull data for some grids and it displays just fine. No issues. I will get latest, compile and run the app. I see the data everywhere except for 3 particular grids. All grids are coded up the same way-same design pattern. Also, we use mvvm style.

The UI developers compiled and ran on 5 different machines (VMs, physcials win7 and win8) The data in the grid always appears.

I am running win7 on a VM. I have the same version of telerik controls installed.

any ideas?

thanks

version: 2012.2.725.40
Robert
Top achievements
Rank 1
 answered on 27 Oct 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?