Telerik Forums
UI for WinForms Forum
3 answers
613 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
188 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
249 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
102 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
485 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
123 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
184 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
109 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
502 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
5 answers
108 views
Using VS Express 2010, Win 7 w/.Net 4 and .Net EF 4.1.   So far, to add controls, I have to go to toolbox and manual add each Telerik control I want to use.   That's okay if this is the way I have to do it.   Eventually, I will get all the ones I want to play with.

I am trying to find my way around.   One simple task is I would like to create oval-shaped buttons.   I can go into the root properties and dig around until I find that I can select an ellipse shape, and it even appears like an ellipse in my designer.   But when I debug, it totally ignores my shape selection.  I also tried changing background color, but it totally ignores that, as well.   Of course, I can do all the regular C# things, such as make the button bigger or smaller, or change its text.   But I can't seem to "Telerik" it.

I am using a straight-forward Windows Form.

Telerik looks promising, but I'd sure like to be able to kick the tires as much as possible before my trial runs out.....

Thanks.

EDIT:   I see that disabling theming allowed it to recognize the background color I picked.   That issue is solved.   Now, how about getting my ellipse shape to render at runtime?
Ivan Petrov
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)
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
VirtualKeyboard
NavigationView
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?