Telerik Forums
UI for WinForms Forum
5 answers
139 views

I have a rad view to which I am assigning data source from a SQL table which as 2 rows in it. But when I assign the data source the data is

 

  If oSQL.IsConnected Then
            Try
                ds = oSQL.GetDataSet("Select * from compliance_calculation_runs_hist order by cc_calc_id", CommandType.Text)

                If ds.Tables(0).Rows.Count > 0 Then
                    ds.Tables(0).TableName = "getSavedCalc"

                    RadGridView1.MasterGridViewTemplate.AutoGenerateColumns = False
                    RadGridView1.DataSource = ds
                    RadGridView1.DataMember = "getSavedCalc"
                End If
            Catch ex As Exception

            End Try
        End If

Gowtama Krishna
Top achievements
Rank 1
 answered on 19 Jan 2017
3 answers
68 views

I have a main form frmInnovation that contains a textbox txtInnovationID, and I have a Telerik RadGridView on the form TableSituations with a column InnovationNameID of type int32.
What I want to do is to filter the RadGridView on form load according to the txtInnovationID.

TableSituation.InnovationNameID = txtInnovationID

 

I use this code to filter strings, but how to modify to filter int32.

BindingSource bs = new BindingSource();
bs.DataSource = TableSituations.DataSource;
bs.Filter = TableSituations.Columns[2].HeaderText.ToString() + " LIKE '%" + txtInnovationID.Text + "%'";
TableSituations.DataSource = bs.DataSource;

I need also to change the code from "LIKE" to "Equals".

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Jan 2017
2 answers
224 views

HI,

I am using RadCheckedDropDownList.

I want to disable edit possibility in EditableElement.

User can only check options by opening list (arrow button).

So i change DropDownListElement.EditableElement.Enabled to false.

But how can i remove "X" button next to each option in EditableElement?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Jan 2017
1 answer
433 views

Hi.

I've got a text column that has multiple lines in some of the cells.  When I auto-size the rows those rows show up very tall to display all the text, but I prefer to show just the top line and keep the row height the same as the rest.  My first problem is that I can't find out what that height should be.  Every time I look at Rows[n].Height I see -1.

It's not a perfect solution anyway, but I'm still curious about that value.  For a better solution, I'd like some way of finding out the proper height of a single row given the font I'm using.

Thanks in advance for any help.

Dimitar
Telerik team
 answered on 19 Jan 2017
1 answer
162 views

Hi,

I'm using the PdfViewer with succes but when a pdf is loaded that pdf is also locked in the filesystem.
is there some way to prevent that?
So I would like to load the pdf and then disconnect form the file while the content is still in de PdfViewer.

Regards
Didier

Dimitar
Telerik team
 answered on 19 Jan 2017
2 answers
151 views

I have one split container on my form.  It is set to DOCK=FULL.  In that container, I have 5 panels, stacked on top of each other. I want the 2nd Panel, 3rd Panel and 5 Panel not to resize vertically when my form resizes. I do however, want it to grow horizontally.  I want the 1st and 4th Panels to grow both vertically and horizontally.  How can I achieve this with this control?

 

 

Thanks

Dimitar
Telerik team
 answered on 19 Jan 2017
1 answer
194 views

We purchased the sources for a project that used the 2009 version of UI for Winforms. We are using the current version of Winforms. The original project was created with VS 2010. It has been upgraded to VS 2015. In the project, we have the current version of the assemblies selected yet we still get the build error as seen below:

 

Severity Code Description Project File Line Suppression State
Error CS1705 Assembly 'Telerik.WinControls.Themes.Breeze' with identity 'Telerik.WinControls.Themes.Breeze, Version=2016.3.1024.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' uses 'Telerik.WinControls, Version=2016.3.1024.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' which has a higher version than referenced assembly 'Telerik.WinControls' with identity 'Telerik.WinControls, Version=2009.1.9.311, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' CannaPOS C:\Users\bigdo\OneDrive\Documents\GitHub\RPOS\420TechPOS\Retail\CSC 1 Active

We want to ship our product with the current version of WinControls.

Thanks!


Lance | Senior Manager Technical Support
Telerik team
 answered on 18 Jan 2017
5 answers
171 views

Hi,

I use the RadOffice2007ScreenTipElement to display some tooltip (with image) on a RadGridView column.
The original image is much to large to display in this tooltip.
Is there some way to (automatically) resize the image to the defined size of the tooltip (done with new System.Drawing.Size(200, 150))

Thanks
Didier

Hristo
Telerik team
 answered on 18 Jan 2017
1 answer
174 views

I have a grid with a ComboBoxColumn where each row will have a unique list. It is updated when the user clicks on a button.

As an example, Lets say each row represents a person and one of the columns is ComboBoxColumn has a header called, "Dept Worked". There is a static list of departments, but each person only has a subset of these departments.

Department List:  AP, AR, SA, IT, PU, MK, TR

Sally: aDept() =  {AP, AR, PU}

Nick:  aDept() = {SA, IT}

Julie:  aDept() = {MK, TR, SA}

 

I looked at the Telerik documentation on the ComboBoxColumn, but it only shows how to display a single list for all rows.

I also looked at the Cascading ComboBoxColumn How-To. It looked closer, but not sure because my event to populate the grid is under the Button event.

 

My columns were defined in VS visual editor, but I built code to dynamically fill an array for each combobox in the Dept column.

 

01.Private Sub btnApply_Click(sender As System.Object, e As System.EventArgs) Handles btnApply.Click
02. 
03.' data pulled from source here and placed in an array'
04. 
05. 
06.                    For x As Integer = 0 To aUserId.Length - 1
07.                        Dim rowInfo As GridViewRowInfo = MyGrid.Rows.AddNew()
08. 
09.                        Try
10.                             'Loading row data
11. 
12.                             'Column 1 : Combobox "Dept" - Each row will have a list of its own departments - aDept()

 

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Jan 2017
2 answers
105 views

Hi Telerik, is there a way to share a list of RadMenuItems over multiple menus? I would like a list of options for a selection in a treeview (left click) as well as the same options in a right click context menu on the tree.

I have setup the radmenuitems in the context menu, however if I clone those items and place them in the RadMenu, they disappear from the context menu and only appear in the radmenu.

radMenu1.Items.AddRange((RadItem[])radContextMenuBLTree.Items.ToArray().Clone());

The items are only RadMenuItems, and RadMenuSeparatorItems, and RadMenuHeaderItems.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Jan 2017
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
+? 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?