Telerik Forums
UI for WinForms Forum
3 answers
346 views
I would like to change the colors in the metro theme for winforms but I can't find any documentation on it.

Help?

Thanks,
David
Nikolay
Telerik team
 answered on 16 Aug 2011
5 answers
131 views
Hello ... i'm taking some problems to set the % to the SeriesItem.Name, 
It doesn't change to the % value when my graphic renders.

i also set the ActiveRegion.Tooltip and Label.TextBlock.Text from SeriesItem as the same, but it doesn't work for the Name.


protected void RadChart1_ItemDataBound(object sender, Telerik.Charting.ChartItemDataBoundEventArgs e)
{
    e.SeriesItem.Label.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Arial",
            10, System.Drawing.FontStyle.Bold);
  
    DataRowView row = e.DataItem as DataRowView;
    e.SeriesItem.Label.TextBlock.Text = string.Format("{0} - #%", row["DS_PRODUTO"]);
    e.SeriesItem.ActiveRegion.Tooltip = string.Format("{0} - #%", row["DS_PRODUTO"]);
  
    e.SeriesItem.Name = string.Format("{0} - #%", row["DS_PRODUTO"]);
  
}

is it a bug? limitation? my mistake?

Could anyone help me?
Ves
Telerik team
 answered on 16 Aug 2011
10 answers
698 views
Hi I'm using a RadGridView, i want use a filter but not for all columns, how can i hide this for someone columns? Thanks
jprian
Top achievements
Rank 1
 answered on 16 Aug 2011
2 answers
135 views
Hello,
I'm using the radScheduler Q1 2011 in a proffessional project, and I have a big problem. The Scheduler can't refresh after updating data.
I have tried many tricks but there is no way, it does'nt works.
How can I refresh my scheduler??, please help!!.
thank you
Boryana
Telerik team
 answered on 16 Aug 2011
5 answers
727 views
I wanted to see if I can use LINQ on RADGridView's GridViewRowCollection (Telerik.Wincontrols.UI.GridViewRowCollection).

So I tried the following VB.NET code and got an error:

Dim lockedRows = _
    From row In Me.dgTotalCosts.Rows _
    Where row.Cells("colLocked").Value = True
    Select New With {.Code = row.Cells("colCode").Value, _
                     .Description = row.Cells("colDesc").Value}

... when I then tried to check the value of lockedRows.Count. So i tried changing it around a little bit to:

Dim lockedRows As IEnumerable(Of Telerik.WinControls.UI.GridViewRowInfo) = _
    From row As Telerik.WinControls.UI.GridViewRowInfo In Me.dgTotalCosts.Rows _
    Where row.Cells("colLocked").Value = True
    Select New With {.Code = row.Cells("colCode").Value, _
                     .Description = row.Cells("colDesc").Value}

But then got the following error (which I've somewhat abbreviated for briefness):

Unable to cast object of type 'WhereSelectEnumerableIterator'2[Telerik.WinControls.UI.GridViewRowInfo, VB$AnonymousType_0'6
[System.Object, ...]]' to type 'System.Collections.Generic.IEnumerable'1[Telerik.WinControls.UI.GridViewRowInfo]'.

So, the first question is, can I use LINQ on GridView's GridViewRowCollection. Secondly, if so, how (can you show me using my example code, above, where I'm trying to pull out the locked rows from a GridView (

Telerik.WinControls.UI.

 

RadGridView

 

)?

Thanks in advance for your help from a LINQ and RADGridView Newbie.
Svett
Telerik team
 answered on 16 Aug 2011
4 answers
331 views

Hello all,
I am using a hierarchical RadGridView with 3-level and I would like that the rows of 2nd level and the rows of 3rd level that meet a search criteria (such as the Notes column contains the value "perizia") appear with a different backcolor.
I have used, as described in the manual online, the event radGridView_RowFormatting (object sender, RowFormattingEventArgs e) but while I scroll the ChildRows collection I lose the information about the class Telerik.WinControls.UI.GridDataRowElement essential to allow formatting the row read.
How can I do to get this highlighting ?

Best regards,
Mauro Fiore

mauro
Top achievements
Rank 1
 answered on 16 Aug 2011
3 answers
179 views

I have a GridViewMultiComboBoxColumn (width: 175) within a GridView (width: 500). The GridViewMultiComboBoxColumn's DataSource is set to the result of a query selecting several columns (id, name, city, state). The GridViewMultiComboBoxColumn dislays multiple columns when the user clicks on the drop-down arrow. Since the GridViewMultiComboBoxColumn is made up of several columns (id, name, city, state), when the drop-down arrow is clicked on, and the listbox drops down, the column width of the GridViewMultiComboBoxColumn (175) is rather narrow and its hard to see the information contained in the columns.

Is it possible to change the width, currently 175, of the listbox that drops down for a GridViewMultiComboBoxColumn contained within a GridView, yet keep the width of the column (175) within the GridView without changing? If so, can you show me with code.

In other words, can I keep the control's width at 175, before and after the user clicks the drop-down arrow, but make it much wider, when they click on the drop-down arrow and the drop-down portion (or listbox aspect) of the GridViewMultiComboBoxColumn is accessible?

Stefan
Telerik team
 answered on 15 Aug 2011
9 answers
438 views
Hi again
(A barrage of questions today!)

When creating a custom column grouping via ColumnGroupsViewDefinition, I noticed a few things that puzzled me:-

-I could no longer move columns around or use the columnchooser
-I'm unable to provide different right-click context menus for data and "sub" header cells.  (Subgroup headings they do not register as GridHeaderCellElement or GridHeaderRowElement but appear to be GridDataCellElement)?
-I can only "pin" the main headings

I suspect a lot of that is by design, but if there are any avenues that I could use to enable a user to select what columns or even columngroups that they wish to see without losing the nice multi-row headings, it would be great!

Regards,
Mike

Svett
Telerik team
 answered on 12 Aug 2011
1 answer
130 views
Hi,

My radtreeview is loaded from a Oracle dataset. How do i refresh it to catch up with any changes that may have been made to the database?

Can you please include an example.
Svett
Telerik team
 answered on 12 Aug 2011
3 answers
290 views
Hi,

I am looking for some help as I am new to this control.

I have set up a RadTreeView to pull data from an Oracle database via the Datasources option. I have been able to load 3 levels of data. Now, I want to be able to edit the data on the treeview and that update be replicated back to the oracle database.

Thus far I have come up with the following. However I think I am missing something.

When I update a Node, the data is saved back to the database but the child nodes on the treeview dissapear (since the parent has now changed). I cannot find a way of refreshing the treeeview. Can somebody please help??

 

Private Sub RadTreeView1_Edited(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.TreeNodeEditedEventArgs) Handles RadTreeView1.Edited

 

 

On Error GoTo ErrMsg

 

 

Dim DBConnection As New OleDbConnection("Provider=msdaora;Data Source=ubrmos01;User Id=tiadmin;Password=******")

 

 

Dim strsql As String

 

 

If e.Node.Level = 0 Then

 

DBConnection.Open()

strsql =

"UPDATE APPLICATION set APPLICATION = " & "'" & e.Node.Text & "'" & " where APPLICATION = " & "'" & Text_beforeedit & "'"

 

 

Dim Command As New OleDbCommand(strsql, DBConnection)

 

Command.ExecuteNonQuery()

 

End If

 

 

If e.Node.Level = 1 Then

 

DBConnection.Open()

strsql =

"UPDATE ENVIRONMENT set ENVIRONMENT = " & "'" & e.Node.Text & "'" & " where ENVIRONMENT = " & "'" & Text_beforeedit & "'"

 

 

Dim Command As New OleDbCommand(strsql, DBConnection)

 

Command.ExecuteNonQuery()

 

End If

 

 

Exit Sub

 

errmsg:

e.Node.Text = Text_beforeedit

MsgBox(Err.Description, MsgBoxStyle.Critical,

"Error Updating Database")

 

 

End Sub

 

Svett
Telerik team
 answered on 12 Aug 2011
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?