Telerik Forums
UI for WinForms Forum
3 answers
153 views
Hi,
My grid has been grouped and expanded all groups.  After loading, it is scrolling to end of the grid.   Can you let me if there any properites i need to set to scroll to top of the grid.
I tried following but it is not displaying top summary rows.
Grid.TableElement.ScrollTo(0);

Please help me.
RS
Top achievements
Rank 1
 answered on 22 Aug 2012
7 answers
726 views
Hello,

I am trying set SelectedIndex = -1 to set empty item on ComboBox. It is works fine in Q2, but after upadate set DataSource cause set first item in the list. How can a set empty Item after set DataSouce?

At the moment I notice that it hapends only when SelectedIndex = -1 is set in Constructor body.
After Load it's works fine.
Nikolay
Telerik team
 answered on 22 Aug 2012
1 answer
83 views
Is there an explanation as to why the DropdownList looks like attached screen shot when the control is Enabled = false ?
Boryana
Telerik team
 answered on 22 Aug 2012
1 answer
170 views
I think this is more of an editor question than it is a PropertyGrid question, but here goes.

I've got some domain objects that I adapt into a PropertyGrid SelectedObject. The adapter isn't "much" more than adapted getters/setters wrapping the domain objects. With me so far? Good...

For some properties, I've built in INotifyBeforePropertyChanges, INotifyPropertyChanged, and INotifyAfterPropertyChanged interfaces, the .NET one is INotifyPropertyChanged, with the others doing the expected type operations.

In application, my domain objects have a Name, which I want to intercept and preclude duplicate names. Enter editor validations. It doesn't matter to me whether control over the editing is through the validations or we can utilize our property interfaces. Matters not.

I do have the BeforePropertyChanges event being handled at present. I look out to a list control and/or database for duplicate names and prompt the user when that's the case.

I'd like to do that through the PropertyGrid editor if possible: here's the code snippet setting that up.

private void PropertyGrid_EditorInitialized(object sender, PropertyGridItemEditorInitializedEventArgs e)
{
    Debug.Assert(e.Item is PropertyGridItem);
    var __e_Item = e.Item as PropertyGridItem;
 
    if (__e_Item.Name.Equals(DataSourcePropertyGridNames.Name,
        StringComparison.CurrentCultureIgnoreCase))
    {
        Debug.Assert(e.Editor is BaseTextBoxEditor);
        var __e_Editor = e.Editor as BaseTextBoxEditor;
 
        //TODO: Implement this and examine sender (I think).
        __e_Editor.Validating += PropertyGrid_Name_Editor_Validating;
    }
}

However, the event doesn't seem to go at all. I think because my domain object event is getting in the way.

Edit: I've verified, the event is being hooked up, although it is a PropertyGridTextEditor and not BaseTextBoxEditor, which might have something to do with it. Event doesn't get dispatched.

Edit: Still doesn't go.

Can you confirm that the Validating event works?
Ivan Petrov
Telerik team
 answered on 22 Aug 2012
1 answer
91 views
Hello,

How do we use the UriTypeConverter when we're not telling RadPropertyGrid an adapted SelectedObject, for instance? In other words, when we are using the Store? In other words, we can tell RadPropertyGrid when EditorRequired what UriTypeConverter editor to use?

Thank you...
Ivan Petrov
Telerik team
 answered on 22 Aug 2012
4 answers
479 views
Hi !
I'm actually wondering if it is possible to detect WHERE a mouse click occurs in a cell (mainly a header cell).
The CellClick event args doesn't return the mouse position in the cell, only the row / column, making my test impossible
At the opposite, inside MouseClick event capture, the GetChildAtPoiint() function returns always null.

My goal is the following : I want to use a particular area (top right corner of a header cell) to perform a particular task (I'm rendering the area with the CellPaint event)
Ivan Petrov
Telerik team
 answered on 22 Aug 2012
3 answers
188 views
Hi everyone

I create class
UserGridCheckBoxCellElement : GridDataCellElement
for show checkbox with text (it must need this title) in RadGridView

I use 
gridDay.TableElement.GetCellElement(rowInfo, cell.ColumnInfo) for find this cell
and update checkbox statut 

I dont know why it is NULL at first time, 
it does not have problems after first time

by the way, i use telerik 2012 Q2


Thanks
Stefan
Telerik team
 answered on 22 Aug 2012
4 answers
136 views

Hi Telerik Team,

I need  help with the tree view (using Q2 2012 SP1)
When i am dragging one or more rows from the radgridview to the radtreeview, how can i force the treeview to expand and highlight the treenode that i am hovering (dragging) over?. And how can I show feedback in the treeview of the target drop position, similar to the dotted line used when dragging in the treeview itself) ?
I am using the RadDragDropService. (radGridView.GridViewElement.GetService<RadDragDropService>)

 

Thank you in advance.

Best regards,
Henri

Henri
Top achievements
Rank 1
 answered on 21 Aug 2012
3 answers
100 views
I'm hoping someone else has run into this issue and can offer some insight...

I have recently tried to scale an image on a carousel button to about 0.2 of its original size.   When I did this a strange phenomenon occurred... the button becomes removed from the carousel.    At run time, the button that was scaled was displayed in the upper left corner of the form, completely disassociated from the carousel.  The rest of the carousel seemed to work ok.   To fix this, I had to delete the button from the carousel and then add it back to the carousel. 

I originally scaled the image simply because the graphic I had was larger than I wanted the button to be.  Am I using the scaletransform property wrong?  If so, what's the purpose of this property. 

Thanks.  
Peter
Telerik team
 answered on 21 Aug 2012
1 answer
151 views
Hi,

I have started to write some code that eventually will build a menu of tiles using the Panaroma, Group and Tile controls. The strange thing is that when I add the tiles directly to the panorama everything works fine but when I first add the group and then add the tiles to the group then everything is shown ok but the tile events are not firing. There is no reponse to a click event or a mouse over. Could you help me with this?
Private Sub Menu_Load(sender As Object, e As System.EventArgs) Handles Me.Load
 
        Dim i As Integer
        Dim r As Integer
        Dim c As Integer = 0
 
        Dim groep As New TileGroupElement
 
        groep.Text = "hoi"
        RadPanorama1.Items.Add(groep)
 
        For i = 0 To 45
 
            If i Mod 4 = 0 Then
                If i <> 0 Then
                    r = r + 1
                End If
 
            End If
 
            groep.RowsCount = r + 1
 
            Dim tile As New RadTileElement
            tile.Text = CStr(i)
 
            tile.Row = r
 
            tile.Column = c
 
            c = c + 1
 
            If c = 4 Then c = 0
 
            tile.Tag = i
 
            AddHandler tile.Click, AddressOf tile_click
 
            groep.Items.Add(tile)
 
        Next
 
        Me.RadPanorama1.AllowDragDrop = False
 
        groep.ShouldHandleMouseInput = True
 
    End Sub
 
    Private Sub tile_click(sender As System.Object, e As System.EventArgs)
        RadPanorama1.PanoramaElement.SuspendLayout(True)
        MessageBox.Show(CType(sender, RadTileElement).Tag)
        RadPanorama1.PanoramaElement.ResumeLayout(True, True)
    End Sub
Stefan
Telerik team
 answered on 21 Aug 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?