Telerik Forums
UI for WinForms Forum
17 answers
913 views
Hi
I'm using 2010 Q2
How can I add an unbound column to show row numbers?! Row numbers must be updated after sorting, filtering & grouping.
thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Aug 2018
8 answers
515 views

Hey there! I'm just doing a bit of scouting at the moment for a new desktop app we're looking to write -- probably a WinForms C# app. This app will need as one of its features to be able to edit XML and CSharp code snippets.

Since RichTextEditor is already in our toolbox of toys -- but I haven't worked with it previously -- I was wondering, is there any way to make it behave as close as possible to a Visual Studio style code edit window?

I like the look of the code blocks ("InsertCodeBlock()" function) in RTE but those appear to be read-only. Ideally I'd want the entire edit window to look like the code block (syntax highlighting for the desired language) but not do any of the RTF type things (bolding, italics, etc.)

Just thought I'd pick the communities thoughts to see if this was even feasible before sinking too much time going down a dead end. Thanks!

 - Tony

Hristo
Telerik team
 answered on 29 Aug 2018
3 answers
149 views

Hello guys,

There is a way to creating a radspin editor like in the picture attached?

Hristo
Telerik team
 answered on 29 Aug 2018
6 answers
443 views
How do I add a grey horizontal line to the rich text editor?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Aug 2018
1 answer
597 views
In my ribbon bar I can disable some elements on various occasions, and I would like to inform the user about the reason an element is disabled. Usually I would use a tooltip (and some extra code to enable tooltips even for disabled WinForms Controls). But ribbon bar elements are not WinForms controls, and also I don't know how to find a ribbon bar element at cursor's location. Do you have an idea how to inform the user about why the element is disabled when the user hovers the mouse over it?
Dimitar
Telerik team
 answered on 29 Aug 2018
5 answers
108 views

Hey guys, Is there a way to show some clue on a page that have invalidated controls? 

I'm currently using error provider to show errors on controls, I've tried using it on the page but it don't have good location, and I need a generic solution because I use a generic validator to see if the controls has value.

I'm currently using 2015.1.225.40 version and sorry for bad english. Thanks in advance.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Aug 2018
0 answers
58 views

I'm not sure if someone will help me with this, considering the version. We are using radcontrols for winforms Q1 2009 SP1 (2009.1.9.414). 

I have a MDI Parent, and several mdi children. One MDI Child form with a RadGridView on it. The form works fine, and performs as expected. I use events like CellBeginEdit and CellEndEdit to make changes to the database. The gridview is bound to a BindingList<myCustomClass>. When I edit directly in the grid I update to database on CellEndEdit the entire object. something like this:

myCustomClass objToUpdate = (myCustomClass)RadGridView1.Rows[e.RowIndex].DataBoundItem;

Debug.WriteLine("id: " + objToUpdate.Id);

Debug.WriteLine("Priority: " + objToUpdate.Priority);

db.UpdateCustomClass(objToUpdate); 

 

However here is the problem:
If I do one update, change to another MDI Child form, and change back to the form in question, the objects are not updated correct. I can see in the debug that the Id property is correct, but the priority (Int32) have the old value. Since Priority is Int32, I can change with both keyboard and numeric up/down. But if I change priority using numeric up/down editor it works. If I change priority from 1 to 2 with keyboard and press Enter, the value does not change, but if I try to edit again, the numeric up/down have value 2...

If I just open the form and select a row, change back and forth, and do an update, everything works. It is just if I make a change to the datasource before changin forms the problem occurs. 

I have tried to deselect currentRow when form1 is deactivated, so that when I come back I have to select the row again, but does not work. 

clearing bindinglist og populating grid again does not work either. I have to restart the form.

 

 

Any help greatly appreciated.. :-| 

John Pedersen
Top achievements
Rank 1
 asked on 29 Aug 2018
8 answers
253 views

Hello,

Im new into Telerik UI and I have a simple question:

How to remove a "Custom" filter option/element from filters menu on the top of all radGridView columns. 

 

Thanks in advance

Piotr

Dimitar
Telerik team
 answered on 29 Aug 2018
1 answer
148 views

     I have a RadDataFilter linked to a RadDataGrid which is functioning as desired.  I have a RadChartView (Bar Chart) that is a summary of what is being displayed in the Grid.  When I click a bar in the bar chart, I am populating the filter with a string that will filter the grid on only the rows that are related to the Bar.

Everything in this scenario is working, in that I get the filter looking correctly, based on the bar I clicked and the grid properly filtering.  The issue is that the filter item is DataFilterComboDescriptorItem and it is not displaying the correct value in the dropdown for the item specified.  It is basically displaying the last value ever selected, regardless of if I clear the filter.  

How is the value of a DataFilterComboDescriptorItem set when a RadDataFilter.Expression is manually assigned which affects that item?

Thoughts?

Here is my code:

Building the Filter Nodes Dynamically:

Private Sub SetupFilter(ByRef FilterDT As DataTable)
 
        Dim sFilterHold As String = RadDataFilter1.Expression
        RadDataFilter1.Descriptors.Clear()
        Me.RadDataFilter1.DataSource = FilterDT
        RadDataFilter1.Descriptors.Clear()
 
        Dim sSQL As String = "SELECT FilteredColumnName,DisplayText,FilterDataType FROM dbo.MAPPS_GridFilterDetail WHERE FilterHeaderId = 1 AND ActiveYN = 1"
        Dim dr As SqlDataReader = CLIB_MAPPS.Configuration.DBAccess.getSQLDataReader(sSQL)
        While dr.Read
            If dr("FilterDataType") = "DropDownList" Then
                Dim ddItem As New DataFilterComboDescriptorItem()
                ddItem.DescriptorName = dr("FilteredColumnName")
                ddItem.DescriptorType = GetType(Integer)
                ddItem.DataSource = GetTable(dr("FilteredColumnName"))
                ddItem.ValueMember = "ID"
                ddItem.DisplayMember = "Description"
                ddItem.DropDownStyle = RadDropDownStyle.DropDown
                ddItem.AutoCompleteMode = AutoCompleteMode.Suggest
                ddItem.FilterOperators.Clear()
                ddItem.FilterOperators.Add(Telerik.WinControls.Data.FilterOperator.IsEqualTo)
                ddItem.FilterOperators.Add(Telerik.WinControls.Data.FilterOperator.IsNotEqualTo)
                ddItem.Tag = dr("DisplayText")
                RadDataFilter1.Descriptors.Add(ddItem)
            Else
                Dim DescItem As New DataFilterDescriptorItem()
                DescItem.DescriptorName = dr("FilteredColumnName")
                DescItem.DescriptorType = Type.GetType(dr("FilterDataType"))
                DescItem.Tag = dr("DisplayText")
                RadDataFilter1.Descriptors.Add(DescItem)
            End If
        End While
        dr.Close()
        dr = Nothing
 
        Me.RadDataFilter1.Expression = sFilterHold
        If Me.RadDataFilter1.Expression.Length > 0 Then
            Me.ApplyFilter()
        End If
    End Sub
 
    Private Function GetTable(ByVal sColName As String) As DataTable
        Dim sSQL As String = ""
        Select Case sColName
            Case "Priority_Id"
                sSQL = "SELECT Priority_Id ID,convert(varchar(10), Priority_Id) + ' - ' + Priority_Description Description FROM Priority ORDER BY Priority_Id"
            Case "Category_Id"
                sSQL = "SELECT Category_Id ID, Cat_Description Description FROM Category ORDER BY Category_Id"
            Case "EA_Id"
                sSQL = "SELECT EA_Id ID, Adequecy_Desc Description FROM Education_Adequecy ORDER BY EA_Id"
            Case "Status"
                sSQL = "SELECT Status ID, Description Description FROM Deficiency_Assessment_Status_Lookup ORDER BY Status"
            Case "System_Id"
                sSQL = "SELECT System_Id ID, Systems_Name Description FROM Systems ORDER BY Systems_Order"
            Case "Unit_Id"
                sSQL = "SELECT Unit_Id ID, Unit Description FROM Unit_Lookup ORDER BY Unit"
        End Select
        Dim ds As DataSet = CLIB_MAPPS.Configuration.DBAccess.getDataSet(sSQL, "FilterTable")
 
        Return ds.Tables(0)
 
    End Function

 

Click Event from the Bar Chart to set the filter:

Private Sub radchrtRenoCostBySystem_SelectedPointChanged(sender As Object, args As ChartViewSelectedPointChangedEventArgs)
    If args.NewSelectedPoint IsNot Nothing Then
        Dim sSystemID As String = DirectCast(args.NewSelectedPoint.DataItem, System.Data.DataRowView).Row.ItemArray(0)
        Me.RadDataFilter1.Expression = "[System_Id] = " & sSystemID
        'THIS IS WHERE I WOULD WANT TO SET THE VALUE IN THE DROPDOWN TO MATCH THE sSystemID SELECTED
        ApplyFilter()
    End If
End Sub
Hristo
Telerik team
 answered on 28 Aug 2018
2 answers
147 views
Hey guys, I've got a problem, the selected item text just don't work with html formatted text. Any help? I'm using telerik 2015
Hristo
Telerik team
 answered on 28 Aug 2018
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?