Telerik Forums
UI for WPF Forum
1 answer
300 views
I'm building a reusable user control that will contain a search query textbox and a GridView that contains the results of the query.  I have created a DependencyProperty on the user control that will hold the collection of items to be searched.  Since the type of objects we will be searching and displaying on the screen varies, I also need to have the user control support custom column definitions for the GridView.  I tried creating a DependencyProperty for the columns definition, but it looks like the GridView didn't support binding the columns property to it.

As it stands right now, the columns are defined from within the user control's XAML.  It is fully functional.  However, this breaks reusability if we want to work with a collection of a different type of object, and we don't want to auto-generate columns.  Any ideas on how we can move the GridView column definitions outside of the user control but still have them written in XAML?  I've done some searching for a solution but haven't found anything ideal yet.

Thanks.
Vlad
Telerik team
 answered on 01 Jun 2012
1 answer
161 views
I'm relatively new user of Telerik controls.

I have a grid with a group column, and the grouped column is not visible. Clicking on group record throws an exception. It is not consistent, but I do get this error every now and then. I would appreciate if anyone could point me in the right direction.

Version
: 2012.1.326.40
Call Stack:

  Telerik.Windows.Data.dll!Telerik.Windows.Data.ObjectDataBinder.GetValue(object bindingSource = null, string propertyPath = "Manager") Line 26 + 0x3 bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridViewBoundColumnBase.GetCellContent(object item = null) Line 1213 + 0x1d bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridViewBoundColumnBase.CreateCellElement(Telerik.Windows.Controls.GridView.GridViewCell cell = {Telerik.Windows.Controls.GridView.GridViewCell}, object dataItem = null) Line 179 + 0x11 bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCell.CreateCellElement(Telerik.Windows.Controls.GridViewColumn column = {Telerik.Windows.Controls.GridViewDataColumn}, object dataItem = null) Line 549 + 0x1a bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCell.SetCellElement() Line 522 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewRow.PrepareCell(Telerik.Windows.Controls.GridView.GridViewCellBase cellBase = {Telerik.Windows.Controls.GridView.GridViewCell}, Telerik.Windows.Controls.GridViewColumn column = {Telerik.Windows.Controls.GridViewDataColumn}) Line 961 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCellsPanel.PrepareCell(Telerik.Windows.Controls.GridView.GridViewCellBase cell = {Telerik.Windows.Controls.GridView.GridViewCell}, Telerik.Windows.Controls.GridViewColumn column = {Telerik.Windows.Controls.GridViewDataColumn}) Line 410 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCellsPanel.GetVirtualizedCell(Telerik.Windows.Controls.GridViewColumn column = {Telerik.Windows.Controls.GridViewDataColumn}, bool createIfNull = true) Line 367 + 0xf bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCellsPanel.RealizeAndMeasureCells(int startIndex = 0, int predictedLastIndex = 7, System.Func<int,int> calculateNextIndex = {Method = {System.Reflection.RuntimeMethodInfo}}) Line 334 + 0xe bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCellsPanel.UpdateVirtualizedCells() Line 269 C#
> Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(System.Windows.Size availableSize = {System.Windows.Size}) Line 306 C#
Vlad
Telerik team
 answered on 01 Jun 2012
6 answers
476 views
Hi, i have a question - how can i create rounded corners for rad grid view.
I tried to use opacity mask, but not with great success - i was wondering if i need to edit new template or i can use opacity mask.

Thank you.
Stephen
Top achievements
Rank 1
 answered on 31 May 2012
7 answers
180 views

I have a RadRibbonView with his "IsMinimized" property set to "True". In my RadRibbonView, I have a "Search" RadRibbonTab with many fields and a search button. If my users click on the RadRibbonTab, the RadRibbonTab expand and the user can enter values the fields and click on the search button to start searching informations.

I'm trying to implement a CTRL+F gesture (search shortcut) and I would like to know how I can force the RadRibbonTab to be visible by code to simulate a user click on the RadRibbonTab.

Thank's
Tina Stancheva
Telerik team
 answered on 31 May 2012
1 answer
167 views
We like RadRibbonTab auto adjust the width of the header (Width="Auto"), but comparing RadRibbonTab with Excel, the header in Excel is about 25% wider then RadRibbonTab.  Could you please show me how to make the tab header more wider.
The tab header in our application is created by user, so auto adjustable is necessary.  
BTW: We are using RadControl 4.0.30319 
Thanks,
Chris
Miro Miroslavov
Telerik team
 answered on 31 May 2012
3 answers
144 views
Have a touch screen app with a RadCarouselpanels populating a listbox.
(there are 3 usercontrols) . I only need to lock the scrolling on one of the usercontols.
So the user are able to use the touch features.

any thoughts?
Vanya Pavlova
Telerik team
 answered on 31 May 2012
3 answers
126 views

Hi,
I'm starting to use your RadCarousel control and I have got a problem.

I want to replace the horizontal buttons with a customized button with a picture.

How could I do this?

Thank you for your help.
 

Bea

Vanya Pavlova
Telerik team
 answered on 31 May 2012
1 answer
167 views
Hi,
    I have the following recurrence pattern string DTSTART:20120502T113000ZDTEND:20120502T123000ZRRULE:FREQ=MONTHLY;INTERVAL=16;BYMONTHDAY=2
I use this code to apply it to an appointment
                var pattern = new Telerik.Windows.Controls.ScheduleView.RecurrencePattern();
                if (Telerik.Windows.Controls.ScheduleView.ICalendar.RecurrencePatternHelper.TryParseRecurrencePattern(item.Recurrence_rule, out pattern))
                {
                    apt.RecurrenceRule = new Telerik.Windows.Controls.ScheduleView.RecurrenceRule(pattern);
}

When checking for occurennces it seems to occur every 12 months on day 2 and not every 16 months. In fact any month number over 12 seems always fall back to 12.

Is this a bug or have I got my logic wrong?
Thanks
Boyan
Telerik team
 answered on 31 May 2012
3 answers
338 views
I have a grid view that has about 450 items in it, with 8 columns on each item. There are 10 top-level nodes.

Expanding or collapsing at any level takes quite a while - click on the arrow, wait almost a second, then the change shows up in the grid. The speed doesn't seem to change depending on whether the tree is fully expanded or fully closed. The treelist is bound directly to a collection.

I did a quick profile, and it looks like it's spending most of it's time in:

Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureChild(class System.Windows.UIElement,valuetype System.Windows.Size,int32)

Any thoughts...
Vlad
Telerik team
 answered on 31 May 2012
1 answer
857 views
Hello,

I use standard WPF DataGrid for building of dynamically columns  in my 'dgFields'. I want to use telerik GridView.
If greatly simplify my code (for standard DataGrid) then I need similar for RadGridView:


dgFields.Columns.Add(new DataGridTextColumn { Binding = new Binding("Name"), Header = "Column name", IsReadOnly = true });
dgFields.Columns.Add(new DataGridTextColumn { Binding = new Binding("Header"), Header = "Header", IsReadOnly = true });
dgFields.Columns.Add(new DataGridCheckBoxColumn { Binding = new Binding("IsVisible"), Header = "Is Visible", IsReadOnly = false });
dgFields.Columns.Add(new DataGridTextColumn { Binding = new Binding("Description"), Header = "Description", IsReadOnly = true, MinWidth = 258 });
 
foreach (var column in myObject.HyperlinkColumns)
{
    var style = new Style(typeof(TextBlock));
    style.Setters.Add(new EventSetter(Hyperlink.ClickEvent, (RoutedEventHandler)EventSetter_OnHyperlinkClickEventHandler));
    dgFields.Columns.Add(new DataGridHyperlinkColumn { Binding = new Binding(column.Name), Header = column.Header, ElementStyle = style });
}


I need Text, Hyperlink and CheckBox columns with binding.

Thanks,
Dmitry
Vitaly
Top achievements
Rank 1
 answered on 31 May 2012
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
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?