Telerik Forums
UI for WinForms Forum
4 answers
433 views
Hello,

I have built an application that uses the Winform version of both RadDock ToolWindows and RadDock DocumentWindows inside of a RadDock container.

Each of these RadDock DockWindows has a single textbox control or custom UserControl in it, with:

singleDockedControl.Dock = DockStyle.Fill;

The problem I am having is that when I expand/maximize the entire WinForm, the DocumentWindows and ToolWindows expand nicely, but the controls inside them look "cut off" on the righthand size... a textbox with a  long line of text gets cut in half, and the last half of the line of text is not visible on the containing DockWindow, even though there is lots of empty white space on the righthand side of the containing DockWindow.  It appears that the textbox grows correctly, due to its Dock = DockStyle.Fill, but the righthand side of the DockWindow doesn't get repainted to show it.  This problem doesn't happen when a textbox or UserControl is placed directly on a test Winform that is expanded/maximized. 

Does anybody know what I can do to fix this problem?

Thank you very much in advance for your help!

Brook
Stefan
Telerik team
 answered on 11 Aug 2011
2 answers
212 views
Hi i fill the treeview via code and works well, but i need a way to asign a icon from a assigned imagelist on the nodes.
The Data assignemend is:

- ChildMember = id
- DisplayMember = Label
- ParentMember = pid
- Tag = ImageKey
- ValueMember = ImageKey

I have tested with the tag and the valuemember fields without success, the tag field is allways empty :(

I have tryed to assign the CollectionChanged event, ut it does not fire when the datasource is bound... !?

 

radTreeView1.Nodes.CollectionChanged  += new Telerik.WinControls.Data.NotifyCollectionChangedEventHandler(Nodes_CollectionChanged); 
          List<TreeItem> items = new List<TreeItem>();
          {
              TreeItem t1 = new TreeItem();
              t1.id = 1;
              t1.Label = "Home";
              t1.ImageKey = "airplane";
              items.Add(t1);
          }
          {
              TreeItem t1 = new TreeItem();
              t1.id = 2;
              t1.pid = 1;
              t1.Label = "Level 2";
              t1.ImageKey = "comments";
              items.Add(t1);
          }
          radTreeView1.ValueMember = "id";
          radTreeView1.ParentMember = "pid";
          radTreeView1.DisplayMember = "Label";
          radTreeView1.Tag = "ImageKey";
          radTreeView1.DataSource = items;

 

 

 

void Nodes_CollectionChanged(object sender, Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e)
       {
               RadTreeNode n = ((RadTreeNode)e.NewItems[0]);
               ((RadTreeNode)e.NewItems[0]).ImageKey = n.Tag.ToString();
           
       }

public class TreeItem
   {
       public int id { get; set; }
       public int pid { get; set; }
       public string Label { get; set; }
       public string ImageKey { get; set; }
   }

Any help would be great
Thx
Volkan Senguel

Stefan
Telerik team
 answered on 11 Aug 2011
1 answer
374 views
Hi,

How can i scroll to bottom of the grid?

I need to see child template of a new row.

With the following code i only see the new row.

grid.TableElement.ScrollToRow(e.Row);

Thanks.
Agustín Gómez
Top achievements
Rank 1
 answered on 10 Aug 2011
1 answer
177 views
I have an need to change the tabstrip backcolor to something other than the theme color when there is certain information in a tab. So far I have been able to use this:

Dim pageViewStripElement = TryCast(DirectCast((tcOrganization.ViewElement).ContentArea, Telerik.WinControls.UI.RadPageViewContentAreaElement).Owner, RadPageViewStripElement)
                DirectCast(pageViewStripElement, Telerik.WinControls.UI.RadPageViewElement).Items(1).NumberOfColors = 1
                DirectCast(pageViewStripElement, Telerik.WinControls.UI.RadPageViewElement).Items(1).BackColor = Drawing.Color.Yellow

That works fine if you mouse over the tab button but I want it to stay that color even in a state that is not moused over or selected.  How can I accomplish this without out using the theme builder.  I need to be able to have this happen for separate tabs on different forms so being able to accomplish this programatically is a must.  Thanks for any help!

Stefan
Telerik team
 answered on 10 Aug 2011
4 answers
167 views
Dear Telerik Team,

I'm current using Q1 2011 SP with VS2008. When applying the  example in the help file for the RadScheduler to translate the RadScheduler strings and in example:

RadSchedulerLocalizationProvider.CurrentProvider =

New CustomSchedulerLocalizationProvider

Everything appears translated in the local language except the days of the week in RadScheduler's header columns which are still in English:
Monday, Tuesday, Wednesday...
Is it possible to programmatically change the text of these header columns?

Best regards,
Alain

 

Boryana
Telerik team
 answered on 10 Aug 2011
1 answer
346 views
Hello,

I am using a lot of Rad buttons in my application. I change the back color of the buttons based on some conditions the following code:

.ButtonFillElement.BackColor = Color.LightGreen;
.ButtonFillElement.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
.ForeColor = Color.Black;

My questions is how do i set these properties back to the default ones within code. I want the buttons to get the default theme of the application when the condition turns false.

Thanks,
Pawan 
Stefan
Telerik team
 answered on 10 Aug 2011
3 answers
202 views
Hello,
I implemented ColumnGroupsViewDefinition for my Grid (the same code in Telerik Q3 Demos - Grid View), but it's change RowHeight. I try to change f.e:
this.CollectionGrid.TableElement.RowHeight = 30;
this.CollectionGrid.TableElement.GroupHeaderHeight = 30;
            
this.CollectionGrid.TableElement.FilterRowHeight = 30;
               
this.CollectionGrid.TableElement.TableHeaderHeight = 30;
 
but it's not work. What is more i have problem with correctly filling header rows (screenshot- I deleted data).
Thanks for help.
Alexander
Telerik team
 answered on 10 Aug 2011
1 answer
177 views
I have several RadComboBoxes (Q2 2010). I have AllowShowFocusQues set to True, TabStop set to true & DropDownStyle set to DropDownList.

When I tab onto the field there is no change in the appearance of the combo box. I know I have focus because I can use the arrow keys to move through the list. I would have thought may do something like the DropDownList or button with a dotted box just inside the control's border.

The list does include a blank item that is shown initially. However even if I select a different item from the list, tab off and then back to the combo box there is no indication that the combo has focus.

Thanks!

Howard
Stefan
Telerik team
 answered on 09 Aug 2011
1 answer
178 views
Hi

I have created a GridViewComboBoxColumn using entity framework 4.0. I have attached the code that I have used that works fine.
I would like to know how I would get the same result when using entity framework 3.5. I have attached the entity that the grid is bound to.

Thanks
Celeste

 

 

 

 

 

 


Svett
Telerik team
 answered on 09 Aug 2011
1 answer
271 views
Hi,
 You have introduced a new property called 'Visibility.' How do you change that value programmatically? I would like to change it: lets say from initially 'Hidden' to 'Visible' in code.

Thank you,
Karl
Boryana
Telerik team
 answered on 09 Aug 2011
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?