Telerik Forums
UI for WPF Forum
4 answers
154 views
Hi

Validating data on a property level causes a red rectagle around the cell but no error message is available.
Below an example and attached the snapshot.

<Window xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="TestRadGridView.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadGridView Name="gridView"/>
    </Grid>
</Window>

and the code behind
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Documents;
  
namespace TestRadGridView
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            gridView.ItemsSource = User.AsList();
        }
    }
  
    class User
    {
        private string _username;
        public string Username 
        
            get { return _username; } 
            set { if ( _username == null) _username=value; else throw new Exception("Username can't be changed"); } 
        }
  
        public string Email { get; set; }
  
        public static List<User> AsList()
        {
            List<User> list = new List<User>();
            list.Add(new User() {Username="Username1", Email="username1@email"});
            list.Add(new User() {Username="Username2", Email="username2@email"});   
            return list;
        }
    }
}

I'm using WPF Q2 2010 SP1 on Windows 7.

Thanks
Ivano

Ivano
Top achievements
Rank 1
 answered on 23 Sep 2010
1 answer
87 views
Hi ,,
 
   i m getting problem with rad chart bar, i m using mvvm patten , with that i got the values  but my problem is the bar is nit getting filled, i don' t know how to debug that problem. when i check my page, throughout that, i found one exception problem, that is "base {System.Exception} = {"Method may only be called on a Type for which Type.IsGenericParameter is true."}"
 in Target Type-> GenericParameterAttributes , in RadChart1.DefaultSeriesDefinition.SeriesItemLabelStyle.  so is that is the problem ? or is it the one of the reason for that bar not fill. plz give me a correct solution.

Thanks
Velin
Telerik team
 answered on 23 Sep 2010
1 answer
92 views
Hi!

What is the correspondence of the RadGridView and the RadTreeView??

Not the SelectedItem, but the CurrentItem, BECAUSE:

There is no "SelectionChanging", so I'm forced to code myself the revert to the previous element if my conditions aren't satisfied.

Then I was doing something like:

private void uxRadTreeView_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
  if (!isReverting && MyConditionsHere){
    isReverting = true;
    MainTree.SelectedItem =e.RemovedItems[0];
  }
  if(isReverting)
    isReverting = false;
}

The object seems to be "selected", but doesn't change:

image of the selected item problem

File2 is the File on which I've made a "MainTree.SelectedItem= e.RemovedItems[0]"

The File1 is the e.AddedItem[0].

Without the SelectedItem manipulation, I don't see the dashed border on it.

Thank you.
Tina Stancheva
Telerik team
 answered on 23 Sep 2010
17 answers
333 views
Hi!

I actually need to permit to an user to change of row only when some conditions have been met.

I've seen a "SelectionChanged", But with this it's too late, the row has already been changed.

So how can I catch this event and cancel it if I want it?

Thank you
Tina Stancheva
Telerik team
 answered on 23 Sep 2010
1 answer
86 views
I see the quick ability of BeginInsert() which adds to the *end* of the list and starts an edit.

How about the ability to INSERT under the current row (and optionally edit).

I realize this control is new, but I see very little examples to assist.  When I try modifying the Items it states it is in use.  When I reflect the BeingInsert, there's lots of internal calls to add at the end.  

How does one achieve this?

later and/or related: the ability to insert branches, to delete branches.

Thanks,
Nedyalko Nikolov
Telerik team
 answered on 23 Sep 2010
1 answer
64 views

hi All
I have used below statement in Telerix rad window

 

<

 

 

UserControl.Resources>

 

 

 

 

it shows this error
the attachable property 'Resources' was not found in type 'UserControl'.
what am i missing
Thanks in Advance

Yavor Georgiev
Telerik team
 answered on 23 Sep 2010
1 answer
119 views
Hey guys,

I really love the capabilities of the tileview; however I was wondering if it is possible to have multiple minimized rows at the bottom (or side if need be)?

I have attached what I would like the layout to look like ideally, please let me know if this is possible.

Many thanks in advance =)

Regards,

Jess

Tina Stancheva
Telerik team
 answered on 23 Sep 2010
1 answer
72 views
I download a trial version of RadControls for WPF Q2 2010 SP1 and trying to run the sample program. It works. But when I try to change the main interface, it's doesn't work at all.

The main page just use the user control in QuickStart_WPF.MainPage.xaml, right? I change the user control, it looks like it's never been called.

I'm confused.
Kaloyan
Telerik team
 answered on 23 Sep 2010
5 answers
150 views
Hii All,
I am using RadGridView for displaying some of the records in my application. i have one datasource in which the records are available, which i want to display in the grid.now from code behind i am binding this gridview by using code "grid.itemsource=dataset;"
i have 20 columns in my dataset.
In my application all the columns are not visible only few column are visible in the telerik datagrid depending on the datagrid width.
in this case datagrid must have a horizontal scrollviewer which must be visible, if no. of columns exceeds depending on width of grid.

now if i will try to sort datagrid by any column then horizontal scrollviewer enables and i am able to see all the columns by using this scrollviewer. 

provide/update telerik datagrid code for above mentioned problem. so that if the telerik datagrid's itemsource changes it should automatic provide the scrollviewer for viewing all the columns.

thanks
regards

sandeep kumar dixit
sdixit110@gmail.com
Vlad
Telerik team
 answered on 23 Sep 2010
2 answers
509 views
Hi,

Im using RadTab in my window.xaml page. Im able to create rad tab dynamically in c# code file but now i need to load the other window in the tabitem. can anyone help me please.

Thank You.
Jeff
Top achievements
Rank 1
 answered on 22 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?