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
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".
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?
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.
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
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
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!
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
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()
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.