Telerik Forums
UI for WinForms Forum
3 answers
217 views
I'd like to prevent the user from selecting options in the toolwindow header context menu. If this is not possible, can I prevent the entire context menu on a docked toolwindow header from appearing?

I've attached a screen shot of the context menu outlined in red that I'd like to disable. Thanks.
Stefan
Telerik team
 answered on 11 Jan 2012
3 answers
665 views
What I thought was going to be a simple issue, hasn't turned into one. Basically I need to autosize a column based on the contents in the dropdown.

The grid is bound to a BindingList<T> as well as the combobox column. The values that appear in the combobox (DisplayMember) are based on resources, so it's possible the width of the required column could changed based on the resource id and the string returned. I need to automatically adjust the width of the GridViewComboBoxColumn based on the contents in the combo box. Currently I'm using the <column>.BestFit() method, but this only works based on the displayed data, I've tried using the AutoSizeMode property after the call of BestFit() call as explained in help but there is nothing there that says to use width of the values in the drop down (by the way there is an error in the names of the enumerators for this setting BestFitColumnMode.SymmaryRowCells - it should be BestFitColumnMode.SummaryRowCells, but I digress)

An example, based on resourceID

en-US                     fr-FR                es-MX
XXX                         XXXXXXXX        XXXXXXXXXXXXXXXXXXXX
YYYYYY                  YYYY              YYYYYY

I need the width of the column to adjust based on the max length of whatever could be displayed to the user, in the example above, if the resource id is set to es-MX, the width of the column should be larger (wider) than it is if the resourceID is en-US, and the same for fr-FR.

Hopefully I haven't over-complicated the explanation of the problem. Thank you in advance,
Dave Galligher
Jack
Telerik team
 answered on 11 Jan 2012
3 answers
205 views
Hi

We're trying to group by a field called CompanyName. The grid seems to show the group but it creates a group per record. I tried hooked into the GroupSummaryEvaluate event and when I look at the e.Value it's null?

If I remove the grouping I can see that CompanyName has values

Why is it showing "CompanyName : " instead of "CompanyName : Some Company Name" ?
Julian Benkov
Telerik team
 answered on 11 Jan 2012
5 answers
262 views
Hi,
I have a radgridview setup wth a hierarchy. I would like this grid to refresh every ten seconds as new information could be added to the database from another source, so it needs to be kept up-to-date. I did have a timer which would fire every ten seconds which reloaded the data.

The only problem is, if I have a row expanded or select a row and the grid reloads the selected row is lost and the sub grids close. Is there any way I can  keep this open while the data refreshes? ie the new row would be added at the bottom?

Any ideas or pointers would be great.

Thanks
Julian Benkov
Telerik team
 answered on 11 Jan 2012
2 answers
115 views
Hi I have the following problem

I have a hierarchical  whit a master detail row structure...When i click on Add new row in a Detail row i want get in the parent Row some values that are the primary key ...

I'm trying to do so but does not work
 
Private Sub radGridView1_DefaultValuesNeeded(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
         
        'here i get the parent row
        Dim row As GridViewRowInfo = TryCast(e.Row.ParentRow, GridViewRowInfo)
        If row IsNot Nothing AndAlso row.ParentRow IsNot Nothing Then
             e.Row.Cells("ID").Value = row.ViewInfo.ParentRow.Cells("Ms_ProgRow").Value
        End If
 
    End Sub
But the Master row is always nothing


i try also to do get the parent cell value in this way

e.Row.Cells("ID").Value= e.Row.ParentRow.Cells("Ms_ProgRow").Value
but i got a null reference exception!

How can i do this_?

Thx
Jack
Telerik team
 answered on 11 Jan 2012
6 answers
544 views
Hello,
I am trying to solve this simply soundling problem for hour now. I am trying to adjust the minimum width of the popup of a DropDownList.

I tried something like 
rddl_Consignor_Iso.Popup.MinimumSize = New Size(500, 200)
or 
rddl_Consignor_Iso.DropDownListElement.DropDownMinSize = New Size(500, 200)
or
rddl_Consignor_Iso.DropDownMinSize = New Size(500, 200)
and some other coding.
All worked fine, when using the arrow button with the mouse. The popup then is in the expected width. But when entering the box using the keyboard and typing some letters, the box pops up only in the same width as the DropDownList control. I'm getting mad on this. Which value do I have to set to get an acceptable result? Cheers Roberto
Aaron
Top achievements
Rank 1
 answered on 09 Jan 2012
1 answer
139 views

Hello sir,

Am using vb.net.
I am using radmulti column combobox with FILTER and Autocompletemode as suggest.

I have attached 2 files as Odd row & even row selection images.
Odd rows selection in drop down highlights correct with arrow mark in first column of each rows.
But if i select 2,4,6th.... rows in drop down, first half of the text hides as like in second image "even rows selection"

Also If i try to filter then the drop down height and width changes while opening the drop down.

How to rectify it sir?
I have to use AutoSizeDropDownToBestFit = True, because combobox holds values of size 200.

Thank you
Jayanthi

 

Svett
Telerik team
 answered on 09 Jan 2012
2 answers
199 views
Hello,
I seem to have a problem on my GridView : I add a column and specify its datatypeconverter this way :
Dim col As New GridViewTextBoxColumn("Code", "Code")
col.DataTypeConverter = New CodePluginConverter()
gvHistorique.Columns.Insert(0, col)
It works fine, the CanConvert and Convert methods are called as expected

However, what I need is an image column. If I change the previous code to this :
Dim col As New GridViewImageColumn("Code", "Code")
col.DataTypeConverter = New CodePluginConverter()
gvHistorique.Columns.Insert(0, col)
All my column's cells remain empty, and I never step in any of the TypeConverter's methods.

Is there anything obvious I don't see ? (I'm using the Q3 2011 version of the controls)

Thanks in advance !
Philippe
Top achievements
Rank 1
 answered on 09 Jan 2012
1 answer
117 views
The standard windows ComboBox fires the DropDown event when the button in the combobox is clicked. What is the equivalent event in the RadDropDownList control?
Peter
Telerik team
 answered on 06 Jan 2012
5 answers
533 views
Hi to all,
I have problem to use value from cell in summary row.

On my winform I have two radgridviews with their summary rows. How can I use that values to calculate their sum and show that result in some radlabel?

RadLabel1.Text = sum of column "days" on RadGridView1+ sum of column "items" on RadGridView2



Thanks,
sadly stripy
Svett
Telerik team
 answered on 06 Jan 2012
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?