Telerik Forums
UI for WinForms Forum
3 answers
190 views
Hello

Is it possible to make winform application with telerik radcontrols running under Mono?

When I try this out there is some exception and application doesn’t start.


Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at Telerik.WinControls.UI.RadFormControlBase.get_Font () [0x00000] in <filenam
e unknown>:0
  at System.Windows.Forms.Form..ctor () [0x0000d] in C:\cygwin\tmp\monobuild\bui
ld\BUILD\mono-2.6.7\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Form.cs
:402
  at Telerik.WinControls.UI.RadFormControlBase..ctor () [0x00000] in <filename u
nknown>:0
  at Telerik.WinControls.UI.RadForm..ctor () [0x00000] in <filename unknown>:0
  at TelerikGoesMono.MainForm..ctor () [0x00007] in TelerikGoesMono\MainForm.cs:
14
  at (wrapper remoting-invoke-with-check) TelerikGoesMono.MainForm:.ctor ()
  at TelerikGoesMono.Program.Main () [0x0000e] in TelerikGoesMono\Program.cs:18

Tryck ned valfri tangent för att fortsätta...

Nikolay
Telerik team
 answered on 01 Jun 2012
2 answers
128 views
Hallo,

Version: 2012.1.301

I use the custom filtering functionality like in Telerik demo "Custom Filter Row" (see attachment 1.jpg)
For the custom filtering I used the source code from this demo: (see attachment 2.jpg)

In my GridView are 16 columns and 300 rows. The performance of filtering is very bad.

In our scenario it is possible, that the count of rows is greater than 50.000 - 60.000.

Telerik's answer:
"The Demo application uses string based comparison of data for the search functionality, and string based comparison is an expensive operation. This example just aims to demonstrate a possible solution regarding the custom filtering operation, and it does not intent to achieve the best possible performance. The solution there is up to the developer that is going to make the comparison. For example, in order to have good performance in this scenario, you may need to implement some kind of indexing functionality and cache the result in a memory data structure based on row and column indices. RadGridView in the case of custom filtering only gets the result and sets Visible property for every row.

Speaking in the context of the built-in supported filtering features, the current version of RadGridView control does not implement built-in indexing algorithm for full text search. More information about text search you can find in
this stackoverflow discussion.

I hope this information is useful."


This answer is not sufficient.

Please help me, I need a high-performance solution!

best regards,

Daniel
Daniel
Top achievements
Rank 1
 answered on 01 Jun 2012
2 answers
145 views
I have a gridview and  multicolumncombobox in that gridview. How do I detect the event when  I select the value/item from the combobox.
Tan
Top achievements
Rank 1
 answered on 01 Jun 2012
4 answers
773 views
I'm trying to add and remove handlers as a page is loaded and unloaded using the RAdPageVIew Control.
I am subscribing to both SelectedPageChanging and SelectedPageChanged events to monitor when appropriate pages load, however I cannot seem to retain the previous page in order to know which handlers to remove.  I also can't seem to get the PageIndexChanged event to fire -at all.

I'm using VB.net with the latest build of WinForm controls.

Can I get a sort example to determine which page is closing and which one is opening.

I appreciate the help.
Ivan Todorov
Telerik team
 answered on 01 Jun 2012
2 answers
128 views

Hi
I used from Hierarchy grid.how can i resize width of child grid .
i can resize height of cells of child grid with this code

void radGridView1_ChildViewExpanded(object sender, ChildViewExpandedEventArgs e)
{
    e.ChildRow.Height = 300;
}

but cant change width of child grid.In normal width of child grid is same with parent grid
Atefeh
Top achievements
Rank 1
 answered on 01 Jun 2012
3 answers
278 views
I have a custom cell element within a RadGridView. The custom cell is a RadGridView as well. I would like to show tooltips on some of the cells in the inner RadGridView. I am able to do this successfully by setting the cell's tooltiptext property in the Cell_formatting event, however, I need the tooltip to show for longer and I also need to format it. So, I tried creating an event handler for the ToolTipTextNeeded event and displaying a Windows.Forms tooltip there, but the event is not being raised at all. Please see my code below. If anyone can point out what I'm doing wrong, I'd really appreciate it.
Imports Telerik.WinControls.UI
 
Public Class ClaimAdjustmentsCellElement
    Inherits GridDataCellElement
    Public Sub New(ByVal column As GridViewColumn, ByVal row As GridRowElement)
        MyBase.New(column, row)
    End Sub
 
    Private _radGridView As RadGridView
    Private tip As ToolTip = New ToolTip With {.BackColor = Color.AliceBlue, .ToolTipIcon = ToolTipIcon.Info, .InitialDelay = 500, .ShowAlways = True}
 
    Protected Overrides Sub CreateChildElements()
        MyBase.CreateChildElements()
 
        _radGridView = New RadGridView()
        With _radGridView
            .Dock = DockStyle.Fill
            .ReadOnly = True
            .ShowFilteringRow = False
            .ShowGroupPanel = False
            .ShowColumnHeaders = True
            .ShowRowHeaderColumn = False
            .ShowNoDataText = False
            .AutoScroll = True
            .AutoSizeRows = True
            .SelectionMode = GridViewSelectionMode.CellSelect
            .AutoGenerateColumns = False
            .ShowItemToolTips = True
        End With
 
        Dim GroupCodeColumn As New GridViewTextBoxColumn("Group.Code") With {.HeaderText = "GC", .Width = 25}
        Dim ReasonColumn As New GridViewTextBoxColumn("Reason.Code") With {.HeaderText = "RSN", .Width = 35}
        Dim AmountColumn As New GridViewDecimalColumn("Amt") With {.HeaderText = "AMT", .FormatString = "{0:c}", .Width = 75}
        Dim IsDenialColumn As New GridViewCheckBoxColumn("Reason.IsDenial") With {.HeaderText = "Denial", .Width = 65}
        _radGridView.Columns.AddRange(GroupCodeColumn, ReasonColumn, DescrColumn, AmountColumn, IsDenialColumn)
 
        AddHandler _radGridView.CellFormatting, AddressOf _radGridView_CellFormatting
        AddHandler _radGridView.ToolTipTextNeeded, AddressOf _radGridView_TooltipTextNeeded
 
        Me.Children.Add(_radGridView.GridViewElement)
    End Sub
 
    Protected Overrides Sub SetContentCore(value As Object)
        If value IsNot Nothing AndAlso (Not value.Equals(DBNull.Value)) Then
            _radGridView.DataSource = value           
        End If
    End Sub
 
    Private Sub _radGridView_CellFormatting(sender As Object, e As CellFormattingEventArgs)
        'e.CellElement.ToolTipText = ""
        e.CellElement.DrawFill = False
        If e.CellElement.IsSelected Then
            e.CellElement.DrawBorder = False
        Else
            e.CellElement.DrawBorder = True
        End If
 
        'Dim oClaimAdj As ClaimAdjustment = TryCast(e.Row.DataBoundItem, ClaimAdjustment)
        'Select Case e.Column.Name
        '    Case "Group.Code"
        '        If oClaimAdj IsNot Nothing AndAlso oClaimAdj.Group IsNot Nothing Then
        '            e.CellElement.ToolTipText = oClaimAdj.Group.Description
        '        End If
        '    Case "Reason.Code"
        '        If oClaimAdj IsNot Nothing AndAlso oClaimAdj.Reason IsNot Nothing Then
        '            e.CellElement.ToolTipText = oClaimAdj.Reason.Description
        '        End If
        'End Select
 
    End Sub
 
    Protected Overrides ReadOnly Property ThemeEffectiveType As System.Type
        Get
            Return GetType(GridDataCellElement)
        End Get
    End Property
    Public Overrides Function IsCompatible(data As Telerik.WinControls.UI.GridViewColumn, context As Object) As Boolean
        Return TypeOf (data) Is ClaimAdjustmentColumn AndAlso TypeOf (context) Is GridDataRowElement
    End Function
 
    Private Sub _radGridView_TooltipTextNeeded(sender As Object, e As Telerik.WinControls.ToolTipTextNeededEventArgs)
        Try
            Dim cell As GridDataCellElement = TryCast(sender, GridDataCellElement)
            If cell IsNot Nothing And tip IsNot Nothing Then
                Dim oClaimAdj As ClaimAdjustment = TryCast(cell.RowElement.Data.DataBoundItem, ClaimAdjustment)
                Dim tipText As String = ""
                Select Case cell.ColumnInfo.FieldName
                    Case "Group.Code"
                        If oClaimAdj IsNot Nothing AndAlso oClaimAdj.Group IsNot Nothing Then
                            tipText = oClaimAdj.Group.Description
                        End If
                    Case "Reason.Code"
                        If oClaimAdj IsNot Nothing AndAlso oClaimAdj.Reason IsNot Nothing Then
                            tipText = oClaimAdj.Reason.Description
                        End If
                End Select
                If Not String.IsNullOrEmpty(tipText) Then
                    With tip
                        .Active = False
                        .AutoPopDelay = 30000
                        .SetToolTip(_radGridView, tipText)
                        .Active = True
                    End With
                End If
 
            End If
        Catch ex As Exception
            throw
        End Try
        
    End Sub
 
End Class

Nikolay
Telerik team
 answered on 01 Jun 2012
5 answers
239 views
I posted this before but the post seems to have vanished

void TelerikRadGridViewEnhanced_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)  
        {            
            if(!(e.CellElement.RowElement is Telerik.WinControls.UI.GridTableHeaderRowElement) && TextColorOverrideFunction != null)  
            {  
                e.CellElement.ForeColor  = TextColorOverrideFunction((e.CellElement.RowInfo.DataBoundItem as DataRowView).Row);  
              
            }  
      } 

This works fine and sets the foreground (text) color. However despite there being 4 BackColor properties, I can't change the back color, it is overridden by the theme. Is there a way to set the BackColor? Thanks
Jack
Telerik team
 answered on 01 Jun 2012
2 answers
188 views
Hi, Telerik team.
I'm working with Telerik Winform controls Q1 2012.
I want when i set SelectedValue = "admin" or SelectedValue = "ADMIN" ,anyway RadMultiColumCombobox will return just one Value in Datasource .Can i set which Properties?
Thanks .
Exclamation
Top achievements
Rank 1
 answered on 01 Jun 2012
0 answers
43 views
Hello,

some minutes ago I discovered a behavior on GridView which let me struggled for some time. The background is, I fill the rows with data and set the Tag property of row to my data object. After calling GridView.Relations.AddSelfReference the type of rows changed from GridViewDataRowInfo to GridViewHierachyRowInfo. Cell data is copied, but Tag value is missed. As I saw in the Constructor of GridViewHierachyRowInfo the data cache is only copied. In my mind also the Tag data schould be copied?

My workaround is to build a separate Dictionary with the key on my data object, also used in the hierachy. So I can access the data, which should be stored in Tag property, now from Dictionary using the value of ny ID column in GridView.

Same behavior can also be discovered on Tag property of the Cells.


Regards from Leipzig

Holger
Holger Boskugel
Top achievements
Rank 2
 asked on 31 May 2012
1 answer
143 views
Hi.. 
Im using RadPropertyGrid to my own class..
that class contain Color Property..
when I test that my computer.

result was test2.jpg

but some person's computer show test1.jpg..

I couldn find why that result is diffrence.
I checked .net framework version. but both version is same.. plz help me..

and when i click color pickerbutton that popup window size didn show me full size.
also i cant change size..
this example is test3.jpg

plz answer this request..

Thanks.
Ivan Petrov
Telerik team
 answered on 31 May 2012
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?