Telerik Forums
UI for WPF Forum
1 answer
114 views
Bit of a long shot, but is there any way of improving the performance when scrolling through larger documents?

I may be totally wrong, but I'd hazard a guess that the only parts of the document that are loaded and rendered are those that are in the View Port, and any scrolling results in the bits off screen having to be drawn.  This would help memory useage, but explain the slight jerkiness in scrolling.  Evidentally a compromise is to render a page or two either side.
Martin Ivanov
Telerik team
 answered on 04 Apr 2012
0 answers
70 views
Hi

I have form include GridView that user can change column visibility, size, sort, etc. and then save layout using PersistenceManager.
Because I implement custom paging, in Sorting event, i get sorted data from server.
all process work fine. but when restore layout using PersistenceManager, Column that user already sorted on it restore and data sorted in local mode, not server mode.

Therefore if GridView Sorting event raise automatic or manual after restore layout, my problem will be solved.

Note: I also using below code, but not work:
lstGridView.ForEach(p =>
{
         if (p.SortDescriptors != null && p.SortDescriptors.Count > 0)
         {
                 p.RaiseEvent(new GridViewSortingEventArgs((p.SortDescriptors[0] as ColumnSortDescriptor).Column, SortingState.None, SortingState.Ascending) {
                                            RoutedEvent = RadGridView.SortingEvent,
                                            Source = this
                  });
          }
});

Could you please help me.
hamid
Top achievements
Rank 1
 asked on 04 Apr 2012
1 answer
99 views
Hi telerik,

When I activate menu items, the menu stays open.

Specifically, I add menu items through code to maintain a 'recent files' list in the File menu. Clicking the menu item activates functionality correctly, but menu stays open. All menu items inserted through xaml seems to work correctly.

It would appear it has already been reported long time ago:
http://www.telerik.com/community/forums/wpf/menu/radmenu-visible-after-onclick-event-fires.aspx
(Can't see any comments about being resolved?)

I can live with it, if I can somehow force the menu to go away but much fidling around with enabled, visibility even removal of the entire menu and re-inserting it has proved not to work. Do you have any suggestions for such a work-around?

Thanks,

Anders, Denmark
Yana
Telerik team
 answered on 04 Apr 2012
5 answers
176 views
Quick question:
Is there a way to resize the tiles at will ? Possibly by dragging a left-mouse cursor on the edges of the tiles. This will give flexiblity beyond the 3 fixed size of minimized, maximized, and restored.

Miro Miroslavov
Telerik team
 answered on 04 Apr 2012
7 answers
201 views
Any type of control which has a drop down, like ComboBox, Listbox become hidden when clicked within a RadWindow.
It seems to happen on Windows XP machines.

If you set the radwindow to IsTopMost then the combobox is visible, but I do not want to use this method.
I have tried a lot of things, but with no success. (including setting zindex)

Is this a bug with radwindow, and is there a workaround? I am using mvvm, so would rather not have to do any code behind.
Georgi
Telerik team
 answered on 04 Apr 2012
0 answers
119 views
Hello,

I wanted to set a few rows in my grid to readonly...I did not see the Readonly property for a row...
I got a piece of code which successfully disable my rows....but it's nt exactly what i wanted.

Code :

 

 

public void MakeExistingRowsReadOnly()

 

{

 

 

if (this.Items.ItemCount != 0)

 

{

 

 

for (int i = 0; i < this.Items.Count; i++)

 

{

 

 

GridViewRow currentrow = (GridViewRow)this.ItemContainerGenerator.ContainerFromItem(this.Items[i]);

 

 

 

if (!currentrow.Equals(null))

 

{

currentrow.IsEnabled =

 

false;

 

 

}

}

}

}


With this code...it disables the rows completely. The user can copy a cell etc.
what i want to achieve ios that...when the user is in the add mode...certain rows only are ReadOnly whereby he won't be able to enter values in that row. But he can copy data from the Readonly rows, can navigate etc.

Right now with this code, navigation and copying the data has been lost.

Can anyone please help...How can we make rows Readonly...without losing other features?

Regards
Shaimaa
Shaimaa
Top achievements
Rank 1
 asked on 04 Apr 2012
1 answer
182 views
Our scenario is as follows:

We have 4 tabitems for a RadTabControl (Tab1, Tab2, Tab3, Tab4) in this order and Tab1 is set as the selected tab when the RadTabControl is loaded for the first time.

The parent user control that wraps this RadTabControl when tries to find the Tab4 (without Tab4 set to focus or a manual user selection), the following code we run by in Framework is unable to locate it.. 

To reiterate the point, if that Tab4 is set as the first tab item or has focus or has a manual user selection - the same piece of code locates the Tab4.

        private static T FindChild<T>(DependencyObject parent) where T : DependencyObject

        {

            for (int i = 0; i < VisualTreeHelper.GetChildrenCount(parent); i++)

            {

                DependencyObject child = VisualTreeHelper.GetChild(parent, i);

                if (child != null && child is T)

                    return (T)child;

                else

                {

                    T childOfChild = FindChild<T>(child);

                    if (childOfChild != null)

                        return childOfChild;

                }

            }

            return null;

        }


Let us know if there is a property that we can apply for a specific RadTabItem to ensure the tabitem object is created as soon as the RadTabControl (as a container object) is created/loaded.

Thanks much
Kam Panchal
Hristo
Telerik team
 answered on 04 Apr 2012
2 answers
137 views
Hello,
Suppose we have this XAML :

<StackPanel>
    <telerik:RadTransitionControl x:Name="tr1">
        <Label x:Name="lblMessage"></Label>
    </telerik:RadTransitionControl>
    <Button Content="Button"  Height="23" Name="button1" Width="75" Click="button1_Click" />
</StackPanel>

and when button1_Click has this code :
tr1.Content = DateTime.Now.ToString();
It works well.
 But replacing it with this code :
lblMessage.Content = DateTime.Now.ToString();
causes the transition to not to work !

It seems that it only detects first layer changes in content and doesn't detect deep change.

So have I forgotten something here or its the nature of this control ?

Regards,
MahMah
Top achievements
Rank 1
 answered on 04 Apr 2012
2 answers
132 views
Hi,
I am pretty new to WPF,i hav been cracking my head for a day and still no go ,
I need a grid view and some labels to appear in the popup.. while trying to keep the popup similar to the WPF demos..
Attaching a picture for refrence...

Thank you
Regards
Saneesh-B
Saneesh
Top achievements
Rank 1
 answered on 04 Apr 2012
0 answers
98 views
Hello!

I would like to achieve this result as show in the picture (attachment).
Should I use RadGridView control? Or maybe there is some way to use ListBox instead of GridView?

I have my object's class:

public class Reinforcement
   {
       private string fi;
       private bool spacingMode;
       private int amount;
       private double spacing;
       private bool combine = false;
       private double area;
 
       public Reinforcement()
       {
       }
 
       public Reinforcement(string fi, bool spacingMode, int amount, double spacing, bool combine)
       {
           Fi = fi;
           SpacingMode = spacingMode;
           Amount = amount;
           Spacing = spacing;
           Combine = combine;
       }
 
       public string Fi
       {
           get
           {
               return this.fi;
           }
           set
           {
               this.fi = value;
           }
       }
         // (...) 
}


And ViewModel:

public class ReinforcementViewModel
    {
        private static ObservableCollection<Reinforcement> reinforcementsByAmount;
        private static ObservableCollection<Reinforcement> reinforcementsBySpacing;
 
        public static ObservableCollection<Reinforcement> ReinforcementByAmount
        {
            get
            {
                if (reinforcementsByAmount == null)
                {
                    reinforcementsByAmount = new ObservableCollection<Reinforcement>();
 
                    for (int i = 1; i <= 10; i++)
                    {
                        reinforcementsByAmount.Add(new Reinforcement("10", false, i, 1, false));
                        reinforcementsByAmount.Add(new Reinforcement("12", false, i, 1, false));
 (...)
                    }
                }
 
                return reinforcementsByAmount;
            }
        }


Any ideas or/and tips for me?

I thought that with ListBox I could use panel with specify width and each cell has also specify width. In this way I can wrap items to the next row by calculating width.
 
After that I would like to create an event on cell's click, which return me the Area value. But with this I think I wouldn't have a problem.
Grzesiek
Top achievements
Rank 2
Iron
 asked on 03 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?