Telerik Forums
UI for WPF Forum
0 answers
93 views

Anyone know of C# code examples that show a RadDataFilter, RadGridView, and RadDataForm all using the same "Source"?
Something like this?

IEnumerable<MyClass> SomeResults;

SomeResults = GetResults();

MyDataForm.ItemsSource = SomeResults
MyDataFilter.Source = SomeResults;
MyGridView.ItemsSource = SomeResults;

I know in xaml you can do something like this for the grid
{Binding FilteredSource, ElementName=MyDataFilter}

but I have no idea how to pull this off in C# code.

When I scroll my grid, the Dataform does not move.  When I select next in my dataform, the Grid selection does not move, and when I apply a filter, nothing gets filtered.

This setup (Filter, Grid, dataform) will be used to display items from multiple sources, therefore I have to do it all in code.

Thanks for any help.

Jeff

Jeff
Top achievements
Rank 1
 asked on 15 May 2012
2 answers
146 views

A user of our Click Once app took a screen capture of a trial notification they received while using our application.

RadControls for WPF Trial
You are runnng a trial version of RadControls for WPF.
Would you like to get details on purchasing a license?


The page in question makes use of the WPF Grid Control.
We have a license for all our developers - What is the issue?

The controls that were used for the build are the ones from the manage products section on the telerik site.
Specifically:
RadControls_for_WPF_2012_1_0326_Dev.msi
Jim
Top achievements
Rank 1
 answered on 15 May 2012
1 answer
88 views
Hi,

i'm using two RadListBoxes with one Datasource. Is there any function to filter the items in the RadListBox?


Example:
ListBoxA             ListBoxB

DataSource:
New York, Status="A"
L.A, Satus="A"
Dallas, Status="B"

Result Now:

ListBoxA             ListBoxB
New York            New York
L.A.                    L.A.
Dallas                 DAllas

But i want to filter the status:
ListBoxA             ListBoxB
New York            Dallas
L.A.                   
Dallas               

Thanks
Regards
Rene

George
Telerik team
 answered on 15 May 2012
4 answers
220 views
Hi

for storing RadDocument content in DB we use the Xaml format and get the Xaml
using the XamlDataProvider, binding its Xaml dependendency property
to a property of some custom class.

This works very well and reliably in virtually all situations and with
all kinds if RTF content.

Now I have a situation where I append a new paragraph to the richtextbox's
Document using

currentParagraph.Parent.Children.AddAfter(currentParagraph, newPargraph);


In this case both XamlDataProvider.Xaml doesn't change und doesn't update my bound
property and also the richtextbox's document isn't updated visually: the new paragraph is not displayed.
However when i check the xaml of richtextbox.Document using

xaml = new XamlFormatProvider().Export(richtextbox.Document);


the new Paragraph is there.

So there seems to be a discrepancy between the
"logical" content of the document and the one actually rendered.

How can that be?
Is my way of appending the paragraph not the recommend one?
Do i need some extra code for updating the document (kind of refresh or so?)?

Thanks
Chris


Christoph
Top achievements
Rank 1
 answered on 15 May 2012
0 answers
101 views
Hi!
I have a question/problem with DragAndDrop and listBoxes.
I have two collections:
   var coll1 = new ObservableCollection<User>() {new User() {Id = 1}, new User() {Id = 2}};
  var coll2 = new ObservableCollection<User>() { new User() { Id = 2 }, new User() { Id = 4 } };

listbox1.ItemSource=coll1;
listbox2.ItemSource=coll2;

I can  copy some items from listbox1 to listbox2 via draganddrop, but when i want to drag from listbox1 to listbox2 item User(id=2) I put listbox2.AllowDrop= false, because i don't want that listbox2 contains two equal items User(id=2)

So it works, but i want more ;) I want to show why it is impossible to drop item to listbox.

        private void OnDragInitialize(object sender, DragInitializeEventArgs e)
        {
            e.AllowedEffects = DragDropEffects.Copy;
            var data = ((FrameworkElement)e.OriginalSource).DataContext;
            e.DragVisual = new DragVisual()
            {
                Content = data,
                ContentTemplate = this.Resources["DragTemplate"] as DataTemplate
            };
            DataObject dataObject = new DataObject();
            dataObject.SetText(data.ToString());
            dataObject.SetData("DragData", data);
            dataObject.SetData("Text", data.ToString());
            e.Data = data;
        }

I want to show something like this link

Thanks in advance!
Inq
Top achievements
Rank 1
 asked on 15 May 2012
2 answers
83 views
Hello,

I have a problem with RadGridView inside RadTabItem - same as in this your example (WpfApplication3.zip). RadGridView on 3rd RadTabItem has no items before you select it.

Try to change your code:
public MainWindow()
{
    InitializeComponent();
    this.radGridView1.ItemsSource = GenerateProducts();
    this.radGridView2.ItemsSource = GenerateProducts();
    MessageBox.Show(radGridView1.Items.Count.ToString());
    MessageBox.Show(radGridView2.Items.Count.ToString());
}

There are 19 items in radGridView1 in 1st RadTabItem, but radGridView2 in 3rd RadTabItem has 0 items. In my project I have same problem with version 2011.3.1220.35 and 2012.1.0326.35 too. With previous version used in my project (2010.3.1110.35) it works fine.

Can you help me, please?


Thanks,
Maros 
Dimitrina
Telerik team
 answered on 15 May 2012
1 answer
155 views
i'm using RadScheduleview to implement an application for managing project timeline and resources.
the problem is i want to modify the time ruler to have Start time @ 08:30 and End time @ 20:30 (our daily work time) for each day in the scheduleview, aslo i need to suppress the WeekEnd days and the day off.

please if any solution
thank u
Yana
Telerik team
 answered on 15 May 2012
1 answer
96 views
Is there a way to know which RadTreeViewItem that has just brought to view?
Hristo
Telerik team
 answered on 15 May 2012
1 answer
419 views
Hello,
I'm using RadMenu in an MVVM Caliburn Micro application,I've also a RadDocking that contains my views ... some views are sistem views and they should be enabled/disabled by a menu called Views...I've got difficulties since if I just use the menu (check/unchek) for showing/hiding it work fine, but if I start closing from the "X" I got the IsChecked desinked with the real view state.... since I use this this piece of code for the RadMenu, where do I specify the SubmenuOpened event? If I'm able to access it I can calculate the state of the views...

<UserControl.Resources>
        <BooleanToVisibilityConverter x:Key="booleanConverter" />
        <selectors:MenuItemTemplateSelector x:Key="templateSelector"></selectors:MenuItemTemplateSelector>
        <HierarchicalDataTemplate x:Key="MenuItemTemplate" ItemsSource="{Binding Items}">
            <TextBlock Text="{Binding Text}" cal:Action.TargetWithoutContext="{Binding}"
                 Visibility="{Binding IsVisible,Mode=TwoWay,Converter={StaticResource booleanConverter}}" />
        </HierarchicalDataTemplate>
 
        
 
 
    </UserControl.Resources>
    <Grid>
        <telerik:RadMenu  x:Name="MenuList" ClickToOpen="False"  BorderBrush="Transparent" ItemsSource="{Binding Items}" ItemTemplate="{StaticResource MenuItemTemplate}"  
                     cal:Message.Attach="[Event ItemClick] = [Action OpenView($eventArgs)]"  >
            <telerik:RadMenu.ItemContainerStyle>
                <Style TargetType="telerik:RadMenuItem">
                    <Setter Property="IsSeparator" Value="{Binding IsSeparator}" />
                    <Setter Property="IsChecked" Value="{Binding IsChecked, Mode=TwoWay}" />
                    <Setter Property="IsCheckable" Value="{Binding IsCheckable}" />
                    <Setter Property="StaysOpenOnClick" Value="{Binding IsCheckable}" />
                </Style>
            </telerik:RadMenu.ItemContainerStyle>
 
        </telerik:RadMenu>
    </Grid>
</UserControl>


Thanks
Hristo
Telerik team
 answered on 15 May 2012
1 answer
94 views
Hi,
I have two queries:
1. I have a requirement where i need to put company logo along with chart. And if i m exporting this chart in any format logo should be there with exported chart.
Is it possible with RadChart control?
2.  I need a run time edit window for rad chart control so that user can customize the chart according to changed requirement at any point of time. Is any such kind of functionality available with chart control?

Please see attached images for more clarity on both the point.
Petar Marchev
Telerik team
 answered on 15 May 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?