Telerik Forums
UI for WinForms Forum
2 answers
171 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
341 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
145 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
138 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
298 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
165 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
144 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
123 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
218 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
2 answers
261 views
Hi,
I am creating a dynamic form and after adding dynamic controls but i receive this message (" The best overloaded method match for 'System.Windows.Forms.Control.ControlCollection.Add(System.Windows.Forms.Control)' has some invalid arguments  ")
and (" cannot convert from 'Telerik.WinControls.UI.RadGroupBox' to 'System.Windows.Forms.Control' ")

Here is the code:
Form frm = new Form();
RadGroupBox groupb = new RadGroupBox();
frm.Controls.Add(groupb);

Can you help me?
Stefan
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)
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?