Is there a way to remove tabstops on some column's cells and not others?
Many of the users will only be using a keyboard and the form I'm building has a gridview with only 2 columns out of 12 that only need to tabbed through.
GridGroupByExpression groupExprCol1 =
new
GridGroupByExpression("col_1 Group By
col_1");
grid1.GroupDescriptors.Add(groupExprCol1);
GridViewSummaryItem
sumItemValue =
new
GridViewSummaryItem(
"value"
,
"{0,12:#,0;(#,0)}"
,
GridAggregateFunction.Sum);
GridViewSummaryRowItem sumGroupCol1 =
new
GridViewSummaryRowItem();
sumGroupCol1.Add(sumItemValue);
grid1.MasterTemplate.SummaryRowsBottom.Add(sumGroupCol1);
Col 1 | Col 2 | Value |
AA | Yes | 1 |
AA | No | 2 |
AA | No | 2 |
AA | Yes | 5 |
Total AA: | 10 | |
BB | No | 3 |
BB | No | 2 |
Total BB: | 5 | |
CC | Yes | 4 |
Total CC: | 4 |
Either this is a bug or I'm doing something really, really silly! My money's on the 2nd option :)
I have a grid with a GridViewImageColumn that I have to set .IsVisible = False.
No matter what I do, it flips back to 'True'
What am I doing wrong?
BTW - This happens both at-runtime (dynamically setting the IsVisible property for this column = False does nothing) AND it happens at design time: You can load up the grid, select the Columns property, select the GridViewImageColumn and try changing IsVisible from True to False. Doesn't work :(
Any help would be very much appreciated!
-Curtis
Hi,
I'm working with a RadGridView and add a Template on it with :
GridViewRelation relation = new GridViewRelation(gridView.MasterTemplate, template);
Then I'm trying to customize the view of my gridview because I would like delete all borders on my Template.
I'm trying to do that but it's not enough to delete all borders. What I could do more ?
private
void
gridView_ViewCellFormatting(
object
sender, CellFormattingEventArgs e)
{
GridDetailViewCellElement childCell = e.CellElement
as
GridDetailViewCellElement;
GridGroupExpanderCellElement expanderCell = e.CellElement
as
GridGroupExpanderCellElement;
if
(e.CellElement.ViewTemplate.Parent !=
null
)
{
e.CellElement.BorderBoxStyle = BorderBoxStyle.SingleBorder;
e.CellElement.BorderWidth = 0;
e.CellElement.Padding =
new
Padding(0);
}
else
if
(childCell !=
null
)
{
childCell.BorderBoxStyle = BorderBoxStyle.SingleBorder;
childCell.BorderWidth = 0;
childCell.Padding =
new
Padding(0);
childCell.PageViewElement.Header.Visibility = ElementVisibility.Collapsed;
childCell.GridViewElement.DrawBorder =
false
;
childCell.GridViewElement.GroupPanelElement.DrawBorder =
false
;
RadPageViewStripElement stripElement = childCell.PageViewElement
as
RadPageViewStripElement;
if
(stripElement !=
null
)
{
stripElement.DrawBorder =
false
;
stripElement.BorderBoxStyle = BorderBoxStyle.SingleBorder;
stripElement.BorderWidth = 0;
foreach
(RadPageViewItem item
in
stripElement.Items)
{
item.MaxSize =
new
Size(0, 1);
item.Visibility = ElementVisibility.Hidden;
}
}
}
Thanks for your help,
Simon
Fluent with RadRibbonBar : Down Arrow to Items always visible event if no item in list
Included a screen shot, mouse over nor mouse click on the down arrow shows anything (normal cause it's empty)
Here's my designer's part that was generated:
//
// radRibbonBar2
//
this
.radRibbonBar2.ApplicationMenuAnimantionType = Telerik.WinControls.UI.FadeAnimationType.None;
this
.radRibbonBar2.BackColor = System.Drawing.Color.FromArgb(((
int
)(((
byte
)(191)))), ((
int
)(((
byte
)(219)))), ((
int
)(((
byte
)(254)))));
this
.radRibbonBar2.CommandTabs.AddRange(
new
Telerik.WinControls.RadItem[] {
this
.radRibbonBarCommandTab2,
this
.ribbonTab2,
this
.ribbonTab1});
this
.radRibbonBar2.ExitButton.Text =
"Exit"
;
this
.radRibbonBar2.Location =
new
System.Drawing.Point(0, 0);
this
.radRibbonBar2.Name =
"radRibbonBar2"
;
this
.radRibbonBar2.OptionsButton.Text =
"Options"
;
this
.radRibbonBar2.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren;
this
.radRibbonBar2.Size =
new
System.Drawing.Size(1096, 171);
this
.radRibbonBar2.StartButtonImage = global::MorneauShepell.Parametrization.Windows.Forms.Properties.Resources.ArielWhite;
this
.radRibbonBar2.TabIndex = 2;
this
.radRibbonBar2.Text =
"ArielVal"
;
this
.radRibbonBar2.ThemeName =
"Fluent"
;
((Telerik.WinControls.UI.RadRibbonBarElement)(
this
.radRibbonBar2.GetChildAt(0))).Text =
"ArielVal"
;