Telerik Forums
UI for WinForms Forum
2 answers
323 views
Hi,

I just reinstalled VS2012 due to some strange malfunction (I couldn't add controls to forms from the toolbox), and at the same time, i uninstalled Telerik Winforms controls  version 2010_3_10_1215 and installed version 2012_3_1211, which we use in our solution. 
My problem is, that in the Telerik controls Toolbox tab, most controls are greyed out, and appears twice.
I have tried the TelerikToolboxCleaner from one of the other posts, but apparently it works with VS2010, not VS2012.
I have also used the Telerik Toolbox Configurator.
I wan't to have all controls available one time.

I'm not too fond of resetting the toolbox, because I fear it might mess up a lot of other things.

How do I fix this?

I hope you can help me resolve this issue.

BR
Henning
Vesko
Telerik team
 answered on 11 Feb 2013
6 answers
528 views
I have a column in a rad grid that's a combo box column.  i've loaded the datasource with stuff. it shows fine and users can pick one.  this column is filled with possible responses but they should also be able to type anything they want in the combo editor area and it retain that until they save it.  after that, the grid will be cleared and the drop downs loaded etc and return to the original state.  i can't get that to work though, after i type something in and leave, it disappears.  is there a way to allow users to pick something or type in it?

thanks
Ivan Petrov
Telerik team
 answered on 11 Feb 2013
1 answer
131 views

I am trying to set the RadMaskEdit control up as a input for a point of sale. I need to enter the value of cash given by a customer. I'm using a popup numeric keypad but it will not have a decimal point button on it - just a number pad. The end result needs two decimal places like "3.50" but as you type in a number it needs to be added to the end of the number. For example; when i need to enter $3.50 i would just type 3 5 0 (no decimal point). The end result should be 3.50 in the text box. 

Example 2
first digit entered 3 would display 0.03
second digit 5 entered would display 0.35
third digit 0 entered  would display 3.50

I'm not sure what type of format you would call this but this is what i need. I tried a buch of options for the mask but none so far are giving me this functionality.

Can someone provide me a clue or point me in the right direction on this?
Jack
Telerik team
 answered on 11 Feb 2013
1 answer
200 views
Hi ,
          I am using rad listbox for display the data and having context menu by right click the listbox.
I am having problem in selected item by right click(not selected if any other item by right clicking).
please give solution for this.
Mohan
Top achievements
Rank 1
 answered on 11 Feb 2013
1 answer
387 views
Hi
I use radpageView in my project that have many pages in it.and use the telerik Metrothem for that.now I want to change tab's background color from its default (Green) to another color.How Do this ?in which property?
thank you
Plamen
Telerik team
 answered on 11 Feb 2013
2 answers
129 views
I created a new project to start working with the RadRichTextBox item.  However, when I have tried to copy code from the forum into the project (for instance, the code found at http://www.telerik.com/community/forums/winforms/richtextbox/inserting-an-image-into-richtextbox-table.aspx), the project fails to recognize the types Section, Table, TableRow, TableCell, ImagineInline, Paragraph, as well as all the others not defined in standard C#.  I think all the required dlls are present, and I am supplying the correct using statements at the top.

I cannot find out where those classes are defined in the telerik namespace so I can refer to them.

I am using the latest version, 2012 Q3.

Any suggestions would be appreciated.
Claude
Top achievements
Rank 1
 answered on 10 Feb 2013
7 answers
238 views
Hi guys,

I upgraded my project to Q3-2012 today and now there is a small gap between the title bar and command bar in my RadRibbonForm.
I even create a blank project and just add a RadRibbonBarForm in to make sure my code doesnt change the way it shows.
Also I notice all the buttons in QuickAccessToolBar have border as well. These border will disappear when I move the mouse over.
Is there any way I can get rid of the gap?

Dean
Mohsen
Top achievements
Rank 1
 answered on 09 Feb 2013
1 answer
392 views
Hello

I have a RadGridView, and when a user hovers the mouse over a cell, I would like to give him a "how did this data got here" kind of tooltip. Using RadGridView1_ToolTipTextNeeded works well, and allows me to query the database for the detailled informations of a cell, but I would like to display it in a column-aligned tooltip to make it easy to read. I created a complex method that "pad" the tooltip "columns" according to the number of characters, but I got caught by the rookie mistake that the default font is not fixed size (like Arial).

Is there a way to change the displayed font?

Also, can the tooltip display timer be increased? I would like the user to have time to read it before it closes.

Thanks
Anton
Telerik team
 answered on 08 Feb 2013
16 answers
274 views
Hi Guys

I'm trying to embed a gridview in a screen tip in order to display information about a cell in an underlying grid when that cell IsMouseOver.

I'm using the following code embedding a grid in a RadHostItem and then adding that to the Items collection of the screentip. Debugging shows that the RadHostItem and its grid are appearing in the collection but the Grid does not display when the screentip is displayed.
Any help to solve this would be appreciated.

Many thanks in advance
Regard
Ian Carson

void rgvOperationsGrid_ScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
{
    var cell = e.Item as GridDataCellElement;
 
    if (cell == null ) return;
    if(cell.ColumnIndex==5 || cell.ColumnIndex==7)
        ShowParameterScreenTipForCell(cell);
 
}
 
private void ShowParameterScreenTipForCell(GridDataCellElement cell)
{
    var tipGrid = new RadGridView();
    tipGrid.Columns.Add(new GridViewTextBoxColumn {HeaderText = "This is a column"});
    tipGrid.MasterTemplate.BestFitColumns();
    var rowInfo = tipGrid.Rows.AddNew();
    rowInfo.Cells[0].Value = "Hello";
 
    var screenTip = new RadOffice2007ScreenTipElement();
    screenTip.ThemeRole = "Office2010Silver";
    screenTip.AutoSize = false;
    screenTip.Size = new Size(200, 200);
    screenTip.CaptionLabel.Text = "This is a Screen Tip";
    var contentItem = new RadHostItem(tipGrid);
    contentItem.MinSize = new Size(100, 100);
 
    //contentItem.Image = Resources.Execution24;
    //contentItem.FitToSizeMode = RadFitToSizeMode.FitToParentBounds;
 
    screenTip.Items.Insert(1, contentItem);
    cell.ScreenTip = screenTip;
}

Jack
Telerik team
 answered on 08 Feb 2013
2 answers
404 views
When I sort my grid on certain columns and then change the data bound to the grid from a thread other than the main UI thread, I sometimes get a null reference exception.

My setup is basically this:

_gridView.DataSource = myObject.Children;
// user sorts grid
// user requests update from server
make BackgroundWorker to pull from server and update myObject.Children (fields of existing objects and add/remove from list)
show progress dialog on UI thread while data is being pulled from server and put into Children on BackgroundWorker thread


I get this exception:
System.NullReferenceException  {"Object reference not set to an instance of an object."}
   at Telerik.Collections.Generic.AvlTree`1.FixInsert(AvlTreeNode`1 t, AvlTreeNode`1 u, Int32[] ad, Int32 n)
   at Telerik.Collections.Generic.AvlTree`1.Insert(Int32 index, ValueT value)
   at Telerik.Collections.Generic.AvlTree`1.InsertWithDuplicates(ValueT value)
   at Telerik.Collections.Generic.AvlTree`1.Add(ValueT item)
   at Telerik.WinControls.Data.AvlIndex`1.Perform()
   at Telerik.WinControls.Data.AvlIndex`1.get_Items()
   at Telerik.WinControls.Data.RadDataView`1.get_Items()
   at Telerik.WinControls.Data.RadCollectionView`1.GetEnumerator()
   at Telerik.WinControls.UI.GridViewInfo.Refresh()
   at Telerik.WinControls.UI.GridViewInfo.get_ChildRows()
   at Telerik.WinControls.UI.GridViewTemplate.get_ChildRows()
   at Telerik.WinControls.UI.GridViewRowInfo.get_Index()
   at Telerik.WinControls.UI.GridDataRowElement.UpdateAlternatingRowColor()
   at Telerik.WinControls.UI.GridDataRowElement.ApplyCustomFormatting()
   at Telerik.WinControls.UI.GridRowElement.UpdateInfo()
   at Telerik.WinControls.UI.GridDataRowElement.UpdateInfo()
   at Telerik.WinControls.UI.GridRowElement.Initialize(GridViewRowInfo rowInfo)
   at Telerik.WinControls.UI.GridRowElement.Attach(GridViewRowInfo row, Object context)
   at Telerik.WinControls.UI.BaseVirtualizedContainer`1.InsertElement(Int32 position, IVirtualizedElement`1 element, T data)
   at Telerik.WinControls.UI.BaseVirtualizedContainer`1.UpdateElement(Int32 position, T data)
   at Telerik.WinControls.UI.ScrollableRowsContainerElement.UpdateElement(Int32 position, GridViewRowInfo data)
   at Telerik.WinControls.UI.BaseVirtualizedContainer`1.MeasureElements()
   at Telerik.WinControls.UI.BaseVirtualizedContainer`1.MeasureOverride(SizeF availableSize)
   at Telerik.WinControls.UI.ScrollableRowsContainerElement.MeasureOverride(SizeF availableSize)
   at Telerik.WinControls.RadElement.MeasureCore(SizeF availableSize)
   at Telerik.WinControls.RadElement.Measure(SizeF availableSize)
   at Telerik.WinControls.UI.RowsContainerElement.MeasureOverride(SizeF availableSize)
   at Telerik.WinControls.RadElement.MeasureCore(SizeF availableSize)
   at Telerik.WinControls.RadElement.Measure(SizeF availableSize)
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout()
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayoutCallback(ILayoutManager manager)



Looking at my worker thread state when this exception occurs, I get this more complete looking call stack.  It looks like this should perhaps being doing an Invoke to move these changes to the grid back to the UI thread. 

[Managed to Native Transition] 
mscorlib.dll!System.Type.IsVisible.get() + 0x23 bytes  
System.dll!System.SecurityUtils.MethodInfoInvoke(System.Reflection.MethodInfo method, object target, object[] args) + 0x30 bytes   
System.dll!System.ComponentModel.ReflectPropertyDescriptor.GetValue(object component) + 0x5f bytes 
Telerik.WinControls.dll!Telerik.WinControls.Data.RadListSource<System.__Canon>.GetBoundValue(object dataBoundItem, string propertyName) + 0x3a bytes   
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.BoundAccessor.this[Telerik.WinControls.UI.GridViewRowInfo].get(Telerik.WinControls.UI.GridViewRowInfo row) + 0xb7 bytes
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewDateTimeColumn.GetValue(Telerik.WinControls.UI.GridViewRowInfo row, Telerik.WinControls.UI.GridViewDataOperation operation) + 0x15 bytes   
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewRowInfoComparer.CompareRows(Telerik.WinControls.UI.GridViewRowInfo x, Telerik.WinControls.UI.GridViewRowInfo y, Telerik.WinControls.Data.SortDescriptorCollection context) + 0x93 bytes
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewRowInfoComparer.Compare(Telerik.WinControls.UI.GridViewRowInfo x, Telerik.WinControls.UI.GridViewRowInfo y) + 0xe bytes
Telerik.WinControls.dll!Telerik.Collections.Generic.AvlTree<Telerik.WinControls.UI.GridViewRowInfo>.Insert(Telerik.WinControls.UI.GridViewRowInfo value, bool duplicateallowed, bool overwrite) + 0x114 bytes  
Telerik.WinControls.dll!Telerik.Collections.Generic.AvlTree<System.__Canon>.InsertWithDuplicates(System.__Canon value) + 0x32 bytes
Telerik.WinControls.dll!Telerik.Collections.Generic.AvlTree<System.__Canon>.Add(System.__Canon item) + 0x5 bytes   
Telerik.WinControls.dll!Telerik.WinControls.Data.AvlIndex<Telerik.WinControls.UI.GridViewRowInfo>.Perform() + 0x2ff bytes  
Telerik.WinControls.dll!Telerik.WinControls.Data.AvlIndex<Telerik.WinControls.UI.GridViewRowInfo>.Items.get() + 0x10 bytes 
Telerik.WinControls.dll!Telerik.WinControls.Data.RadDataView<System.__Canon>.Items.get() + 0xe bytes   
Telerik.WinControls.dll!Telerik.WinControls.Data.RadCollectionView<Telerik.WinControls.UI.GridViewRowInfo>.GetEnumerator() + 0x11 bytes
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewInfo.Refresh() + 0x213 bytes   
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewInfo.ChildRows.get() + 0x1f bytes  
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewTemplate.ChildRows.get() + 0xa bytes   
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.ViewInfoTraverser.SetCollectionForStage(bool initializeCollection) + 0x138 bytes   
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.ViewInfoTraverser.ChangeCollectionForward() + 0x49 bytes   
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.ViewInfoTraverser.MoveNextCore() + 0x33 bytes  
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.ViewInfoTraverser.MoveNext() + 0x3a bytes  
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridTraverser.MoveNextCore() + 0x42 bytes  
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridTraverser.MoveNext() + 0xd bytes   
Telerik.WinControls.UI.dll!Telerik.WinControls.UI.ItemScroller<Telerik.WinControls.UI.GridViewRowInfo>.UpdateScrollRange() + 0x60 bytes
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.RowScroller.UpdateScrollRange() + 0x19 bytes   
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridTableElement.UpdateWhenItemChanged(Telerik.WinControls.UI.DataViewChangedEventArgs args) + 0x94 bytes  
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridTableElement.UpdateViewCore(object sender, Telerik.WinControls.UI.DataViewChangedEventArgs args) + 0x1ed bytes 
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridTableElement.UpdateView(object sender, Telerik.WinControls.UI.DataViewChangedEventArgs args) + 0x4e bytes  
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridTableElement.ProcessTemplateEvent(Telerik.WinControls.UI.GridViewEvent eventData) + 0xc7 bytes 
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridTableElement.Telerik.WinControls.UI.IGridViewEventListener.ProcessEvent(Telerik.WinControls.UI.GridViewEvent eventData) + 0x196 bytes  
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessCollection(Telerik.WinControls.UI.GridViewEvent gridEvent, Telerik.WinControls.UI.PriorityWeakReferenceList list, Telerik.WinControls.UI.GridEventProcessMode processMode) + 0xa4 bytes  
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessEvent(Telerik.WinControls.UI.GridViewEvent gridEvent) + 0x35 bytes   
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewSynchronizationService.NotifyListeners(Telerik.WinControls.UI.GridViewEvent gridEvent) + 0x8a bytes
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewSynchronizationService.FlushEvents() + 0xda bytes  
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewSynchronizationService.DispatchEvent(Telerik.WinControls.UI.GridViewEvent gridEvent) + 0x61 bytes  
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewSynchronizationService.DispatchEvent(Telerik.WinControls.UI.GridViewTemplate template, Telerik.WinControls.UI.GridViewEvent eventData, bool postUI) + 0x18b bytes  
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewTemplate.DispatchEvent(Telerik.WinControls.UI.GridViewEvent gridEvent, bool postUI) + 0xb bytes
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewTemplate.DispatchDataViewChangedEvent(object sender, Telerik.WinControls.UI.DataViewChangedEventArgs args) + 0xa2 bytes
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewTemplate.OnViewChanged(object sender, Telerik.WinControls.UI.DataViewChangedEventArgs e) + 0x49 bytes  
Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewTemplate.CollectionView_CollectionChanged(object sender, Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e) + 0x2e bytes 
Telerik.WinControls.dll!Telerik.WinControls.Data.RadCollectionView<System.__Canon>.OnCollectionChanged(Telerik.WinControls.Data.NotifyCollectionChangedEventArgs args) + 0x3f bytes
Telerik.WinControls.dll!Telerik.WinControls.Data.RadDataView<Telerik.WinControls.UI.GridViewRowInfo>.ProcessCollectionChanged(Telerik.WinControls.Data.NotifyCollectionChangedEventArgs args) + 0x11b bytes
Telerik.WinControls.dll!Telerik.WinControls.Data.RadCollectionView<System.__Canon>.source_CollectionChanged(object sender, Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e) + 0x23 bytes   
Telerik.WinControls.dll!Telerik.WinControls.Data.RadListSource<System.__Canon>.OnCollectionChanged(Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e) + 0x1e bytes   
Telerik.WinControls.dll!Telerik.WinControls.Data.RadListSource<System.__Canon>.ChangeItem(int index, System.__Canon item, string propertyName) + 0xc2 bytes
Telerik.WinControls.dll!Telerik.WinControls.Data.RadListSource<System.__Canon>.currencyManager_ListChanged(object sender, System.ComponentModel.ListChangedEventArgs e) + 0x125 bytes  
System.Windows.Forms.dll!System.Windows.Forms.CurrencyManager.OnListChanged(System.ComponentModel.ListChangedEventArgs e) + 0x15 bytes 
System.Windows.Forms.dll!System.Windows.Forms.CurrencyManager.List_ListChanged(object sender, System.ComponentModel.ListChangedEventArgs e) + 0x53e bytes  
System.Data.Entity.dll!System.Data.Objects.ObjectView<System.__Canon>.OnListChanged(System.ComponentModel.ListChangedEventArgs changeArgs) + 0x1f bytes
System.Data.Entity.dll!System.Data.Objects.ObjectView<DataAccess.Child>.System.Data.Objects.IObjectView.EntityPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) + 0x4d bytes  
System.Data.Entity.dll!System.Data.Objects.ObjectViewListener.EntityPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) + 0x31 bytes  
System.Data.Entity.dll!System.Data.Objects.DataClasses.StructuralObject.OnPropertyChanged(string property) + 0x31 bytes
System.Data.Entity.dll!System.Data.Objects.DataClasses.StructuralObject.ReportPropertyChanged(string property) + 0x23 bytes
System.Data.Entity.dll!System.Data.Objects.DataClasses.EntityObject.ReportPropertyChanged(string property) + 0x50 bytes




Julian Benkov
Telerik team
 answered on 08 Feb 2013
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?