Telerik Forums
UI for WPF Forum
4 answers
175 views

private
void gridView_Sorting(object sender, GridViewSortingEventArgs e)
 {
    try
    {
       if (schedules == null)
       {
          e.Cancel = true;
          return;
       }
 
 
       if (e.OldSortingState == SortingState.Ascending)
       {
          e.NewSortingState = SortingState.Descending;
          schedules = schedules.OrderByDescending(s => s.Role).ThenBy(s => s.Name).ToList();
       }
       else if (e.OldSortingState == SortingState.Descending)
       {
          schedules = schedules.OrderByDescending(s => s.Name).ToList();
          e.NewSortingState = SortingState.None;
       }
       else
       {
          e.NewSortingState = SortingState.Ascending;
          schedules = schedules.OrderBy(s => s.Role).ThenBy(s => s.Name).ToList();
       }
       this.radDataPager.Source = schedules;
       //e.DataControl.ItemsSource = this.radDataPager.Source;  // replaced by the next line which is the same thing.
       this.gridView.ItemsSource = this.radDataPager.Source;
       this.gridView.Items.Refresh();
 
       this.radDataPager.PageIndex = 0;
       e.Cancel = true;
    }
    catch (Exception ex)
    {
       txtStatus.Text = "Erorr in gridView_Sorting:"+ex.Message;
    }
 }
Custom Sorting (routine shown above) of GridView with DataPager does not seem to work.
It shows sorted items on the current page but it does not navigate to another page.

Can you provide small sample code that works?

Thanks.
gureumi
Top achievements
Rank 1
 answered on 07 Feb 2011
15 answers
299 views
Anyone know of a control developer who has a HTML RichTextBoc for WPF?

Bryan
Iva Toteva
Telerik team
 answered on 07 Feb 2011
1 answer
103 views
I am using version 2010.3.1110.40.

I have a RadTransitionControl that switches between two usercontrols through the bound content property. The switching works fine, however I have noticed that the top level bindings in both the usercontrols are not being set. To get things to work I have to set the binding in the code in the loaded event. I have even set a breakpoint on the get part of the bound collection and saw that it is not read at all. However, if I take the same usercontrol and place it by itself in the xaml then the breakpoint is hit during the xaml loading as it should be.
George
Telerik team
 answered on 07 Feb 2011
1 answer
135 views
Hi

I've got an app that makes extensive use of the RadDocking system. I'm implmenting some drag and drop functionality, and this works fine when dropping an item onto a docked pane, but not onto a floating pane. Is this a known bug?

If so, when is it due to be fixed? 

Thanks
Tom Davies
Tsvyatko
Telerik team
 answered on 07 Feb 2011
1 answer
108 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
125 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
104 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
288 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
195 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
303 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?