Telerik Forums
UI for WinForms Forum
17 answers
215 views
Great news to be able to use pivotgrids!  Some questions though:

When I drag a field from the fieldlist into the row or column area, it is initially show expanded. Is it possible to initially show it collapsed?

Thanks
Sjoerd
Ivan Todorov
Telerik team
 answered on 18 Apr 2014
1 answer
125 views
Hello Telerik team :)

It seems that Telerik.WinControls.PivotGrid.dll (using ver 2014.1.402.40) is referencing TelerikData.dll

I assume that this has to do with export. My problem is that I need to ilmerge this dll and I would like not to include TelerikData.dll.
Also this is not present in the documentation of PivotGrid or in the Redistributing Telerik UI for WinForms section.

GridView also has excel export support and it also states (in documentation)
The HTML export functionality is located in the TelerikData.dll assembly.
You need to include the following namespaces in order to access the types contained in TelerikData:Telerik.WinControls.DataTelerik.WinControls.UI.Export

Will this be mantatory (referencing TelerikData.dll for PivotGrid) or will it change in the future, as it is in all other UI for WinForms dlls?

Thank you all
Ivan Todorov
Telerik team
 answered on 18 Apr 2014
3 answers
344 views
Hi!

How to prevent auto close of RadContextMenu when user clicks on item on it? Now, after mouse click on any item, it closes. In WinForms there is ContextMenuStrip.AutoClose property to prevent autoclosing. Is there analogue of the property on Telerik RadContextMenu?

Thanks,
Dimitar
Telerik team
 answered on 17 Apr 2014
1 answer
119 views
My RadGridView is bound to object defined as:

public class DataElement 
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string Datatype { get; set; }
        public string Size { get; set; }
        public bool PrimaryKey { get; set; }
        public bool ForeignKey { get; set; }
        public List<TagModel> Tags { get; set; }

        
    }
public class TagModel
    {
        public int Id { get; set; }
        public string Name { get; set; }

    }
Which binds fine and the child row (of type TagModel) is displayed as expected with  the Add New Row option available


When I click on the "Click here to add a new row" a new row is added in the grid but after entering in data the row is not actually created.  It goes away if I collapse the parent row and nothing is added to the bound Tags list.  This appears to work fine with Datasets but not with objects.  I have tried handling different events but none seem to fire as I would have expected.   I am currently evaluating this product and I really need this to work in order to move forward with purchasing this product.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Apr 2014
3 answers
374 views
Hello,

In GridView row opened for edit, after changing some cells values, how can I enable the user to cancel the changes done and retreive the previous values?
In many appliactions, clicking on Escape cancels the edit of the row fields (if the user didn't focus out of the row yet).

George
Telerik team
 answered on 17 Apr 2014
2 answers
103 views
Why doesn't the following code work?

imageContainer1.Image = ((GridViewCellInfoCollection)multiColumnComboBoxPhysicans.SelectedItem)["Image"];

I'm getting the following error:

Cannot implicitly convert type 'Telerik.WinControls.UI.GridViewCellInfo' to 'System.Drawing.Image'.
Arron
Top achievements
Rank 1
 answered on 17 Apr 2014
2 answers
100 views
Hi,

I'm using the GridView from version 2014 Q1 SP1.

I filled the Grid in Unbound Mode (autogeneratecolumns=false), and added a child hierarchy using Load-On-Demand (ResourceNeeded event).
The Top Level (MasterTemplate) is fully loaded into the Grid in no time, about 8000 records.

Scrolling down using the Scrollbar is fast, and selecting the bottom record is fast as well.

But selecting the last record using GridNavigator.SelectLastRow is very slow (about 10 seconds). 
SelectFirstRow afterwards is immediate, SelectLastRow again is still slow at about 10 seconds.

Using DeferRefresh does not change a thing.

How can I speed this (SelectLastRow) up?




Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Apr 2014
3 answers
189 views
Hello 
Can anyone tell me, how to select the items using 
RECTANGLE SELECTION 


/ / Draws the backgrounds for Entire ListView items. 
private void listView1_DrawItem (object sender, 
     DrawListViewItemEventArgs e) 
{
     if ((e.State & ListViewItemStates.Selected)! = 0) 
     {
         / / Draw the background and focus rectangle for a selected item. 
         e.Graphics.FillRectangle (Brushes.Maroon, e.Bounds); 
         e.DrawFocusRectangle (); 
     } 
     else 
     {
         / / Draw the background for an unselected item. 
         using (LinearGradientBrush brush = 
             new LinearGradientBrush (e.Bounds, Color.Orange, 
             Color.Maroon, LinearGradientMode.Horizontal)) 
         {
             e.Graphics.FillRectangle (brush, e.Bounds); 
         } 
     } 

     / / Draw the item text for views other than the Details view. 
     if (listView1.View! = View.Details) 
     {
         e.DrawText (); 
     } 
}
Stefan
Telerik team
 answered on 16 Apr 2014
2 answers
155 views
Hi.

I'm having problems with RadListView, regarding the change of DataSource.

First problem : using an Interface type
Here is what I do : I am using RadListView, in details mode, to list objects, implementing a common interface, let's say IListItem.  As a DataSource, I am using a IListItem[ ].

Let's say I have an array containing two or more types implementing the interface : TypeA and TypeB.
Using that array as the datasource will do nicely.

If I use an array containing only objects of TypeA, the RadListView will create not only columns based on IListItem, but also add columns based on TypeA. Is this a desired behavior? I would expect only to see columns based on IListItem.

I have been able to work around this with ColumnCreating event, adding :
switch (e.Column.FieldName)
{
...
 default:
                    e.Column.Visible = false;
}

Second problem :

Assuming the same conditions (interface type IListItem, two types implementing it TypeA and TypeB)

At first, the DataSource is defined with a large array, containing both TypeA and TypeB. After a search (the search is full text and made on sqlserver, a new array is then constructed with new objects), the datasource is changed this way :
radListView1.DataSource = array;

If it occurs that the new array contains only TypeA, I get a System.Reflection.TargetInvocationException. The stack trace shows the last call from Telerik code comes from : Telerik.WinControls.Data.RadListSource`1.GetBoundValue.

And it looks like the reflection exception is trying to access TypeB directly, instead of using the interface (my exception is in french, but it would probably be object does not match target type). It start in my ColumnCreating method, the event being fired after the datasource update.

That looks a bit to what is described in this thread :
http://www.telerik.com/forums/refresh-data-in-radlistview-problem#Hlgoam9vfkaKvqTGSWdttg

My understanding was that the bug was fixed, but I have been able to work around it this way :
radListView1.Columns.Clear();
radListView1.DataSource = null;

before updating the DataSource. Not clearing the Columns seems to affect the AutoSizeMode defined in ColumnCreating because the columns are all too small after a datasource change. Even with Columns.Clear, the AutoSizeMode is not perfect, but it is still better. One of my columns looks a bit too small, maybe adjusting only  at first time?

Thanks!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Apr 2014
5 answers
276 views
I have been playing around with the Telerik GridView and am very impressed with its capabilities.  However, I have tried data binding to an object containing dataanotations (specifically the Display attribute) but the grid seems to be ignoring them.  Is there something I have to do in order to make this work?  I am using .Net version 4 so I think it should be supported.  Any help would be appreciated.
George
Telerik team
 answered on 16 Apr 2014
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?