Telerik Forums
UI for WPF Forum
2 answers
447 views
I need to refresh schedule view on button click or any event. when i bind data with it first time it works perfectly second time when i changed the data and rebind it, its not refresh the scheduleview
Faheem
Top achievements
Rank 1
 answered on 12 Apr 2011
0 answers
76 views
Hi,

I am using a stack panel with a TextBlock & ItemsControl.

How do I export the data to Excel.

Any quick sample will be highly appreciated.

Thanks & Regards,
Hirak

hirak
Top achievements
Rank 1
 asked on 12 Apr 2011
0 answers
79 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
466 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
300 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
105 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
143 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
131 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
72 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
77 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
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
DataPager
PersistenceFramework
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?