Telerik Forums
UI for WPF Forum
1 answer
109 views
Hello Telerik Team,

My application has a RadTreeListView control that can be filtered by the user.

I want to save the Filter settings in a user preferences file on application shutdown and then load and apply the filters back to the RadTreeListView on application startup.

Can you help me with  C# code snippets that will dump the filter settings to a text file and load them back from that file please?

I am using version 2011.1.419.35 of your WPF controls.

Thanks,
Kumar
Vlad
Telerik team
 answered on 31 Aug 2011
1 answer
77 views
I'm creating a dynamic number of line series in code.  Is there a way to set a different Legend Item Marker Shape for each line series?
Evgenia
Telerik team
 answered on 31 Aug 2011
1 answer
91 views
This is by far the strangest bug I've encountered.

If I select a cell for edit using the mouse and edit the cell and then select another cell using the mouse, and edit the newly selected cell, when I save the values revert.  If I perform the same edits but rather than selecting cells using the mouse I instead tab to the cell, or hit enter to move to the next row, and edit a different cell my edits persist.

On the off chance someone has encountered this or a similar kind of behavior I'm posting this in the hopes of getting this resolved.

I'm using entity framework 4 as my O.R. and like I said when I navigate using the tab key there are no problems. It's only when I make cell selections via the mouse. 

Frankly I'm stumped so any suggestions as to what might be causing this will be greatly appreciated.

Thanks in advance.


Pete
Top achievements
Rank 1
 answered on 31 Aug 2011
1 answer
127 views
Hi,

i was wondering if it is possilbe to save the item's property of an element using the persistence framework.
To be exact, i have a tileview with an itemssource bound to a collection of inside my viewmodel and i want to save the items and the position of the items.
Alex Fidanov
Telerik team
 answered on 30 Aug 2011
2 answers
210 views
Hi,

I have a treeview nested inside the item template of another treeview.

I would like to be able to use the preview line default behavior for drop targeting in the inner treeview.

I would like for the top level treeview to pass the previewdragended event down to the nested treeview, but only for certain payload types.

Is there any way this can be done?

Thank you,
Justin
Justin
Top achievements
Rank 1
 answered on 30 Aug 2011
2 answers
134 views
I have seen examples that show a nice border with a title over the Grid View. I see the telerikQuickStart (below) beeing used

<telerikQuickStart:QuickStart.ExampleHeader>

along with a Border control on top of the GridVew declaration but I can't see the "title". What am I missing?

<Border telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True" Grid.RowSpan="3" />

Thanks,
Marcelo
Top achievements
Rank 1
 answered on 30 Aug 2011
2 answers
96 views
Hello,

for our program we use the MVVM-Pattern, so we have some "bindable propertiers". Such like the GroupDescriptorCollection (named DefaultGroupDesciptors) for the GridViews in our forms.

protected override void InitGroups()
{
   DefaultGroupDescriptors = new GroupDescriptorCollection();
 
   GroupDescriptor Descriptor_STKNR = new GroupDescriptor();
   Descriptor_STKNR.Member = "Field1";
   CountFunction cound = new CountFunction();
   Descriptor_STKNR.AggregateFunctions.Add(cound);
   DefaultGroupDescriptors.Add(Descriptor_STKNR);
 
   GroupDescriptor Descriptor_MEAUF = new GroupDescriptor();
   Descriptor_MEAUF.Member ="Field2";
   SumFunction sum = new SumFunction();
   Descriptor_MEAUF.AggregateFunctions.Add(sum);
   DefaultGroupDescriptors.Add(Descriptor_MEAUF);
}


// execut at the binding:
foreach
(GroupDescriptor Elem in DefaultGroupDescriptors)

{
  
     Grid.GroupDescriptors.Add(Elem);

    AddAggregateFunctions(Grid, Elem); 
}

 
private static void AddAggregateFunctions(RadGridView Grid, GroupDescriptor Elem)
{
   if (Elem.AggregateFunctions != null)
   {
      foreach (AggregateFunction Function in Elem.AggregateFunctions)
      {
         Grid.Columns[Elem.Member].AggregateFunctions.Add(Function);
      }
   }
}

The important part:
    Grid.GroupDescriptors.Add(Elem);
    AddAggregateFunctions(Grid, Elem);


This part doubles the AggregateFunctions from the first element:
(
         ...
   CountFunction cound = new CountFunction();
   Descriptor_STKNR.AggregateFunctions.Add(cound);
   DefaultGroupDescriptors.Add(Descriptor_STKNR);
    ...
)

to the seond element
(
    ...
 DefaultGroupDescriptors.Add(Descriptor_MEAUF);
    ...
).

I think a picture is helpful:



If I rotate the "important part", it works...

foreach (GroupDescriptor Elem in newValue)
{
   AddAggregateFunctions(ActGrid, Elem);
   ActGrid.GroupDescriptors.Add(Elem);
}


I hope you can explain me what happens here...

Regards
Arne Z.
Arne
Top achievements
Rank 1
 answered on 30 Aug 2011
1 answer
256 views
Hi,

We're interested in implementing your ImageEditorUI control, and have a few questions concerning its current/future customizability.

First, here's our scenario: within our software, we have a way in which to capture photos using a webcam/camera. We would then like to pass that captured image to your ImageEditorUI before saving the newly edited image to a database. One of the main editing features we'd like our users to see is the ability to "draw" on the loaded image, and possibly add their own text to the loaded image as well.

1. I noticed in the "Event when image is loaded" thread that it was mentioned there is an "upcoming" update to the control. When should we expect this new update, and is there anywhere you could point me to that lists what sort of changes/additions we can expect to see?

2. Are there any plans in the works to add a "drawing" tool to the control, or something in the like? If not, how would you recommend we go about adding this functionality?

3. Since we will be loading the image into the control automatically (without the help of the user), is there/will there be an option to remove the Open File button from the built-in UI?

4. Once the user is ready to save the file, we'd like to bypass the SaveDialogBox and have the file save to a non-user specifide location. Are there plans to make it possible to override this command with our own logic?

Obviously, we could use just the plain ImageEditor without the built-in UI to accomplish 3 and 4. However, we would then have to manually add all of the other tools in order to use them, which seems like a bit of a hassle if we can just remove one button and change the functionality of another.

Thank you for your time,
Kyle
Ivailo Karamanolev
Telerik team
 answered on 30 Aug 2011
3 answers
355 views
Hi,

The problem I have is that I am trying to host a windows form control in a floating pane. Once you start moving the pane around the control disappears. I am reasonably certain that it is because the floating pane window has AllowsTranparency=true. I would like to set it to false.

I tried creating a new style -

<

 

 

Style x:Key="Win" TargetType="telerikDockingControls:RadPane">

 

 

 

 

<Setter Property="AllowsTransparency" Value="False"/>

 

 

 

 

</Style>

but I get the error message -

property was not found in RadePane.

could you tell me how to disable AllowsTransparency please?

 

Miroslav Nedyalkov
Telerik team
 answered on 30 Aug 2011
1 answer
764 views
Hi Telerik,

I'm developing an application using your RadGridView to display a list of production orders with a selection of data. Now I'm facing an issue where some values on the order cannot be bound at compile time, since they can differ depending on the production site that loads the list of orders. For keeping things as simple as possible, consider the following objects that needs to shown in a gridview:
public class SiteOrderHeader
{
    public int SiteOrderId { get; set; }
    public List<MachineSpeed> MachineSpeeds { get; set; }
}
 
public class MachineSpeed
{
    public string Type { get; set; }
    public int Speed { get; set; }
}

Now, the number and values of MachineSpeed is unknown at compile time, but lets assume that during runtime a SiteOrderHeader would be loaded with the following data:

SiteOrderHeader siteOrderHeader = new SiteOrderHeader();
siteOrderHeader.SiteOrderId = 1;
siteOrderHeader.MachineSpeeds.Add(new MachineSpeed() { Type = "Type1", Speed = 10000 });
siteOrderHeader.MachineSpeeds.Add(new MachineSpeed() { Type = "Type2", Speed = 6000 });
siteOrderHeader.MachineSpeeds.Add(new MachineSpeed() { Type = "Type3", Speed = 12000 });


This should result in the following grid layout, where the MachineSpeed types are columns and the speed is the value.
SiteOrderId Type1 Type2 Type3
1 10000 6000 12000
      
All SiteOrderHeader that should be shown in the same grid will have the exact same MachineSpeed types but different values, so I could easily add the columns on runtime, but how can I map the speed values to the corrosponding type?

I would prefer if this could be databound in some way during runtime without the need of knowning the MachineSpeed types.
Please guide on suggested way to do this with RadGridView. I can also change the class layout of SiteOrderHeader and MachineSpeed if this could be build in a way that fits into RadGridView, i.e. use a Dictionary<string, int> for the MachineSpeed definition..

Any help would be much appriciated.

Best regards,
Kasper Schou
Nyami
Top achievements
Rank 1
 answered on 30 Aug 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
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?