Telerik Forums
UI for WinForms Forum
3 answers
181 views
Hello,

I've got a form containing two identical databound GridViews. They are bound to two different DataTables. DataTable2 is a clone of DT1 but on Load only DT1 contains some rows. I've also got two buttons which move all selected rows (in GridView1) from DT1 to DT2 and vice versa. Both GridViews should have the same SortBy- and GroupByExpressions. When I don't add the GroupByExpression to GV2 everything works fine but the grid is not grouped. But when I add the Expression and move Rows to DT2 (shown in GV2), the GroupBy-Rows are shown correctly but when I expand them there is no text shown in the added data rows. I can't figure out why that happens.

The GridView contains three columns:
one visible Column containing Text
one hidden column containing Dates (the GridView is sorted by this column)
one hidden column containing enumvalues (in a ComboBox) (the GridView is groupedby this column)

I hope that I could make clear what I'm trying to do. If you have further questions please ask.
I'm using the latest version of the controls in Visual Studio 2008 running on a Vista64 machine.

Any ideas?

Kind regards,
Nils
Jack
Telerik team
 answered on 15 Jan 2009
8 answers
296 views

Hi Guys,

This issues starts with the following thread, specifically the CellFormatting routine.

http://www.telerik.com/community/forums/winforms/gridview/radmenuitem-in-radgridview-events.aspx

We were able to get the grid to display with the RadMenuElement  and RadLabelElement(s) replacing the standard command button.  It looks very cool and works well until the user starts to have a lot of data in the grid – the grid slows down to a crawl (dude, I am talking major crawl with display issues like you wouldn’t believe).  This makes sense because the CellFormatting event is fired whenever you do anything with the grid.  As referred in this thread:

http://www.telerik.com/community/forums/winforms/gridview/adding-image-to-imagecolumn.aspx

So…  I decided to move this functionality as was suggested, but I ran into another issue.  I continually run up against the CellElement object being NULL.  As found in this thread:

http://www.telerik.com/community/forums/winforms/gridview/cellelement-null.aspx

In this thread you state the CellFormatting event handler “is the only place where the CellElement is surely not null”.  Big problem, since the CellFormatting event is causing the grid to slow down, and it makes no sense to put my functionality here because I only need to draw the RadLabelElement(s) once on databind anyways.

So…  I am stuck.

I have tried to get access to the CellElement in the following events:  DataBindingComplete, and CreateCell with no success.

Where can I get access to the CellElement before the grid renders so I can perform the following code.

This code was pulled from the CellFormatting event.

---------------------------------------------------------

e.CellElement.Children.Clear();
RadMenuElement buttonElement = new RadMenuElement();
buttonElement.Items.Add(new RadMenuItem("view"));
buttonElement.Items.Add(new RadMenuItem("modify"));
buttonElement.Items.Add(new RadMenuItem("release"));
buttonElement.Items.Add(new RadMenuItem("new"));
e.CellElement.Children.Add(buttonElement); 


Many thanks,

~Mike

Nikolay
Telerik team
 answered on 15 Jan 2009
4 answers
964 views
All,

Thanks for the opportunity to use this control. I have a question regarding the active tab for the RadRibbonBar. I have many forms in my application and when I open certain forms, I would like to change the active tab of the RibbonBar. For instance, say I have a tab name File and another one named Actions. The default form load tab opens with file as the active tab. When I open a form, I would like to change the default tab to the actions tab and make it viewable. I hope my question is clear enough. If not, I will elaborate more. Thank you for your time in this matter.

JPADKINS
Peter
Telerik team
 answered on 15 Jan 2009
1 answer
284 views
Hello,

I have a Sql database with tables. In each table, there are some types of data such as: string, int, image. Now i want to freely display my database by using Carouse control, where, one record for one item of carousel. I want to customize content what will be displayed on Carousel item: arrange postion of image on carousel item, position of vallue fields on carousel item. BUT i don't know how to do ?

By Devexpress product, namely, GridView control. This control can display a record of database on Carousel Item (string, int, image...). You can view at: http://www.devexpress.com/Products/NET/Controls/WinForms/Grid/carousel.xml

Can anybody help me ?

Thank you so much !

Deyan
Telerik team
 answered on 15 Jan 2009
2 answers
153 views
I use a BindingList with the gridview and the ListChanged event.

Now when i try to delete the last row in the grid with the context menu the row is visually deleted in the grid but the BindingList's  ListChanged event handler doesn't fire up so my BindingList does not recognize the deleting of the last row of the grid.

In other rows it works ok.

Greetings,

Ramius

Ramius
Top achievements
Rank 1
 answered on 15 Jan 2009
1 answer
282 views
I am doing my first project with the WinForms controls and things are going fairly well.  However, I have not been able to figure out what Telerik control to use in place of the Windows GroupBox control.

Thanks in advance for your help,
Jim
Nick
Telerik team
 answered on 15 Jan 2009
3 answers
134 views
We've been developing on TelerikWinForms 2008 Q2 since it was released.   This afternoon I installed 2008 Q2 SP1 to try out...

Why is it that the ValueChangingEventArgs NewValue/OldValue properties are now returning the display value of the dropdown and not the actual value?   This worked fine in the prior version.

For example my dropdrop code values are "1" and "2".   The display values are "Male" and "Female".   In the prior version I was getting the correct NewValue/OldValue of "1" or "2".  Now I am getting "Male" or "Female".

Thanks

Nick
Telerik team
 answered on 14 Jan 2009
2 answers
139 views
Hi there,

Is there a way to enable RadRibbonBar to show a transparent title header and show defautl Vista window header buttons for minimize, maximize and close?  I've tried setting the ThemeName of the RibbonBar to ControlDefault but it still shows a window different from the ones in Office applications.

Thanks in advance and best regards

Nick
Telerik team
 answered on 14 Jan 2009
5 answers
247 views
I would like to assign a RadDropDownMenu to a RadListBox. I can't seem to find a way to do this. RadListBox has a "ContextMenu" and "ContextMenuStrip" property but these refer to Winforms versions of a ContextMenu so I can't assign a RadDropDownMenu. I don't see any other properties on the RadListBox like say RadContextMenu like there is on the RadTreeView.

Am I correct that this functionality is missing? If it is there, how do I go about doing this?
Martin Vasilev
Telerik team
 answered on 14 Jan 2009
4 answers
249 views
Maybe I'm crazy, or maybe I'm blind, but I can't seem to find a good example on how to get the LoadLayout to work.

I have a grid, and I save the layout to a file, using SaveLayout(fileName), but then when I go to load it, the method throws the exception:

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index


I figured that I was just doing it incorrectly, but when I went to look for an example of some sort, I couldn't find one.
Can someone please help me out with this.

Thanks
Davey
Nikolay
Telerik team
 answered on 13 Jan 2009
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?