Telerik Forums
UI for WinForms Forum
3 answers
114 views
Is there an event that is thrown when a gridview is expanded or collapsed via the + or minus - being clicked in the parent row?

I have tried using the event, GroupExpanded but it is not being thrown.

The underlying reason for this is that my entire program has a black background, but when I use the RadGridView and set its DockStyle to Fill, the area not populated by the rows is defaulted to white.  I have not been able to change the color of this portion of the control, so I am using a Black panel behind the RadGridView, and dynamically changing the height of the GridView when rows are added via the RowsChanged event.
Richard Slade
Top achievements
Rank 2
 answered on 07 Jan 2011
9 answers
547 views

Hi

How can I change back color of group panel?

(This panel wit text: „Drag a column here to group by this column.”)

 

Regards

Richard Slade
Top achievements
Rank 2
 answered on 07 Jan 2011
3 answers
903 views
Column header texts and sizings are not accepted regardless if they are set through property builder or through columns property. If AutoGenerateColumns is set to true, database column names in default sizing are displayed, if AutoGenerateColumns is set to false, nothing is displayed.
Richard Slade
Top achievements
Rank 2
 answered on 07 Jan 2011
4 answers
154 views
Hi!

I am having what I believe should be a simple problem but which I cannot seem to solve!

I have a menu bar onto which I have placed a number of buttons and a RadMenuComboItem the items for which I populate in code via an array list as below (clsDropDown is simply a method to assign the display and value members as Longname and ID respectively).

List.Add(New clsDropdownList("Items Awaiting Collection", 1))
        aList.Add(New clsDropdownList("Items Part Collected", 2))
        aList.Add(New clsDropdownList("Items Collected", 3))
        aList.Add(New clsDropdownList("All Items", 0))


        rddlCollectionStatus.ComboBoxElement.DataSource = aList
        rddlCollectionStatus.ComboBoxElement.DisplayMember = "Longname" ' The combo class always uses 'Longname' for the dropdown text  
        rddlCollectionStatus.ComboBoxElement.ValueMember = "ID"         ' The combo class always uses ID for the dropdown key value 
        rddlCollectionStatus.ComboBoxElement.SelectedIndex = 0

        rddlCollectionStatus.Enabled = True

Within code I can retrieve the ID of the currently selected item and use this to filter following the press of a button from the menu bar, what I cannot do is find an event that fires when the combo box selection changes (I would have expected rddlCollectionStatus_Click or an equivalent to fire but none are seeming to do so).

If anyone can provide a pointer to this it would be much appreciated as it is a little 'clunky' to have to once made the selection on what to filter on to then have to press a button to apply this selection.

Many thanks,

James
Richard Slade
Top achievements
Rank 2
 answered on 07 Jan 2011
4 answers
107 views
Hello,

I've a simple problem which I can't solve. In my C# Office application, the user can input a username and password. After he has saved the data he will be able to change the values.

This is where it goes wrong.
try
               {
                   DataRow[] platformRow = dsPlatformsxml.Tables[0].Select("ID = '"+txtID.Text.ToString()+"'");
                   DataRow drUpdate = platformRow[0];
                   drUpdate[2] = txtUsername.Text.ToString();                                      
               }
               catch (Exception ex)
               {
                   string test = ex.Message;
               }

At this line drUpdate[2] = txtUsername.Text.ToString(); the system goed to the catch section and this is the stacktrace in Telerik.Wincontrols.UI.

at Telerik.WinControls.UI.SelfReferenceDataBinding.UpdateItem(Int32 index)
   at Telerik.WinControls.UI.SelfReferenceDataBinding.dataManager_ListChanged(Object sender, ListChangedEventArgs e)
   at System.Windows.Forms.CurrencyManager.OnListChanged(ListChangedEventArgs e)
   at System.Windows.Forms.CurrencyManager.List_ListChanged(Object sender, ListChangedEventArgs e)
   at System.Data.DataView.OnListChanged(ListChangedEventArgs e)
   at System.Data.DataView.IndexListChanged(Object sender, ListChangedEventArgs e)
   at System.Data.DataView.IndexListChangedInternal(ListChangedEventArgs e)
   at System.Data.DataViewListener.IndexListChanged(ListChangedEventArgs e)
   at System.Data.Index.<OnListChanged>b__2(DataViewListener listener, ListChangedEventArgs args, Boolean arg2, Boolean arg3)
   at System.Data.Listeners`1.Notify[T1,T2,T3](T1 arg1, T2 arg2, T3 arg3, Action`4 action)
   at System.Data.Index.OnListChanged(ListChangedEventArgs e)
   at System.Data.Index.OnListChanged(ListChangedType changedType, Int32 newIndex, Int32 oldIndex)
   at System.Data.Index.RecordStateChanged(Int32 oldRecord, DataViewRowState oldOldState, DataViewRowState oldNewState, Int32 newRecord, DataViewRowState newOldState, DataViewRowState newNewState)
   at System.Data.DataTable.RecordStateChanged(Int32 record1, DataViewRowState oldState1, DataViewRowState newState1, Int32 record2, DataViewRowState oldState2, DataViewRowState newState2)
   at System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Int32 position, Boolean fireEvent, Exception& deferredException)
   at System.Data.DataTable.SetNewRecord(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean fireEvent)
   at System.Data.DataRow.SetNewRecord(Int32 record)
   at System.Data.DataRow.EndEdit()
   at System.Data.DataRow.set_Item(DataColumn column, Object value)
   at System.Data.DataRow.set_Item(Int32 columnIndex, Object value)
   at WordAddIn.SaveForm.btnChangePlatformOk_Click(Object sender, EventArgs e) in C:\.NET Projecten\Word Add-in\WordAddIn\WordAddIn\FormSave\SaveForm.cs:line 634


Does anybody knows what the cause is for this error, I'm trying to solve it for 2 hours, but can't find why "Object reference not set to an instance of an object is showing"...
Richard Slade
Top achievements
Rank 2
 answered on 07 Jan 2011
7 answers
427 views
Hi,
i'm having trouble with creating custom aggregate function for the WinForms grid, all i see is the AggregateExpression property that lets me do basic stuff like dividing and multiplying built-in aggregate functions, but what i need is a custom way to calculate stuff, i did this with the asp.net grid, but the winforms seems to work different.

your online help has some conflicts, there is a place where it specifically tells you to create a class like that:
Public Class CustomSummaryItem
    Inherits GridViewSummaryItem
but when i try to do this the GridViewSummaryItem has no virtual/abstract method:
Public Overrides Function Evaluate(ByVal row As IHierarchicalRow) As Object

please help me out, Thanks.

i have 2010.2.10.914 version.


Alexander
Telerik team
 answered on 07 Jan 2011
7 answers
374 views
I have a min and max allowable value set.  When the user enters "110" and the min is 0 and the max is 100, the control automatically adjusts the value to "100", the max.

Is there a way to stop this from happening?
Peter
Telerik team
 answered on 07 Jan 2011
6 answers
680 views
Is the only place to store data in a tree view in the tag field? I need to know info about a node when a person clicks on it. I guess I could make the tag an array of objects and then process them accordingly.

TIA - Jeff.
Richard Slade
Top achievements
Rank 2
 answered on 07 Jan 2011
2 answers
259 views
Hi there, 
I was wondering (after searching for quiet some time) if it's possible to access directly to the filtering controls.
This in the purpose to add some AutoCompleteCustomSource (nicer than changing all the column type and everything ...)

Thx in advance
Emanuel Varga
Top achievements
Rank 1
 answered on 07 Jan 2011
3 answers
530 views
Hi,

Could you tell me what the plans are for a decent html editor for Winforms as it really is a massive issue for us. We are building a large backoffice application that also runs our website and email tempaltes, therefore there is a strong need for a quality HTML editor. We are using the hack to get the ASP.NET editor working for some things at the moment but our developers are telling us that it is difficult to use for the situations we require because it is not a really winforms control - just really a browser window within a winform, therefore you are loosing lots of control.

This leaves us in a bit of a problem as we really would like to stick with telerik controls, but because there is no decent telerik control for this thing we are having to look at third part options which are just poor or extreamly expensive. I'm sure there are load of people in the same position and I'm sure Telerik are missing a good revenue stream by not offering it.

If your looking to develop it, and wish for some feature requests, then essentially we would like the functionality of the RAD editor in Winforms, but if you are looking for specific features that are important to us:


Feature requests:

These are in addition to all the general html formatting basics as there are to many of those to list and they are pretty obvious:

  • Specify content type (h1, h2, paragraph, preformat, etc)
  • Lists, including selection of the bullet icon
  • Table control
  • Insert custom characters
  • Insert predefined content
  • Intelligent handling of content pasted from Word (paste as plain text etc)
  • Automatic conversion of pasted content character encoding
  • Style the content in the WYSIWYG section based upon a predefined external stylesheet
  • Spell Check
  • CSS Styles (very important!!)
  • Clear all formatting
  • Control over visible editing icons
  • Full Screen Toggle
  • Insert code snippet
  • Good colour pallate
  • Track changes
  • Undo / Redo
  • XHTML Vaildator

 

Sometimes we prefer plain HTML (as opposed to xHTML) as the output. It would be great if the editor was easily configured for a specific content type: HTML, xHTML, Textile, etc. The markup view would need to be able to show and allow editing of this type of markup.

 

Options to generate other filetypes (eg: Word, RTF, PDF, HTML) for export would also be great.

 

The option of a slim control bar (rather than the wide 'Ribbon' style) to conserve screen space is important.

Also we are currently trying to use the editor with a variable parsing engine - This requires us to place special charators to denote the variables in the html  - such as %%Variable%% - it would be very good if we had the option to not re-write html code when these tags are in place at the moment we are having a few issues where editors try and get clever and do re-writing because these are invalid chars in certain places in the code.

I really hope a decent winforms editor is an upcoming product, so we don't have to go third party - its going to cost us almost as much as the whole telerik sweet just to get a decent third party winforms editor, and I really would like to keep everything inline with your fantastic product!

 


Richard Slade
Top achievements
Rank 2
 answered on 06 Jan 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
CheckedDropDownList
ProgressBar
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?