Telerik Forums
UI for WinForms Forum
1 answer
181 views

hi,

 

I have a grid view which has a grouping, I want to have a button within the group, is it possible, the image has been attached & I want a button next to

"Rule Name :Galaxy"

 

Thanks

Regards

Ramraj

Dimitar
Telerik team
 answered on 29 Sep 2015
3 answers
352 views
I have been looking at the ColorBox control, but I cannot figure out how to do simple things.  What I want to do is specify the color displayed when the form containing the ColorBox control is opened, and extract the value of the new color chosen by the user.

I expected to be able to specify something like:

radColorBox1.InitialColor = Red;

and then get the new value if there is one. 

Apparently one gets the new value from the ValueChanging or ValueChanged event handlers, which is straightforward enough I guess.

I program in C#.  Any suggestions will be appreciated.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Sep 2015
2 answers
672 views

Don't know if this has been mentioned before but I'll share my solution anyway.

The issue is when you use the ExportToML on a RadGridView and the resulting excel-file gives you the little green triangle on every cell. Where it says "the number in the cell is formatted as text or preceded by an apostrophe".   The yellow mark gives you the option to "convert to number" before you can use the values as expected.  Highly annoying if you ask me.

Solution

If you google this you get the standard solution of using ExcelCellFormatting event and change

the property of: 

  •  e.ExeclStyleElement.NumberFormat.FormatType
  •  e.ExeclStyleElement.NumberFormat.FormatString.

This however doesn't solve the problem. The solution is not the visual style export, but in the data.

  •  e.ExcelCellElement.Data.DataType = DataType.Number;
  • e.ExcelCellElement.Data.DataItem = old;

 

 

var exporter = new ExportToExcelML(grid) {SheetName = sheetname, ExportVisualSettings = true};
exporter.ExcelCellFormatting += exporter_ExcelCellFormatting;
exporter.RunExport(tempPath);

private static void exporter_ExcelCellFormatting(object sender, ExcelCellFormattingEventArgs e)
{
    if (!e.GridCellInfo.ColumnInfo.Name.StartsWith("v.")) return;
 
    if (e.GridCellInfo.Value == null) return;
 
    e.ExcelStyleElement.NumberFormat.FormatType = DisplayFormatType.Custom;
    e.ExcelStyleElement.NumberFormat.FormatString = "#";
 
    int old;
    if ( int.TryParse(e.GridCellInfo.Value.ToString().Replace(",",""), out old))
    {
        e.ExcelCellElement.Data.DataType = DataType.Number;
        e.ExcelCellElement.Data.DataItem = old;
    }
}

 

Dimitar
Telerik team
 answered on 29 Sep 2015
2 answers
232 views

Hi 

 

I have a grid view in which it has a combo box in some cell

& i can select multiple rows,now my query is that is there any way that when i select multiple row & then change the combo box value of one row it should automatically set the value of combo box to all the row which are selected through multiple option.

 

Thanks

Regards

Ramraj Gupta

 

 

Ramraj
Top achievements
Rank 1
 answered on 28 Sep 2015
1 answer
315 views

So far the only way I've been able to hide them is by setting the radPivotGrid.ColumnHeaderHeight = 0

Is there a cleaner way to hide/remove them?​

Hristo
Telerik team
 answered on 28 Sep 2015
5 answers
365 views

is there en example existing for drag and drop operation between 2 RadTreeviews, but not with a move , but Copy operation.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Sep 2015
1 answer
236 views

How do I change the border color on a radSplitButton? I'm using

   btnUser.DropDownButtonElement.ButtonSeparator.BorderColor = Color.FromArgb(255, 190, 106)
   btnUser.DropDownButtonElement.ActionButton.BorderElement.ForeColor = Color.FromArgb(255, 190, 106)

 but it only changes part of the border color. The left and right borders are unchanged. 

Stefan
Telerik team
 answered on 28 Sep 2015
2 answers
301 views

Why do these two properties seems to conflict. I want to store an object in .Value and display a simple String in .Text, but it seems I can't do this...

The last one set always overrides the other.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Sep 2015
20 answers
1.4K+ views
Hi,

I have a radTreeView that is databound to a List.  After adding an item to my List how can I refresh the TreeView?

Currently only the items that were in the list when I first set the datasource are displayed.

Thanks,
Brad
Stefan
Telerik team
 answered on 25 Sep 2015
3 answers
195 views
I couldn't find a property to set that will always expand all property grid items, so now I'm trying to expand just one item when the property grid is loaded. I tried putting the Expand() call in the CreateItem event handler, but the item is always null. If I put the Expand() call in the ItemFormatting event handler, I am unable to collapse the item. Here is the code I'm using:

PropertyGridItem item = e.Item as PropertyGridItem;

if
(item.Label == "abc" && !item.Expanded)
{
    item.Expand();
}
Stefan
Telerik team
 answered on 25 Sep 2015
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?