Telerik Forums
UI for WPF Forum
0 answers
153 views
Hi, I am binding a Dataset to a RadGridView, but I am getting some strange behaviors. I already try to bind the dataset, datatable or default table view. Same Result.
Other problem is when my datatable has no rows (only columns defined). Nothing is displayed, even the column itself.

I had attached some images to show what´s happen.

Thanks
James
Top achievements
Rank 1
 asked on 24 Jan 2014
0 answers
221 views
I have a RadGridView where on of the columns is a GridViewComboBoxColumn.

How do I sort the Items inside the the RadComboBoxs alphabetically?


Assume I have three cities: Manchester, Zurich and Aberdeen. I want my RadComboboxes to display alpabetically

Aberdeen
Manchester
Zurich


The underlying data is rather big: There are some ten-thousands of grid-rows and the items inside the RadComboBoxes can also be some ten-thousands (RadCombox items are city names). Thanks to virtualization the performance is actually very good.

I don't want to sort each single ComboBox, since this might slow down the Grid considerably. 
I found documentation and some forum posts about SortingState, but that was not helpful for my problem.
Peter
Top achievements
Rank 1
 asked on 24 Jan 2014
3 answers
176 views

I try to use the PdfViewer in an addin (using the .net managed addin framework), hosted in a winform host application. When I open a pdf file I get this exception:

   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Utils.Helper.get_Dispatcher() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\Core\FormatProviders\Pdf\Utils\Helper.cs:line 25

   at Telerik.Windows.Documents.Fixed.FixedDocumentStreamSource.<>c__DisplayClass8.<LoadDocument>b__6() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\FixedDocumentViewers\Fixed\FixedDocumentStreamSource.cs:line 180

   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ThreadHelper.ThreadStart()

I suspect the helper class is using Application.Current.Dispatcher. Application.Current is null in our environment.

Is there a work around for this problem so I can use the viewer in an addin?

Thank you,

Fonger.

Petya
Telerik team
 answered on 24 Jan 2014
1 answer
210 views
Hi.
I have a problem setting minimum or maximum values for a RadSlider I need to generate by c# code inside a propertygrid with the help of FrameworkElementFactory.

Value binding and setting the grid column work perfectly but I am not able to set min or max slider value (and tickfrequency, too - are they readonly?).

What do I do wrong here? Or is there a better way to add properties like a radslider control inside a radpropertygrid on the fly?

Lars

Here is a code snipet:
FrameworkElementFactory slider = new FrameworkElementFactory(typeof(RadSlider));
slider.SetBinding(RadSlider.ValueProperty, new Binding(path) { Mode = BindingMode.TwoWay });
slider.SetValue(RadSlider.MinimumProperty, 0);
slider.SetValue(RadSlider.MaximumProperty, 100);
slider.SetValue(Grid.ColumnProperty, 1);
Lars
Top achievements
Rank 1
 answered on 24 Jan 2014
0 answers
600 views
hi

I created a wpf App with a Dockpanel and Gridview controller, i referenced the DLL's with noXaml and included the Xaml from the Themes.Implicit, in App.Xaml.css  i have created a static constructor with this signature.The CustomLocalizationManager is a subclass of
LocalizationManager and use a resource.resx for the switch key for the language. The problem is when i debug the code i notice in the InteliTrace the exceptions

+       Thrown: "Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Telerik.Windows.Controls.Docking.g.resources" was correctly embedded or linked into assembly "Telerik.Windows.Controls.Docking" at compile time, or that all the satellite assemblies required are loadable and fully signed." (System.Resources.MissingManifestResourceException)  Exception Message = "Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure \"Telerik.Windows.Controls.Docking.g.resources\" was correctly embedded or linked into assembly \"Telerik.Windows.Controls.Docking\" at compile time, or that all the satellite assemblies required are loadable and fully signed.", Exception Type = "System.Resources.MissingManifestResourceException", Exception WinRT Data = null  
 
 
 
 
+       Thrown: "Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Telerik.Windows.Controls.GridView.g.resources" was correctly embedded or linked into assembly "Telerik.Windows.Controls.GridView" at compile time, or that all the satellite assemblies required are loadable and fully signed." (System.Resources.MissingManifestResourceException)    Exception Message = "Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure \"Telerik.Windows.Controls.GridView.g.resources\" was correctly embedded or linked into assembly \"Telerik.Windows.Controls.GridView\" at compile time, or that all the satellite assemblies required are loadable and fully signed.", Exception Type = "System.Resources.MissingManifestResourceException", Exception WinRT Data = null
 
 
 
+       Thrown: "Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Telerik.Windows.Controls.Data.g.resources" was correctly embedded or linked into assembly "Telerik.Windows.Controls.Data" at compile time, or that all the satellite assemblies required are loadable and fully signed." (System.Resources.MissingManifestResourceException)    Exception Message = "Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure \"Telerik.Windows.Controls.Data.g.resources\" was correctly embedded or linked into assembly \"Telerik.Windows.Controls.Data\" at compile time, or that all the satellite assemblies required are loadable and fully signed.", Exception Type = "System.Resources.MissingManifestResourceException", Exception WinRT Data = null



public partial class App
    {
        static App()
        {
            DispatcherHelper.Initialize();
 
            Thread.CurrentThread.CurrentCulture = new CultureInfo("en");
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");
            LocalizationManager.Manager = new CustomLocalizationManager();
           
        }
    }
 

What am i doing wrong or is that normal.
thanks regards
Ramon
Top achievements
Rank 1
 asked on 23 Jan 2014
1 answer
167 views
We are using your trial version .Now we face some problems for radrichtextbox
1. We save document by following code
   public void ExportContent(string defaultExtension, string filter,IDocumentFormatProvider formatProvider)
        {
            var saveFileDialog = new SaveFileDialog
            {
                DefaultExt = defaultExtension,
                Filter = filter
            };        
            saveFileDialog.FileName = wordfilepath;
                using (var outputStream = saveFileDialog.OpenFile())
                {
                    formatProvider.Export(radRichTextBox1.Document, outputStream);
                }           
        }
2 . Now when we insert picture using teleriks insert picture method .Picture is inserted and file is saved by above method.Then on another form we cannot display this image on richtextbox .So I added code to picture command as follows
string fieldName = ((RadRibbonButton)e.Source).Text;

            if (fieldName.ToUpper() == "PICTURE")
            {
                MergeField mf = new MergeField();
                mf.PropertyPath = fieldName;
                IncludePictureField picField = new IncludePictureField();
                picField.SetPropertyValue(IncludePictureField.ImageUriProperty, mf);
                this.radRichTextBox1.InsertField(picField);
            }
            else
            {
                radRichTextBox1.InsertField(new MergeField() { PropertyPath = fieldName });
            }
this insert image and also label PICTURE as merged field but on form where this rtf file displayed in richtextbox it shows "Cannot display image"
3. Please tell us teleriks proper method to insert image and display on richtextbox (Field merge method).We are new teleriks method.
4. Also When we create Header and footer in Teleriks editor and save file in rtf. When this rtf file loaded again it doesn't shows header and footer .Please tell me reason behind this.



Missing User
 answered on 23 Jan 2014
1 answer
199 views
I looking for an event to handle before RadDataForm.CurrentItemChanged happens. 

At CurrentItemChanged, the CurrentItem is already the new item, but I need to carry out some operations on the old item.
So I'm looking for something like "BeforeCurrentItemChanged" or "PreviewCurrentItemChanged" or "CurrentItemChanging" etc.
Vera
Telerik team
 answered on 23 Jan 2014
5 answers
220 views
Hi,

I am trying to migrate a coded UI test to validate the contents of a RadGridView table which has replaced a WPF GridView control.  Previously the test retrieved the contents of the table something like;

 
 var grid = TableGrid;
 List<string> headers = new List<string>(from h in grid.ColumnHeaders.AsQueryable() select h.FriendlyName);
 int idColumn = headers.FindIndex(x => x == "Id") + 1;
 int productTypeColumn = headers.FindIndex(x => x == "Product Type") + 1;
 int titleColumn = headers.FindIndex(x => x == "Title") + 1;
 Collection<Collection<string>> contents = new Collection<Collection<string>>();
 foreach(var row in grid.Rows)
 {
     var cells = row.GetChildren();
     contents.Add(new Collection<string>() {
         cells[idColumn].FriendlyName, cells[productTypeColumn].FriendlyName, cells[titleColumn].FriendlyName });
 }
 return contents;

 
With RadGridView I can access the column headers and find out the number of rows, however there are no rows held against the table in the Rows property.  If I try to add a validation against a single cell in the coded UI test builder they appear to be under a separate hierarchy (UIPART_GridViewVirtualCustom).  

I can't create individual validations against each cell using the coded UI test builder as the volume of cells to validate makes that unwieldy so I need to be able to validate them programatically which we were able to do with the standard WPF GridView control through the Rows property.

Can anyone provide any suggestions as how I can programatically check the RadGridView contents using codedUI.

Thanks in advance
Ivan Ivanov
Telerik team
 answered on 23 Jan 2014
2 answers
233 views
Hello;

I am working on a project with the following requirements :
- I have a dashboard with a set of tile view items in different size (large, small, medium).
- Each tile item size has its content.
- In the normal (medium) view, I need to add a button "properties". When the user clicks on, a child window will be opened in order to set the properties of the tile view item and filter the information to be displayed in the different views.

I am stuck in the third part. As the tile view item is a user control, I found a solution on internet based on behavior which allows me to open the child window, however, i cannot implement the close & OK buttons using MVVM.

I need your support on this point.
Thanks for your help.

Best regards

Sam
Sam
Top achievements
Rank 1
 answered on 23 Jan 2014
1 answer
212 views
In the attached screenshot, I have a  single 3D bar series.  I've set the labels at a 30 degree angle so they won'd overlap. However, they now overlap with the axis title. Is there a way for me to specify a margin for the title, or is there some other mechanism I can use to prevent this overlap?  Thanks - Mitch
Evgenia
Telerik team
 answered on 23 Jan 2014
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?