Telerik Forums
UI for WPF Forum
0 answers
85 views
Hi
I have a Radgrid that one column is a button. I make it in xaml. but when i bind a query to datagrid like: radGridTest.ItemsSource = query; data does not appear but when i bind it to a simple radgrid (which has no button column) every thing goes fine. the way i make the button column is here:
...
                   <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate >
                            <StackPanel Orientation="Horizontal">
                                <Button Width="25" Height="25" Background="Red"/>
                            </StackPanel>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
...
Raman
Top achievements
Rank 1
 asked on 26 Sep 2012
5 answers
320 views
Hello Telerik Team,

is it possible to map more than one series to an Y Axis?

I need to display two units (Temp and Humidity) from various measurement devices in one graph, splitting the series into two Y-Axis.

Is this possible with WPF RadChart? I could only find the example where each series has it's own Y-Axis

best regards

Ulrik
Yavor
Telerik team
 answered on 26 Sep 2012
2 answers
87 views

 

Hi All,

I want to Reorder the RasExpander Control with the help of DragDropManager inside the Stackpanel. Can you please guide me how to do this? Please help me with the sample if possible.

Thanks,
Sakthi
Sakthi
Top achievements
Rank 1
 answered on 26 Sep 2012
1 answer
225 views
I am currently setting the background color of my rows to red, yellow or green based on the status of the underlying business object. I have the selection unit set to FullRow. The problem is that when a user selects a row, it changes to a dark gray.

Is there an easy way so that instead of setting the background color of the selected row to the default gray, that it would only put a blue border around the selected row, and still show the background color that I set?

Vlad
Telerik team
 answered on 26 Sep 2012
1 answer
104 views
Is it possible to programmatically assign the ItemsSource of a RadListBox within GridViewDataColumn's DataTemplate?
Vlad
Telerik team
 answered on 26 Sep 2012
2 answers
209 views
Hi,

In my WPF Application i used telerick controls.
I used Rad Menu control.
Whenever mouse over the menu item effect is coming to both menu item and separator.
My requirement is remove mouseover effect to separator.
Can any one guide me in that?

Thanks,
Ramki
Rosen Vladimirov
Telerik team
 answered on 25 Sep 2012
2 answers
63 views
Hi,
I've just updated the dll's (Version 2012.2.912.40) and I am having problems when trying to set themes via =>
telerik:Theming.Theme="Windows7"

What how can I accomplish this functionality in the new version ?

Thanks in advance
Krissi

Sia
Telerik team
 answered on 25 Sep 2012
5 answers
234 views
Hi, How could I hide the button near RadTabItem on RadTabControl? See atache please.
Thanks
Tina Stancheva
Telerik team
 answered on 25 Sep 2012
1 answer
94 views
Greetings,
i have the following problem:

for my domain model i have a base abstract class that override the equals and gethash code. I made this cause i work with NHibernate with differents unit of works, so i open and close session very often. At the bottom of topic you can find the class.

I found some problems using an observable collection that use the class inherited from ModelBase.
The problem arises when i use the ShowInsertRow on the gridview.
1. If i start adding a new row, if i cancel the process -> cannot see the added row, but it is in the observable collection and if i reorder the gridview i can see it.
2. For each row created (like that i would canceled in point 1, or just cause i had committed it) i cannot delete it.

Do you have any suggestion?

If i take on account to start use your orm, how is the best practice to manage this? does it need to override?

Thx in advance
Mauro

P.s.: sorry for my poor english, tell me if something is not clear

 public abstract class ModelBase<TPKey> : dlcts.IModelBase<TPKey>, INotifyPropertyChanged {
   ///EDIT: eliminated wrong comment, Id is the PrimaryKey of the entity in the database
    public virtual TPKey Id { get; set; }
    /// <summary>
    /// Return if the implementation of the PrimaryKey is not equals the default of its type
    /// </summary>
    public virtual bool IsPersisted { get { return !Id.Equals(default(TPKey)); } }

    ... omitted code

    #region Equals-HashCode
    /// <summary>
    /// Check the equality of the PrimaryKey of 2 objects (if they are of the same type)
    /// </summary>
    /// <param name="obj"></param>
    /// <returns></returns>
    public override bool Equals(object obj) {
      //with this line it is all ok
      return base.Equals(obj);
       //with these 4 lines i have the problems
       ModelBase<TPKey> other = obj as ModelBase<TPKey>;
       if (other == null) return false;
       if (this.Id.Equals(default(TPKey)) || other.Id.Equals(default(TPKey))) return false;
       return this.Id.Equals(other.Id);
    }
    /// <summary>
    /// Return the HashCode of the primary key
    /// </summary>
    /// <returns></returns>
    public override int GetHashCode() {
      //with this line it is all ok 
      return base.GetHashCode(); 
      //with this line i have the problem
      return this.Id.GetHashCode();
       
    }
    #endregion
}

Mauro
Top achievements
Rank 1
 answered on 25 Sep 2012
9 answers
425 views
Hi!

Following scenario:
I have a grid with a GridViewComboBoxColumn. The ItemsSource is a list of items, which shall only be selectable once. Therefore I am adapting the list of items, according to the edited row and hide all already selected items dynamically. This means, after all items have been selected, the list of items will be empty.

Now comes the problem:
When I enter edit mode in a row, all other rows in the column become emtpy. The grid just does not show the right thing. I guess this behavior results from the fact, that the list of items does not contain the actual items anymore...

I could work around this problem, by defining a CellTemplate, which explicitly binds to the Name of the item .

<telerik:GridViewComboBoxColumn.CellTemplate>
    <DataTemplate>
        <TextBlock Text="{Binding Name}" />
    </DataTemplate>
</telerik:GridViewComboBoxColumn.CellTemplate>


I have created this thread to understand WHY... and to ask if there is a better why to achieve a dynamic ItemsSource list.

Thanks and regards,

Franziska


Burim
Top achievements
Rank 1
 answered on 25 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?