Telerik Forums
UI for WPF Forum
1 answer
92 views
Hi,
I need to add new row in a grid at the time of edit last row in the grid.
Thanks,
Sudeep
Maya
Telerik team
 answered on 07 Feb 2011
2 answers
111 views
Hi,

Please find the attached image, mentioning the requirement, that I want in Telerik RadGridView, with the other columns, this is one of them.

Please provide a working code for the same, as soon as possible.

Thanks.

Manishkumar
Top achievements
Rank 1
 answered on 07 Feb 2011
1 answer
87 views
Is possible to recognize whitch dialog is going to be displayed in ShowDialog event? I´d like to enable only Delete dialog to be displayed and to disable all other dialogs by e.Cancel = true.
Pavel
Top achievements
Rank 1
 answered on 05 Feb 2011
9 answers
269 views
Is there a way to add extra controls to the ScheduleView toolbar (where "Month", "Week", "Day" buttons are shown) ? I would like to add a combobox to help drive the behavior of the schedule. I know I can add this above the ScheduleView but I am trying to conserve on space.

Thanks,
Rod
Chris
Top achievements
Rank 1
 answered on 05 Feb 2011
3 answers
173 views
Hi,

   I'm using RADMap control for WPF to plot the pins based on set of Lats and Longs. But, i need the Optimum Zoomlevel to display in Map. For this i use Setview() method of the rad map. By doing this i always get the Zoomlevel to 1. But, when i click on the button event, the Zoomlevel is setting correctly even if the debug says Zoomlevel =1. Please find my below code and let me know how should i proceed.

MainWindow.xaml
==============
 <Window x:Class="RadMapControlStudy.MainWindow"
xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation
xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml
Title="MainWindow" Height="600" Width="600" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<Grid>
<telerik:RadMap Height="500" HorizontalAlignment="Left" Margin="3,0,0,0" Name="radMap1" VerticalAlignment="Top" Width="500">
<telerik:InformationLayer x:Name="layer">
</telerik:InformationLayer>
</telerik:RadMap>
<Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="503,282,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
</Grid>
</
Window>

MainWindow.xaml.cs
==================
namespace RadMapControlStudy 
{
 public partial class MainWindow : Window
{
    Location lc1 = new Location(28.066600, -82.381600); //Some LatLong
    
Location lc2 = new Location(28.066890, -82.381876); //Some LatLong

 

 public MainWindow()
{
    InitializeComponent();
    radMap1.Provider = n
ew BingMapProvider(MapMode.Road, true, "KeyValue"); 
    layer.Items.Add(lc1);
    layer.Items.Add(lc2);

    LocationRect
lr = new LocationRect(lc1, lc2); 
    
radMap1.SetView(lr);
}

private void button1_Click(object sender, RoutedEventArgs e) //Zoom seems to be working fine when you click the button
{
    
LocationRect lr1 = new LocationRect(lc1,lc2); 
    radMap1.SetView(lr1);

 

 

 

 

Padmanabhan
Top achievements
Rank 1
 answered on 05 Feb 2011
5 answers
268 views

I get the following error in the designer of VS2010.  The project compiles and runs fine, but the designer has this error.  I've checked all the references and I am not referencing any older versions anywhere.  I've cleaned and rebuilt the solution and it still doesn't work.  I've also added the loadFromRemoteSources option to the app.config.  Still no good.

System.IO.FileLoadException

Could not load file or assembly 'Telerik.Windows.Controls, Version=2010.3.1227.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.Assembly.Load(AssemblyName assemblyRef) at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.VsReflectionResolver.GetRuntimeAssembly(Assembly reflectionAssembly) at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.CachingReflectionResolver.GetRuntimeAssembly(Assembly reflectionAssembly) at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.Microsoft.Windows.Design.Metadata.IReflectionResolver.GetRuntimeAssembly(Assembly reflectionAssembly) at MS.Internal.Metadata.ClrAssembly.GetRuntimeMetadata(Object reflectionMetadata) at Microsoft.Windows.Design.Metadata.AttributeTableContainer.<MergeAttributesIterator>d__c.MoveNext() at Microsoft.Windows.Design.Metadata.AttributeTableContainer.GetAttributes(Assembly assembly, Type attributeType, Func`2 reflectionMapper) at MS.Internal.Metadata.ClrAssembly.GetAttributes(ITypeMetadata attributeType) at MS.Internal.Design.Metadata.Xaml.XamlAssembly.get_XmlNamespaceCompatibilityMappings() at Microsoft.Windows.Design.Metadata.Xaml.XamlExtensionImplementations.GetXmlNamespaceCompatibilityMappings(IAssemblyMetadata sourceAssembly) at Microsoft.Windows.Design.Metadata.Xaml.XamlExtensions.GetXmlNamespaceCompatibilityMappings(IAssemblyMetadata source) at MS.Internal.Design.Metadata.ReflectionProjectNode.BuildSubsumption() at MS.Internal.Design.Metadata.ReflectionProjectNode.SubsumingNamespace(Identifier identifier) at MS.Internal.Design.Markup.XmlElement.BuildScope(PrefixScope parentScope, IParseContext context) at MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement parent, PrefixScope parentScope, IParseContext context, IMarkupSourceProvider provider, Boolean visitCodeModel) at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.FullParse(Boolean convertToXamlWithErrors) at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.get_RootItem() at Microsoft.Windows.Design.DocumentModel.Trees.ModifiableDocumentTree.get_ModifiableRootItem() at Microsoft.Windows.Design.DocumentModel.MarkupDocumentManagerBase.get_LoadState() at MS.Internal.Host.PersistenceSubsystem.Load() at MS.Internal.Host.Designer.Load() at MS.Internal.Designer.VSDesigner.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.Load() at MS.Internal.Designer.DesignerPane.LoadDesignerView(Boolean isReload)

 

System.NotSupportedException

An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

Zbigniew Kozłowski
Top achievements
Rank 1
 answered on 04 Feb 2011
4 answers
1.1K+ views
Hello,

I'm attempting to scroll the selected item into view.  The item is not null.  I have tried the following methods:

mainGrid.ScrollIntoView(mainGrid.SelectedItem);

mainGrid.BringIndexIntoView(mainGrid.Items.IndexOf(mainGrid.SelectedItem));
Dispatcher.BeginInvoke(new Action(() =>  mainGrid.ScrollIntoView(mainGrid.SelectedItem)));
Dispatcher.BeginInvoke(new Action(() =>  mainGrid.BringIndexIntoView(mainGrid.Items.IndexOf(mainGrid.SelectedItem))));


All of the above methods simply scroll my grid a few pixels only and then stop.  All four behave the same way.  If I call all four together, it scrolls (a couple pixels * 4).  Any ideas?
Paul
Top achievements
Rank 1
 answered on 04 Feb 2011
2 answers
83 views
Hi. I'am using 2010 Q3 WPF controls with Visual Studio 2010. I Have RadSplitContainer with RadPanes. I want RadPane Headers to be non resizable when application window width gets smaller then headers total width. I want to get same behavior as the Visual Studio tabs headers behavior. When application window width is smaller then tabitems headers total width most right Header is hiding and when application window width  increasing tabitem header is again visible. Is it possible to do the same behavior for RadPane Headers. Also in Visual Studio selected Tab is set to first position (if it was not in first position and there is not enough space because of the window width decreasing)

Thank you,
Regards Armen  
Armen
Top achievements
Rank 1
 answered on 04 Feb 2011
1 answer
684 views
how to put selected row cell into edit mode with single click or selection.
Currently, I have to click twice to have it in the edit mode.
First click selects it, second puts it in the edit mode.

Thanks
Veselin Vasilev
Telerik team
 answered on 04 Feb 2011
2 answers
388 views
hi,
I have a dataset object which contains 2 datatable (relation). How do i bind this dataset to the radgridview with allowing to insert a new row on both parent and child grid?

thanks

So far this is the code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using System.Data;
 
namespace WpfApplication8
{
    /// <summary>
    /// Interaction logic for Window3.xaml
    /// </summary>
    public partial class Window3 : Window
    {
        public Window3()
        {
            InitializeComponent();
 
            this.DataContext = this;
 
            //RadGridView1.DataMember = CarsSet.Tables["Car"].TableName;
        }
 
 
        public DataSet CarsSet
        {
            get
            {
                DataSet carSet = new DataSet();
 
                DataTable car = new DataTable("Car");
                DataTable comp = new DataTable("Complaint");
 
                DataColumn col = new DataColumn("AllWheelDrive");
                car.Columns.Add(col);
                col = new DataColumn("Doors");
                car.Columns.Add(col);
                col = new DataColumn("Make");
                car.Columns.Add(col);
                col = new DataColumn("Model");
                car.Columns.Add(col);
                col = new DataColumn("ModelYear");
                car.Columns.Add(col);
 
                col = new DataColumn("Doors");
                comp.Columns.Add(col);
                col = new DataColumn("DateOfComplaint");
                comp.Columns.Add(col);
                col = new DataColumn("Complaint");
                comp.Columns.Add(col);
                col = new DataColumn("Resolved");
                comp.Columns.Add(col);
 
                DataRow row = car.NewRow();
                row["Doors"] = "test1";
                row["Make"] = "test2";
                row["Model"] = "test3";
                row["ModelYear"] = "test4";
 
                car.Rows.Add(row);
 
                row = comp.NewRow();
                row["Doors"] = "test1";
                row["DateOfComplaint"] = "test4";
                row["Complaint"] = "test2";
                row["Resolved"] = "test3";
 
 
                comp.Rows.Add(row);
 
                carSet.Tables.Add(car);
                carSet.Tables.Add(comp);
 
                carSet.Relations.Add(new DataRelation("link", carSet.Tables["Car"].Columns["Doors"], carSet.Tables["Complaint"].Columns["Doors"]));
                return carSet;
            }
 
 
        }
    }
}

<
Window xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="WpfApplication8.Window3"
        Title="Window3" Height="300" Width="600">
    <Grid>
        <telerik:RadGridView x:Name="RadGridView1" CanUserFreezeColumns="False" GridLinesVisibility="Horizontal"
                             ShowInsertRow="true" DataMember="Car"
                             ItemsSource="{Binding CarsSet}"  
                             AutoGenerateColumns="False">
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition />
            </telerik:RadGridView.ChildTableDefinitions>
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding AllWheelDrive}" Header="Order Date" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Doors}" Header="Employee" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Make}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Model}" Header="Ship Country" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ModelYear}" Header="Ship City" />
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <telerik:RadGridView x:Name="RadGridView1"
                                         DataMember="Complaint"
                                         CanUserFreezeColumns="False"
                                         ShowInsertRow="true" CanUserInsertRows="True"
                                         AutoGenerateColumns="False" ItemsSource="{Binding Complaint}" 
                                         ShowGroupPanel="False">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding DateOfComplaint}" Header="Product ID" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Complaint}" Header="Unit Price" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Resolved}" Header="Quantity" />
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </DataTemplate>
            </telerik:RadGridView.HierarchyChildTemplate>
        </telerik:RadGridView>
    </Grid>
</Window>


Milan
Telerik team
 answered on 04 Feb 2011
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)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?