Telerik Forums
UI for WinForms Forum
2 answers
151 views

Hi,

when I print PivotGrid - all Row headers columns have same size, is it possible to print them similar size like on the screen? Like for datacells columns, see attached

Alex

Alex Dybenko
Top achievements
Rank 2
 answered on 12 Oct 2016
11 answers
370 views

Hi,

I need to run BestFitColumns on a hierarchical grid.
 
The master view template works fine, but I can't seem to get it to work with the child columns.

I am doing the following:

someGrid.MasterGridViewTemplate.ChildGridViewTemplates[0].BestFitColumns();  

Thanks
- jorge

Aaron Abdis
Top achievements
Rank 1
 answered on 11 Oct 2016
2 answers
131 views

Hello. I have a problem and do not know how to solve it. I have a layoutControl with layoutControlGroupItem. I would remove the edge of the flange and content. Exploring with RadControlSpyForm I've learned that you have to put the property of RadPageViewContentAreaElement DrawBorder = false and LayoutControlTabStripItem, but I do not get access to these properties either in design or programmatically. How can I do it?

thank's

Oscar
Top achievements
Rank 1
 answered on 11 Oct 2016
1 answer
147 views

Again, Restating a thread form back in July with a clear BUG that doesn't get addressed!!!

1-i set height (say 2000) it only goes a certain size, not more.  by the way, i am not capping it as I have the max height to 0 (unlimited).  try set to 1000 or 2000 makes no difference.  Why is there drop down height limit? ?

2-when i set dropdown height, the last column of the grid (on the right) doesn't fully show as the vertical scrollbar is partial covering it.  if i don't set the dropdown height, it shows full and correct.  why does it get cut off when i set a dropdown height?  

 

Problems and problems...most of my day, instead of developing, it's one problem after another with these controls!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Oct 2016
3 answers
177 views

Hello everyone,

I have a question regarding radgridviews. If an object radgridview has focus and I press the pagedown key, the gridnavigator moves down to the last of the visible rows, or if it is already in the last of the visible rows it moves down as many rows as rows are visible. The same applies to the pageup key.

I have a radtextbox where I start to write something reseting a one second timer with every keypress, and when the timer goes off I launch a query with the content of the textbox. While in the textbox, if I press the left or right key I move between the characters in it. If I press the up or down key I use the gridnavigator of the gridview to move up or down one row. If I press the enter key, loads the content of the selected row in another form.

I searched the methods of the gridnavigator and couldn't find something to make that easily. Now the question is, is there an easy way to simulate the pageup or pagedown when the focus is in a component that it isn't the radgrid?. Or should I start making calculations like if the current rows divided by the visible rows the remainder is 0 use the gridnavigator to move the number of visible rows down or if it isn't 0 move x rows where x is the number of rows needed to reach the bottom?

I hope you can understand my question, thanks.

Hristo
Telerik team
 answered on 11 Oct 2016
1 answer
108 views

By embedding the Title label for each control in the control itself (like HTML5) instead of using a label next to the control, it frees up a lot of space and is consistent with modern controls.

Instead of this:  First Name   [                      ]

Use this:           [ First Name     ]

 

The RadDropdownList is close, but it doesn't revert to the label when you remove a value. And the label should be gray.

 

 

 

 

 

Dimitar
Telerik team
 answered on 11 Oct 2016
2 answers
673 views

With Standard comboboxes, I would set up a Key and Value. When I try the same with the RadDropdownlist, I get an error, when I try to get the value for the SelectedItem.Key.

The following code block is how I populate the RadDropdownlist. This works just fine. Notice line 10 and 11 where I set the members as Key and Value

01.''' <summary>
02.''' Populates the dropdown_ cust serv cntry.
03.''' </summary>
04.Private Sub PopulateDropdown_CustServCntry()
05. 
06.    cboCustServ_Cntry.Items.Clear()
07. 
08.    Try
09.        cboCustServ_Cntry.DataSource = New BindingSource(dictCntry, Nothing)
10.        cboCustServ_Cntry.DisplayMember = "Value"
11.        cboCustServ_Cntry.ValueMember = "Key"
12. 
13.        'Default to US
14.        cboCustServ_Cntry.SelectedIndex = cboCustServ_Cntry.FindString("UNITED STATES"'United States code
15. 
16.    Catch ex As Exception
17.    End Try
18.End Sub  'PopulateDropdown_CustServCntry

 

When I enter the following code for the SelectedIndexChanged event, I get the error at line 07. Is there a way I can make this work with the radDropdownlist?

01.Private Sub cboCustServ_Cntry_SelectedIndexChanged(sender As Object, e As Telerik.WinControls.UI.Data.PositionChangedEventArgs) Handles cboCustServ_Cntry.SelectedIndexChanged
02.    'need to set up State dropdown based on selected country
03.    Dim CntryCode As String = ""
04. 
05.    Try
06.        Try
07.            CntryCode = cboCustServ_Cntry.SelectedItem.Key
08.        Catch ex As InvalidCastException
09. 
10.        End Try
11. 
12. 
13.        If Not IsNothing(CntryCode) AndAlso CntryCode.Trim <> "" Then
14.            PopulateDropdown_CustServState(CntryCode)
15.            cboCustServ_State.SelectedIndex = -1
16.        End If
17. 
18.    Catch ex As Exception
19. 
20.    End Try
21.End Sub  'cboCustServ_Cntry_SelectedIndexChanged

 

I appreciate your input!

 

 

Dimitar
Telerik team
 answered on 11 Oct 2016
2 answers
252 views
We are opening a usercontrol inside a RadPageView. And in that usercontrol we have a text box with tabindex 5 and we want that when the usercontrol load the focus should be to that control and we have tried  textbox.focus() and textbox.select() method but nothing is working. Please help in this regards
Dimitar
Telerik team
 answered on 10 Oct 2016
1 answer
392 views

Hi,

I meet a question on BeginEdit() function. When I call "this.gridView.Rows[1].Cells[1].BeginEdit();" , the text in Rows[1].Cells[1] will be selected so user will overwrite the previous text with the new type. I notice  System.Windows.Forms has a function  "BeginEdit(bool)" in GridView so developer can call

"BeginEdit(bool)" to not select any contents. Does Telerik has any similar functions to help me unselect text in a Cell? Or How can I unselect text in a Cell programmaticly if I call BeginEdit()?

 

Thank you,

Chen

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Oct 2016
5 answers
1.5K+ views
Hello,

i have a Gridview which is bind with a table adapter to a database. On this form i have a button for deleting records and it works very well. When i'm deleting a record and i'm refill the table adapter i immediately see the changes.

But here's the problem. When i'm trying to insert a new user from a another form (not that one, where the gridview is), then the changes are not updated.

I've tried to Refresh the MasterTemplate from the other form, but that doenst work. Also i placed a sub on the form with the gridview and tried to call it from the other form, but that doenst works neither.

But when i place a button on the original form where the gridview is and i fire the sub with the button, the changes are working well!

Can anybody help me with this issue?

Greets
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Oct 2016
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
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
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?