Telerik Forums
UI for WPF Forum
0 answers
72 views

Hi,

we are using GridView.ToHtml method for Export grid's records.

Depending on records count, we get a System.OutOfMemoryException in this method. (>10000 records throw  exception)

We are using 'RadControls for WPF Q2 2009' version.

Are there anyway to improve performance or to avoid this exception?

Best regards!

ayus
Top achievements
Rank 1
 asked on 12 Apr 2011
4 answers
450 views
Hi there, I am trying to create a behavior I can use to set the width of certain columns to 0 if certain things happen but when I try to access the AssociatedObject it is always null. I think the code will better explain this...

public static readonly DependencyProperty VisibilityProperty =
        DependencyProperty.Register("Visibility", typeof(bool), typeof(HideRadGridViewColumnBehavior),
        new PropertyMetadata(OnVisibilityPropertyChanged));
 
private static void OnVisibilityPropertyChanged(DependencyObject target, DependencyPropertyChangedEventArgs args)
{
  if (((HideRadGridViewColumnBehavior)target).AssociatedObject == null)
  {
    MessageBox.Show("AssociatedObject is null");
  }
  else
  {
    var col = ((HideRadGridViewColumnBehavior)target).AssociatedObject as GridViewDataColumn;
    col.Width = 0;
    col.Header = "";
    col.IsResizable = false;
  }
}

It's fairly obvious what I want to do there however no matter what the AssociatedObject is null, Here is the XAML I am using - hopefully someone can point me in the right direction on this.

<telerik:GridViewDataColumn DataMemberBinding="{Binding ModelId}"  Header="ID">
  <i:Interaction.Behaviors>
    <b:HideRadGridViewColumnBehavior Visibility="{Binding Path=DevMode}"/>
  </i:Interaction.Behaviors>
</telerik:GridViewDataColumn>

Thanks alot!!!
Ivan Ivanov
Telerik team
 answered on 12 Apr 2011
3 answers
278 views
Hello,

I'm trying to add an item to the top of my treeview with a value of "Select/Deselect All" that will check all items. I have a treeview named "tvDirectory" 

I added it like this:
tvDirectory.Items.Add("Select/Deselect All");
 

Then I tried to implement the functionality in the Checked eventhandler like this:
RadTreeViewItem item = (RadTreeViewItem)((RadTreeView)sender).SelectedContainer;
if (item != null)
{
 
    if (item.CheckState == ToggleState.On)
    {
        foreach (RadTreeViewItem tvItem in tvDirectory.Items)
        {
            tvItem.CheckState = ToggleState.On;
        }
    }
    else
    {
        foreach (RadTreeViewItem tvItem in tvDirectory.Items)
        {
            tvItem.CheckState = ToggleState.Off;
        }
    }
}

But I get an "object reference not set to instance of an object for  "item". Help please, thanks.

fred williams
Top achievements
Rank 1
 answered on 12 Apr 2011
1 answer
97 views
Hi there,

I followed the ScheduleView / Drag And Drop Example but found two issues that I need assistance with.

(i) When an item is dragged from the ScheduleView back to the listbox, and the payload is directly dragged on top of a ListItem, when the drop operation completes the item disappears.
(ii) When an item is dragged to the very bottom of the listbox originating from the ScheduleView or the ListBox, when the drop operation completes the item disappears.

What changes to the OnDropQuery and OnDropInfo are required to get this to work. I'd like for an item to be able to be dragged back from the ScheduleView to the ListBox without disappearing.

I tried.to combine the Drag within a ListBox Example with the ScheduleView Drag Drop Example with no success.
Yana
Telerik team
 answered on 12 Apr 2011
0 answers
131 views
Hello Telerik Team,
                              I have one clarification about radcombobox..
I have two objects like ID and Name.The values are stored in database.I want to  retrieve these details and Display in radcomboBox

Then if i Give ID mean the drop down will open based on ID in ascending Order...(Filtering)
and also if i give Name then the drop down will open based on Name in Ascending order 

Is it possible in radcomboBox?
or How to do this?
pls give more ideas..

Thank You...
gokulnath
Top achievements
Rank 1
 asked on 12 Apr 2011
1 answer
121 views
I have a question about Telerik brushes.

I realize that the Telerik themes work for all Telerik WPF controls and 8 non-Telerik control types.

What I want to do is set some colors for other controls including our own custom controls to match the Telerik theme colors.
My question is this:
Is there a list available with the common brushes used in the themes so I can set my control resource dict to use those colors?
For example, previously we used Nukeation themes and I could use their brushes like WindowBackgroundBrush to make our stuff match their theme. To make (for example) a custom control background match the Nukeation theme, I merely needed to set its background to the WindowBackgroundBrush.

I looked at the Telerik Source code but there are billions of brushes defined in hundreds of XAML files so it is difficult to know what are the common brushes used.
Vanya Pavlova
Telerik team
 answered on 12 Apr 2011
1 answer
62 views
All the versions for 2011 Q1 are WPF 35 and framework 2.   When is 4 going to be available?
Maya
Telerik team
 answered on 12 Apr 2011
1 answer
60 views
Hi
Latest Version this Property working fine but

I have a Telerik.Controls.Navigation Version[2010.3.1110.40] in this not Support this Property


Can u give me a alternate way

Regards
S.SenthilNathan

Zarko
Telerik team
 answered on 12 Apr 2011
3 answers
59 views
Hi

I am using 12 Rad TileView Item So I click the 12th TileView Item to Maximize  then minimize  that tileview move to First item but I want Maintain 12 th item

Regards
S.SenthilNathan
Zarko
Telerik team
 answered on 12 Apr 2011
9 answers
869 views
Hi Telerik,

It's perfectly possible that my issue is due to not understanding the focus topic, but the general WPF examples I find do not seem to work for me with RadDocking.

Goal / What I try to achieve:
- I wish to be able to double-click a row in a RadGridView, which is inside a RadPane.
- When double-clicking, I wish to open another RadPane, potentially one that's already open and focus a specific control (RadMaskedTextBox) inside the new RadPane.

(Our inspiration is the Error List in Visual Studio - our goal is exactly the same, directing the user to be able to edit a specific, problematic value).

Problem:
The control is not focused, rather the initial window is focused.

What I do:
I use Keyboard.Focus() to focus the RadPane
I use Keyboard.Focus() to focus the specific control.
It's done after the control is loaded and the specific control has .Focusable==.IsVisible==true
Result: System.Windows.Input.Keyboard.FocusedElement shows the desired control.
So far so good!
In the eventhandler OnRowActivated I set e.Handled = true

But when I exit the eventhandler OnRowActivated (that is: after debugging, the app is running again), the Error window has focus, not the one I just gave focus to.

So do my Telerik controls 'draw back' the focus as part of wrapping up the OnRowActivated event handler, or do you have some ideas on what to try out?

Thanks,

Anders, Denmark
George
Telerik team
 answered on 12 Apr 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?