How can I display multiple lines of text in a column group header? I can't see my "Line2" text in the sample below
public
Form1()
{
InitializeComponent();
ColumnGroupsViewDefinition view =
new
ColumnGroupsViewDefinition();
List<String> cols =
new
List<
string
> () {
"column2"
,
"column3"
};
view.ColumnGroups.Add (CreateColGroup (cols,
"Customer Contact"
));
view.ColumnGroups.Add(CreateColGroup(
new
List<
string
> (){
"DNE"
,
"column1"
},
""
));
this
.radGridView1.ViewDefinition = view;
}
private
GridViewColumnGroup CreateColGroup (List<
string
> cols,
string
groupName)
{
var colGroup =
new
GridViewColumnGroup(groupName);
var groupRow =
new
GridViewColumnGroupRow();
foreach
(var colName
in
cols)
{
if
(
this
.radGridView1.Columns[colName] !=
null
)
{
groupRow.Columns.Add (
this
.radGridView1.Columns[colName]);
}
}
foreach
(var col
in
groupRow.Columns)
{
col.HeaderText +=
"\n Line2"
;
}
colGroup.Rows.Add(groupRow);
return
colGroup;
}
I am using the Visual Style Builder to make a theme based on the Metro Blue theme that is built-in. I am trying to change the color (currently light blue) that appears as the top border of all RadForms. However, when I go to RadForm->TitleBar->TitleBorder element and change the TopColor and TopShadowColor properties the RadForm Title bar is no longer displayed. I have attached before and after screenshots. I checked and some of the other property values change as a result of changing the TopColor property but I set them back to their previous values but the title bar is no longer displayed.
Am I missing something?
Hi,
I used DayView to display appointment for selected day in RadCalendar. Here are my code:
radScheduler.GetDayView().StartDate = ucPageCalendars.RadCalendar.SelectedDates[0];
radScheduler.GetDayView().DayCount = ucPageCalendars.RadCalendar.SelectedDates.Count;
if many days are clicked, I want scheduler have the scrollbar like attached image. There is anyway to do this.
Looking forward for your answer,
Pham Thanh.
Hi Telerik team,
What would be the best way to assign a shortcut key to a CollapsiblePanel?
The down below lines did not work for me!.
RadShortcut shortcut1 =
new
RadShortcut(Keys.None, Keys.F4);<br>
this
.radCollapsiblePanel1.RootElement.Shortcuts.Add(shortcut1);<br>or<br>
this
.radCollapsiblePanel1.CollapsiblePanelElement.Shortcuts.Add(shortcut1);<br>
Hi,
There is any way to show a whole week on a day view as the attached image?
Looking forward for your answer,
Pham Thanh.
Hello,
I am new to Telerik, so maybe there was an answer to this subject, but couldn't find it. So what I need is auto height of autocompletebox. So when new box is set to new line, I want the whole control to change height, up to maximum 4 lines (then vertical scrollbar shoud show up). But also if I delete some of the boxes, the control should lower it's height.
I tried with
private void VScrollBar_ValueChanged(object sender, EventArgs e)
{
this.radAutoCompleteBox1.TextBoxElement.VScrollBar.Value = 0;
this.radAutoCompleteBox1.Size = new Size(this.radAutoCompleteBox1.Size.Width, this.radAutoCompleteBox1.Size.Height + 10);
}
but it can only increase height, but cannot decrease height. I also tried to get number of lines, but it is always 0.
Thanks
Ivan
Hello,
I have a RadListView with custom VisualItem (see first png) and my goal is to remove the highlight on selected item. Is there a way how to disable this feature in program so I dont have to create new theme?
And second question is about that little X buttons, I want to assign them a theme, but they are not RadButtons, but RadButtonElements and they seems to have no Theme property.
Thank you.
Hello Team Telerik,
I want to ask how can I have a 3D chart. How can I do this?
Is there a property which set the chart in a 3D mode?
Another Problem I have is that I cant add a radLabel to a radGroupBox programatically.
Thanks very much
Kind regards,
Alfonsina
Hi All.
I am working with Telerik 2012 Q1. I have used a RadDataGridView. I am facing a problem here.
When i am trying to navigate from one cell to another cell, by using Tab Key. It is not working. But It is navigating using arrow Key.
Please help me, what i am missing here .
I need an immediate help.
Thanks
Neel