Telerik Forums
UI for WinForms Forum
0 answers
82 views
wrong thread
Lorenzo
Top achievements
Rank 1
 asked on 17 Oct 2007
1 answer
227 views

Hi.

I get problems with conditional formatting.

In the case that you want to set font color (CellForeColor) that depending on the column condition and you set property ‘Apply to row’ is true and also if you create second condition that changing row back color you will lose CellForeColor setup from first condition.

Is it possible to change dynamically “row back color” without using conditional formatting?



 

Jack
Telerik team
 answered on 17 Oct 2007
1 answer
169 views
Hi,

I have created one RadComboBox control whose Text is set as "AutoAnswerComboBox".
Now it has 2 comboBoxItems
1) On
2) Off

When i run the app, I first get to see "AutoAnswerComboBox" and then on click on the combo box, I see the actuall 2 elements.

By default, I want user to first see "On" instead of "AutoAnswerComboBox".

Can you please tell me how to set the first comboboxitem as the first displayed item to the user?

Thanks in advance.

barkha
Nikolay
Telerik team
 answered on 17 Oct 2007
2 answers
147 views
Hi,

I'm using registered version of Rad Controls for WinForms SP2, in particular I'm using DockingManager control.
I have some some dockPanels and some documentPanels. I would like to handle documentPanel_closing events. (Ex: to check if the content was saved by user)

I use the following code:

[DESIGNER - Auto Generated Code]
this.documentPane_Benvenuto.Closing += new System.ComponentModel.CancelEventHandler(this.documentPane_Benvenuto_Closing);

[FORM]
private void documentPane_Benvenuto_Closing(object sender, CancelEventArgs e)
{
MessageBox.Show("documentPane_Benvenuto is closing..");
}

This code doesn't work. When i close the documentPane_Benvenuto the event isn't raised. If i set one breakpoint in the method documentPane_Benvenuto_Closing(...) nothing happen, the method isn't executed.
What is the best way to solve my problem? There is a simple solution o work around to do this?

Thank you very much for support.
Lorenzo
Lorenzo
Top achievements
Rank 1
 answered on 17 Oct 2007
1 answer
165 views
In the online documentation, I saw a page where there is a GridView embedded inside another GridView Object.  I was wondering when it is possible to do embedded GridView?  This feature is one of the features that attracted me to purchase this control.  The below link has an image of what I am talking about (it is under Hierarchical data presentation).

http://www.telerik.com/help/winforms/Q2_2007/grd_Overview_Overview.html

if it is already possible to use this feature, can someone please provide some sample code?  Thank you!

Also, is there a new version coming out?  If so, when is the release date?  Thank you!

Nicky
Jack
Telerik team
 answered on 16 Oct 2007
2 answers
150 views
Hi, I try to bind a gridview to an instance of KeyValueConfigurationCollection as follows:

private void WebHRSnifferForm_Load(object sender, EventArgs e)
        {
            dataBind104ComSettingGrid();

        }
        private void dataBind104ComSettingGrid()
        {
            // QueryStringParams is type of KeyValueConfigurationCollection
            Grid104CompSetting.DataSource = webHRConfig.OneZeroFour.Company.QueryStringParams.GetEnumerator();
        }

But it seems the girdview cannot locate the properties exposed by KeyValueConfigurationElement that is contained within KeyValueConfigurationCollection. So no columns are created.

Is there anything I should implement to let gridview bind to KeyValueConfigurationCollection.

Thanks a lot.
Ricky.

Ricky
Top achievements
Rank 1
 answered on 16 Oct 2007
1 answer
135 views
I got a grid with textboxes, comboboxes and checkboxes. When the user right-clicks (to show my popup menu) I'd like to auto save any changes in last cell edited. How can I do that?
Georgi
Telerik team
 answered on 16 Oct 2007
3 answers
578 views
I noticed that some other folks were having a similar issue, but not the same issue I am having.  I am binding my RadGridView to a Generic List.  When I delete the item in the Generic List and rebind the row doesn't remove until I scroll the deleted row out of view and then back into view. 

The item is removed, but the physical row is still on the grid.  It throws the following exception:

The following exception occurred in the RadGridView:  
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.  
Parameter name: index  
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)  
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()  
   at System.Collections.Generic.List`1.System.Collections.IList.get_Item(Int32 index)  
   at Telerik.WinControls.UI.GridViewData.GetValue(Int32 boundColumnIndex, Int32 columnIndex, Int32 rowIndex)  
 

Sample Code to reproduce the error:

' in form load, the grid is bound to the genericList  
private sub frm_frmLoad()  
  Me.radGridView.DataSource = genericList  
End Sub 
 
public sub RemoveItemFromList(ByVal customItemToRemove as CustomItems)  
  ' remove item from the List(Of CustomItems)  
  If genericList.Contains(customItemToRemove) Then 
    genericList.RemoveAt(genericList.IndexOf(customItemToRemove))  
  End If 
 
  ' rebind to   
  Me.radGridView.DataSource = genericList  
End Sub 

I am currently using Q1 2007 with VS2005 SP1.

Thanks for a great product and any thoughts on this.

Dennis
Julian Benkov
Telerik team
 answered on 16 Oct 2007
1 answer
139 views
Hi Telerik Team,

I am facing formatting issue with GridView.
In One column of gridview i am showing value with decimal places some are 0 and some are "blank" . So, when I in properties Datatextstring when i write syntax like  {0:#.##}  that time i get values with proper format but ALL zeros ie 0 are replace  by Blanks.

Please provide some solution.

Thanks
Nickty
Peter
Telerik team
 answered on 16 Oct 2007
22 answers
372 views
It there a way to deactivate the selection of dates from the individule days on the calendar?  This way the only way anyone could select anything it would be on a week-by-week basis (via the row (week) number).  Then be able to pull the dates that were selected from that row?
Boyko Markov
Telerik team
 answered on 16 Oct 2007
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
ScrollablePanel
DataEntry
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?