Telerik Forums
UI for WinForms Forum
4 answers
190 views
Hi,

I'm rather new to the controls (specifically the ribbon) and I'm trying to achieve the Office 2010 look. I used that theme which turns the main application button into a dark blue folder tab. I would like to print "File" in white on this button.

I have found in the UI Elements for the control that I can set the RadApplicationMenuButtonElement.DisplayStyle to Text, change the Forecolor to white, and change the Text to "File". This appears to work in design, but when I run the application and apply the theme, it goes away.

Furthermore I need to support multiple languages, so I would like to set "File" from a language file.
Does anyone know how to get to the UI elements from source code?

Thanks.
Jason
Jason
Top achievements
Rank 1
 answered on 27 Dec 2011
1 answer
98 views
I want to move the controls in the Recurrence Edit Dialog

I want to move  the Setting controls in the Recurrence pattern GroupBox
Example:
Selected Yearly
The First  Day of  January 
Move to 
of  January  the  First  Day

sorry for my poor English
Ivan Todorov
Telerik team
 answered on 27 Dec 2011
3 answers
659 views
In RadGridView, I am trying the following:

1.  When the row is clicked/selected, show 1 color. - Telerik grid had a default color, when i went to grid's row formatting  event:

 if (e.RowElement.IsSelected)
            {
                e.RowElement.GradientStyle = GradientStyles.Solid;
                e.RowElement.BackColor = System.Drawing.Color.Red;
                e.RowElement.DrawFill = true;
            }

The issue is first row is selected as default when the grid is bound, when i click any rows , the first row that is already selected still shows as selected (although multiselect is false for the grid.), how do i not select first row, if any new row is clicked?

2. Also when i select/click on the row, always the first cell is highlighted, how do i disable that?
Svett
Telerik team
 answered on 27 Dec 2011
13 answers
219 views

Hi!

 

How can I change size of GridDetailViewRowElement/GridDetailViewCellElement?

Default size is too thick for me.

 

Regards

Ebrahim
Top achievements
Rank 1
 answered on 27 Dec 2011
1 answer
221 views
Hi

I have 

 Dim cResolved As New ConditionalFormattingObject("Resolved", ConditionTypes.Equal, "Resolved", "", True)
    cResolved.RowForeColor = Color.DarkGreen
        cResolved.CellForeColor = Color.DarkGreen
        dgServices.Columns("Status").ConditionalFormattingObjectList.Add(cResolved)

And this works great. How would I add another condition to this so 

"Status = Resolved" AND ResolveUser="USER"

Thanks in advance
Stefan
Telerik team
 answered on 27 Dec 2011
6 answers
368 views
Hey all,
My apologies if this has already been posted - I swear I couldn't find it.

Using the Q3 2011 controlls (2011.3.11.1116):
I'm binding an anonymous type to the DataSource of a radDropDownList and getting an interesting (if unwanted) result.  After the binding the first value in the list is selected (which is good), however, the text instead shows the prototyping for the anonymous type.  I feel this is best to show in code, so here's an example.

If I'm doing something wrong please let me know.  Update() and Refresh() didn't seem to fix the issue.

Thanks,
-Al
private class TestClass
{
public int Id { get; set; }
public string NameVal { get; set; }
}
private void Form1_Load(object sender, EventArgs e)
{
var testItem1 = new TestClass() {Id = 1, NameVal = "One"};
var testItem2 = new TestClass() {Id = 2, NameVal = "Two"};
var test = new List<TestClass>() {testItem1, testItem2};
radDropDownList1.BeginUpdate();
radDropDownList1.DataSource = (from TestClass tc in test
select new {tc.Id, tc.NameVal});
radDropDownList1.DisplayMember = "NameVal";
radDropDownList1.ValueMember = "Id";
radDropDownList1.EndUpdate();
//radDropDownList1.Text = radDropDownList1.SelectedText; //This line is not equal to the following line...
radDropDownList1.Text = radDropDownList1.SelectedItem.Text; //This line is the fix, comment out to see bug
}
Peter
Telerik team
 answered on 27 Dec 2011
1 answer
120 views
Hi,

Whats the best method to Alternate column colors? Which method/event to use? And how? 
PS: I use ColumnGroups and ColumnGroupViewDefinition, and its those groups i want to alternate colors between.

Regards
Svein Thomas
Stefan
Telerik team
 answered on 26 Dec 2011
1 answer
180 views
Hello,

I use the treeview of version 2011 Q1.

I use the automatic databound method to populate the nodes. The source is a dataset with a child/parent structure.
I want to keep this way of processing because it's very fast. When I populate my treeview manually the process time very slow.

This is my code:

treeModules.DataMember = "treeNode";
  
treeModules.DisplayMember = "label";
  
treeModules.ValueMember = "id";
  
treeModules.ParentIDMember = "parent";
  
treeModules.DataSource = dsModuleXml;

Now I want to find a specific node by the tag property. This is not possible, because the function Find searches by name. Why is the name property empty when I use the automatic method?

Can anyone help me, thanks!
Stefan
Telerik team
 answered on 26 Dec 2011
1 answer
143 views
Hi,

It is possible to change Time Zone Label? By default it appears "Local" but i want to change to another string. In Scheduler picture attached, it is possible to see where is that "Local" label.
Ivan Todorov
Telerik team
 answered on 23 Dec 2011
1 answer
84 views
Hi,

I have the list of data on grid view with template fields.
I want to select the child rows if count is not equal to 0.
Whenever i populate the data, those child rows with count is 0 will be Hidden and IsSelected = false.
And those child rows with count is not 0 will be Visible and IsSelected = true.
My problem is the first child row to select is selected forever and unable to click.

private void raddgvHistory_ViewCellFormatting(object sender, CellFormattingEventArgs e)
    {
      GridDetailViewCellElement cell = e.CellElement as GridDetailViewCellElement;
      if (cell != null)
      {
        if (cell.PageViewElement != null)
        {
          bool IsSelected = false;
 
          for (int iRow = 0; iRow < cell.PageViewElement.Items.Count; iRow++)
          {
            GridViewInfo viewInfo = cell.PageViewElement.Items[iRow].Tag as GridViewInfo;
            if (viewInfo.ChildRows.Count == 0)
            {
              cell.PageViewElement.Items[iRow].IsSelected = false;
              cell.PageViewElement.Items[iRow].Visibility = ElementVisibility.Hidden;
            }
            else
            {
              if (!IsSelected)
                IsSelected = cell.PageViewElement.Items[iRow].IsSelected = true;
 
              cell.PageViewElement.Items[iRow].Visibility = ElementVisibility.Visible;
            }
          }
        }
      }
 
    }

Correct me if there are some problem with my code.
Currently using Q2
Jack
Telerik team
 answered on 23 Dec 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?