Telerik Forums
UI for WinForms Forum
4 answers
100 views
Hello everyone,
I've been using Telerik's aspx AJAX controls for a while now and I just started to review their winforms controls for a legacy project. I've read through the online documentation for the GridView and I'm still struggling to bind my data successfully. Here's my structure.

Rooms
- Products
- - Related Products

I need each level to be capable of drag and drop to other controls in the application so it appears that I need a total of three templates (two in addition to the master). In my testing I've been manually databinding the grid and I've managed to load my rooms when the form loads. I've then chosen to use the "MasterTemplate_RowSourceNeeded" to load my first level products when a room is expanded (which works as expected). Now I'm struggling to add the final level (Related Products). I've tried adding a Related Products template at runtime when the Products level is being filled (no issues here). I then added a relationship to the gridview to relate the products with their related products and while this doesn't produce an error the Related Products aren't visible in the gridview. I then tried manually creating each Related Product row within the related template using a dataview's filter to get the related products. Again this ran without error but clicking the drop arrow next to the Product only changes the drop arrow to the opened state with no Related Products being shown. I've tried to watch a handful of the databinding videos on Telerik's website but the video doesn't show (like a white box is over the video).

Any help is greatly appreciated :)
Julian Benkov
Telerik team
 answered on 13 Apr 2012
6 answers
2.3K+ views
Does anyone know how do I set a particular value in a cell radgridview?

For example: 

if ((bool)e.CellElement.RowInfo.Cells["Arquivado"].Value == true)
                        {
                            e.CellElement.Text = "Sim";
or
    e.CellElement.Value = "Sim";
or
    e.CellElement.RowInfo.Cells["Arquivado"].Value = "Sim";
                        }

Thanks;
Diogo Marins
Top achievements
Rank 1
 answered on 13 Apr 2012
5 answers
672 views

Hi, 

I have a RadListview on a form connected to a datasource. Then I have a timer which call a method that refreshs the content of the DataTable periodically.  After starting it shows the content correctly. But as soon as the DataTable is refreshed for the first time I ran into problems. 

The RadListView itself seems not to recognize when the underlying DataTable is changing. That's no problem so I have to tell the RadListView to refresh. My first try was the Refresh() Method. That seemed not to work. So I've tried to reassign the DataTable to the RadListView in setting it again as DataSource. This will throw an exception that a column is not contained in the table (more precisely it's the first column). Looking in to the underlying DataTable the column is included.

Wrapping the commands into BeginUpdate() and EndUpdate() makes no change.

Surely I have something overlooked to make it work. Any help is welcome.

Michael

Ivan Todorov
Telerik team
 answered on 13 Apr 2012
1 answer
138 views
Is there a way using only the RadGridView control to show more than 2 custom filtering conditions?

The attached image shows an example of the RadGridView filter dialog.

Thanks for any help.
Stefan
Telerik team
 answered on 13 Apr 2012
2 answers
150 views
Hello!

I have a custom VisualItem "CustomVisualItem : IconListViewVisualItem" which belongs to a ListView with ViewType=IconsView.
The VisualItem consits of a StackLayoutPanel with 2 LightVisualElements (one is displaying a image and the other displays text).
The Datasource for the ListView is "List<CustomClass>".

Now I want to achieve the following:
- check if VisualItem is Databound to CustomClass
- when property "Disabled" of CustomClass is true then draw a red X over the VisualItem (a red line from Top-Left to Bottom-Right and one from Top-Right to Bottom-Left)

This is my current not working solution:
internal class CustomVisualItem : IconListViewVisualItem
    {
 
protected override void PaintElement(Telerik.WinControls.Paint.IGraphics graphics, float angle, SizeF scale)
        {
            base.PaintElement(graphics, angle, scale);
 
            var t = this.Data.DataBoundItem as CustomClass;
            if (t != null)
            {
                if CustomClass.Disabled)
                {
                    //To shorten the sample, only draw a rectangle                   
                    graphics.FillRectangle(BoundingRectangle, Color.Silver); // The rectangle is not placed over the VisualItem                
                }
            }       
        }
}

How can I place the red X (or the rectangle) over the VisuaItem?
Froggie
Top achievements
Rank 1
 answered on 13 Apr 2012
1 answer
86 views
Hello all!!
I want to make something:
http://www.habrastorage.com/images/netchart.png
I try to use MS Chart but I fail with this. It's need to show realtime proccess parameter value.
Thanks.
Yavor
Telerik team
 answered on 13 Apr 2012
1 answer
112 views
I am trying to disable timeline completely from showing to user in Dayview and weekly view. Please help.

Ivan Todorov
Telerik team
 answered on 12 Apr 2012
1 answer
177 views
Hi all,

I would like to Ignore the timezone settings on the computer and in the RadScheduler. I know how to disable the drop down in the scheduler navigator. But I cant figure out how to disable time zone settings. For some kind of weird reason the scheduler ignores my default time zone (Windows settings). When I run the same program on an other computer it seems to work fine. When I change my timezone the settings, the scheduler keeps using other timezone settings. 

Well I don't need timezone support. I just want the times in my database to be used as appointment times, and ignore all timezone settings.

Is there a way I can achieve this?

Greetings
Ivan Todorov
Telerik team
 answered on 12 Apr 2012
3 answers
65 views
Hi
when show RadAlarmForm RightToLeft isnt correct. 

How i can RightToLeft RadAlarmForm when Shown Appointment alarm ?
Ivan Todorov
Telerik team
 answered on 12 Apr 2012
1 answer
143 views
Hi
   I am developing an application (desktop based ) where I wanted to use telerik component for notifiication icon messages. however the main concern is that telerik.dll should not be added in the project as reference but if it is found in installed folder at runtime then it should load using reflection and then add control at runtime and use it. if telerik.dll is not in the installed folder then regular process will go on and simple windows based notification will be used which is currently working.

so my question is , can we use telerik windows component without adding reference like i explained above, if yes then any idea's how ?

Best Regards
Rizwan Bashir
Nikolay
Telerik team
 answered on 12 Apr 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?