Telerik Forums
UI for WinForms Forum
3 answers
199 views
Hi,

1. Is it possible to create a button (image button would be nice since the GridViewCommandColumn is just wrong for this, it should be a + and -) per row? I know you do not support Hierarchies but can I "infuse" a button?

2. On that button click I would like to increase the height of the Row to add a user control that will show details, pie charts, etc. This usercontrol should be as wide as the whole row (not only a cell).

I am thinking of hacking into  the source code but now when Q2 is comming up... well it would be better not to have to migrate that code every time a service pack or version of the Telerik controls is released.

Thanks,
/ jorge
Kannan Venkateswaran
Top achievements
Rank 1
 answered on 11 Jul 2008
3 answers
190 views
Hi,

I am using the desert theme. The RadListBox is not styled and the RadTextBox scrollbars are not either.

How do I accomplish this on the XML for the style (i have made a copy of the desert theme and have tweaked the XML to my needs.

Thanks,
- jorge
Nikolay
Telerik team
 answered on 11 Jul 2008
4 answers
255 views
Here's how to reproduce the issue.

1. Create a MDI parent form.
2. Create a MDI child form that inherits from Telerik.WinControls.UI.ShapedForm.
3. Set the shape property of the child form to RoundRectShape.
4. Open the child form from within the parent form.
5. Minimize the child form.

Notice the title does not show.

Is there any way around this issue?

Thanks.
Nikolay
Telerik team
 answered on 11 Jul 2008
1 answer
132 views
I am trying to populate a ComboBox with data from a access db. I have the following code that works in a normal combobox, but with the radcombobox does nothing:

                Dim ComboBox1 As New Telerik.WinControls.UI.RadComboBox 
 
                Dim cn As OleDbConnection 
                Dim connString As String = ligacao 
                cn = New OleDbConnection(connString) 
 
                cn.Open() 
                Dim da As New OleDb.OleDbDataAdapter(sql, cn) 
 
                Dim ds As DataSet = New DataSet 
                da.Fill(ds, "Tabela"
 
                With ComboBox1 
                    .DataSource = ds.Tables(0) 
                    .DisplayMember = "D1" 
                    .ValueMember = "D2" 
                End With 

Can you tell me what I have to change to make it work?

Thanks
Martin Vasilev
Telerik team
 answered on 11 Jul 2008
1 answer
385 views
Hi All,
I use the RadGridView to show text that is sometimes longer than the original cell. Since the complete text does not fit into the cell I decided to show a tool tip by using the ToolTipTextNeeded event. The problem is that this event only allows me to set a text for the tool tip. The tool tip itself disappears after only 5 seconds which makes it quite unusable for my implementation.
To find out why I cannot set an AutoPopDelay for the displayed tooltip I used a bit of Reflector magic and found out that the RadToolTip class being used is internal as well as the property that holds the tool tip for the cells. This is a bit stupid because now I can't even derive my own class.
In the end I decided to force the required values into the grid by using reflection but of course this is not the best way to solve this problem.
Shouldn't the ToolTipTextNeededEventArgs expose far more properties of the original tooltip or the entire tool tip itself?
Just in case someone else is having the some problem, I'll post my ToolTipTextNeeded event handler here:
private void gviAufgaben_ToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)  
        {  
            GridDataCellElement cell = sender as GridDataCellElement;  
            if (cell != null)  
            {     
                ComponentBehavior behavior = cell.ElementTree.ComponentTreeHandler.Behavior;  
                PropertyInfo tooltip = behavior.GetType().GetProperty("ToolTip", BindingFlags.NonPublic | BindingFlags.Instance);  
                object tip = tooltip.GetValue(behavior, null);                
                PropertyInfo autoPopDelay = tip.GetType().GetProperty("AutoPopDelay");  
                autoPopDelay.SetValue(tip, 60000, null);                  
                e.ToolTipText = cell.Value.ToString();                
            }             
        } 

I hope that someone can come up with a better suggestion.
Thanks,
Sebastian
Martin Vasilev
Telerik team
 answered on 11 Jul 2008
3 answers
688 views
Hi,

I have a page that contains two data grid view controls. Both the Grid View Controls are sharing a common Context Menu. When i Select any Context menu item(let's Say Copy) i need to know which Data Grid View Control opened up the Context menu. So when the MenuItem Click event is fired i need to know the event is fired on which Grid.....

Could any body please help me out..

Any kind of help is appreciated.

Sasmita
Martin Vasilev
Telerik team
 answered on 11 Jul 2008
1 answer
134 views
I would have thought that the Text property will set the caption of the grid but it does not do it. Any idea what is the use of Text property?

More important how do I set the caption for the grid ( other than putting a separate label on the top og the grid )
Nikolay
Telerik team
 answered on 11 Jul 2008
1 answer
150 views
I am trying to persist the layout of all panels to disk whenever they are closed. I'm running into a few issues (which may be moot if there is an easy way/pattern to persist to disk which I just overlooked).

I have a DockPanel which contains a user control with its own DockingManager and DockPanels. In an ealier thread (and based on my experience) I know that the Closed event does not get called on the subordinate DockPanels. That's ok, I can work around that.

The problem I have now is that *I'm* trying to call a method on all subordinate DockPanels and I cannot find them all. Here's what I'm doing:

//This part is called on the parent DockPanel,
//which is subclassed to support the "Save" method to persist to disk
  private void SubClassedDockPanel_Closed(object sender, EventArgs e)
  {
   this.Save();
   this.SaveAllChildren(this.Controls);

   if (AfterClosed != null)
   {
    AfterClosed(sender, e);
   }
  }

  private void SaveAllChildren(ControlCollection controls)
  {
   foreach (Control c in controls)
   {
    SaveAllChildren(c.Controls);

    if (c as IDockManager != null)
    {
     IDockManager dManager = c as IDockManager;
     foreach (IDockingSite site in dManager.DockingSites)
     {
      foreach (IDockable panel in site.ManagedDockables)
      {
       if (panel as SubClassedDockPanel != null)
       {
        (panel as SubClassedDockPanel).Save();
       }
      }
     }
     return;
    }
   }
  }

basically I look for any DockingManagers in the parent DockPanel's controls and then iterate over all of their ManagedDockables in all the DockingSites. This works with the exception of when I AutoHide a child DockPanel.

There are a few difficulties I've encountered regarding "AutoHide". First is that it causes the Closed event to fire on the child panel that is being unpinned. I'd like to understand why this is happening, and (leading into my second difficulty) where does it go? The algorithm above will not find the autohidden DockPanel.

Any assistance is greatly appreciated, I know I've posted a few questions today,
Sid

Julian Benkov
Telerik team
 answered on 11 Jul 2008
2 answers
109 views
I have a DockPanel, created at runtime, which contains a user control with its own DockingManager and DockPanel layout. If I float any of the child DockPanels and then try to reattach them to their original location I have to perform the operation twice. The first time the window moves near the button on the assistant, and the second time it actually locks into place.
Julian Benkov
Telerik team
 answered on 11 Jul 2008
12 answers
601 views
hi,

    I want to draw a Gantt chart with date on X-axis, Time on Y-axis.
    I need to get all the values from XML.
    Can u share some sample code to draw a Gantt chart like for a particular day from one particular time to another particular time.?
how i need to write a XML so that the chart can bind the XML data to the chart?

ex:  on 02-06-2008 i should plot the gantt chart from 5:00 P.M to 7.00 P.M

help is highly appreciated.

regards,
chandra

Dwight
Telerik team
 answered on 11 Jul 2008
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?