Telerik Forums
UI for WinForms Forum
1 answer
125 views
I want the document window tab headers to look the same way as they look in the default layout or as in Office 2010. What is it that I need to change in the theme?

Also the gridview does not show any row borders at first, but then renders the borders when mouse hovers past the rows. How do I get the borders to be shown as a default behaviour. I have set DrawBorder to true


Thanks
Deepak
Ivan Petrov
Telerik team
 answered on 29 Apr 2011
3 answers
265 views
Hi,

I have a radgridview with a column that's bound to a nullable date.   When the date is null, the RunExport() method throws a FormatException with the message "The DateTime value is not supported in Excel!".   Do you have any thoughts on how I can handle this issue?

Thanks,
Kevin.
Emanuel Varga
Top achievements
Rank 1
 answered on 29 Apr 2011
3 answers
272 views
Hi all,

I have created the winforms  radgridview with tabbed child view , in one of the gridview template i want to add the command button field column programatically , while clicking button i have to catch the events and perform some operation ..

 please assist me to acheive that ..

waiting for ur reply.....

Thanks
Dev...
Emanuel Varga
Top achievements
Rank 1
 answered on 29 Apr 2011
11 answers
1.1K+ views
hi all,

i am using telerik grid view in windows form application. i needed to to add two buttons in the command column dynamically. and then according to the values of some other column i can make any of the button invisible.
i was able to add a column with 2 buttons. but when i made any of them invisible it shows unexpected behavior. the adding of buttons and making them visible or not, only works fine for the rows that are present on the current display screen. if i scroll down then it makes the button invisible or visible in other rows. i am stuck. please help.
i am using function

private void radGWOrderSelection_CreateCell(object sender, GridViewCreateCellEventArgs e)
        {
            if (e.Column.Name == "Replace")
            {
                GridViewCommandColumn dataColumn = (GridViewCommandColumn)e.Column;
                if (e.Row is GridDataRowElement && dataColumn != null)
                {                

                    CustomGridDataCell cell = new CustomGridDataCell(e.Column, e.Row);
                    e.CellType = typeof(CustomGridDataCell);
                    e.CellElement = cell;
 
 
                    cell.ButtonOne.Visibility = ElementVisibility.Hidden;
                    cell.ButtonClick += new EventHandler(cell_ButtonClick);
 
                    cell.ButtonOne.Visibility = ElementVisibility.Hidden;
                    cell.ButtonClick += new EventHandler(cell_ButtonClick);
 
                    cell.CommandButton.Dispose();
 
                }
            }
        }

if i put a breakpoint it only executes 14 times which is the number of visible rows in the grid.

there is also a custom class CustomGridDataCell
Alexander
Telerik team
 answered on 29 Apr 2011
5 answers
239 views
When I click on my RadMultiColumnComboBox, the dropdown opens displaying my grid of items. There's about 100 or so items, so the list is scrollable. Occasionally when clicking an item, for some reason the scroll position changes. This is causing a different item to be selected since it looks like an item gets selected when the click releases. So if the grid is displaying items 1 through 5,
1
2
3
4
5
...
 I'll click on item 3, the scroll position will slightly shift down so now my mouse is over item 4. So by the time the click is released, it selects item 4. Does that make sense? I was wondering if anyone has come across a similar issue before I try extracting code to post.

Thanks,
Jason

I've added code to illustrate the problem. When I click on the item Code = 2, it selects Code = 3.
Version: 2010.3.10.1215
Stefan
Telerik team
 answered on 29 Apr 2011
2 answers
147 views
How do I edit an existing theme using VSB? I do not have the .tssp files on my machine. Smart tags on Q3 2010 SP1 do not have the option to open in Visual Style Builder

Thanks
Deepak
Stefan
Telerik team
 answered on 29 Apr 2011
4 answers
149 views
Hi the Telerik Team,

There is a error with the RadDock when loading layout from XML file.
When you load the layout from an XML file, the selected index of a DocumentContainer or a ToolTabStrip is incorrect. The last one is always selected, even if the SelectedIndex is the first.
You can easily reproduce this bug with the demo application on Dock / Serialization:
- Add a tool window to the same area as Tool Window 2
- Select the first window of the ToolTabStrip (Tool Window 4)
- Save the layout
- If you open the layout file in an editor, you can see that the ToolTabStrip's SelectedIndex is 0 (correct).
- Remove all windows
- Load the layout file
- The Tool Window 2 is selected instead of the Tool Window 4.

Thank you,

Regards
Stefan
Telerik team
 answered on 29 Apr 2011
4 answers
705 views
Hello,
My intention is to calculate the sum of all the values of a column, where this column was selected as a grouping column.
I'd like to show the result directly in the grouping header row.

This is the code I'm using:
string ColumnName = "Price";
GroupDescriptor descriptor1 = new GroupDescriptor();
descriptor1.GroupNames.Add(ColumnName, ListSortDirection.Ascending);   
 
string formatStr  = "The total sum of items {0} with price equal to {1} is equal to {2}.";  
descriptor1.Format = formatStr;
descriptor1.Aggregates.Add("Sum('" + ColumnName + "')");
this.radGridView1.GroupDescriptors.Add(descriptor1);

In this code my intention is to calculate and show the total sum of all the items grouped by the price itself.

The problem is the result is alway zero. It seems like the GridAggregateFunction.Sum doesn't works inside the GroupDescriptor

I tryed exacly the same code using the COUNT aggregate function instead of the SUM, ad it works perfectly giving me the count of the item grouped by the price:
string ColumnName = "Price";
GroupDescriptor descriptor1 = new GroupDescriptor();
descriptor1.GroupNames.Add(ColumnName, ListSortDirection.Ascending);  
  
string formatStr  = "The total sum of items {0} with price equal to {1} is equal to {2}."
descriptor1.Format = formatStr;
descriptor1.Aggregates.Add("Count('" + ColumnName + "')");
this.radGridView1.GroupDescriptors.Add(descriptor1);

Thanks for any suggestions,
Alcide Burato
Alcide Burato
Top achievements
Rank 1
 answered on 28 Apr 2011
4 answers
662 views
We are changing all of our standard WinForms labels to RadLabels. This has been working fine until today when we ran into a label that used the AutoEllipsis property.

Does the RadLabel have something similar to the WinForms AutoEllipsis on a label?

If not, is there a work around?
Deborah
Top achievements
Rank 1
 answered on 28 Apr 2011
2 answers
114 views
hi
i create a telerik ribbon form and set right to left property to true
and good work
but if right to left layout set to true made a problem
left border is damage
Stefan
Telerik team
 answered on 28 Apr 2011
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?