Hello,
why isn't my header shown like inside the designer?
Thank you for helping.
Regards
I have a business object ,
public
class
Person
{
public
string
Name {
get
;
set
;}
public
bool
Show {
get
;
set
;}
public
class
Company {
get
;
set
;}
}
public
class
Company
{
public
string
Name {
get
;
set
;}
public
string
Address {
get
;
set
;}
}
I expect that Company will hide when the Show is false, and vise versa.
I have a customize object just like this.
01.
public
class
Person
02.
{
03.
[CategoryAttribute(
"Personal Info."
)]
04.
public
Name Name {
get
;
set
; }
05.
[CategoryAttribute(
"Personal Info."
)]
06.
public
int
Age {
get
;
set
; }
07.
[CategoryAttribute(
"Profession Info."
)]
08.
public
Profession Profession {
get
;
set
; }
09.
}
10.
11.
public
class
Profession
12.
{
13.
private
Title title_;
14.
15.
public
string
Company {
get
;
set
; }
16.
public
string
Address {
get
;
set
; }
17.
public
Title Title
18.
{
19.
get
{
return
title_; }
20.
set
21.
{
22.
title_ = value;
23.
if
(title_ == Title.Manager)
24.
{
25.
// hide property subordinates
26.
}
27.
else
if
(title_ == Title.Developer)
28.
{
29.
// show property subordinates
30.
}
31.
}
32.
}
33.
34.
public
List<Person> Subordinate {
get
;
set
; }
35.
}
Is there a way to show or hide Subordinate according to the property Title? When I selected the Title with Manager, the subordinate will appear. When I selected the Title with Developer, the subordinate will hide.
I have a hierarchy
public
class
Corner
{
public
string
Name {
get
;
set
; }
}
public
class
Fillet : Corner
{
public
double
Radius {
get
;
set
; }
}
public
class
Chamfer : Corner
{
public
double
Distance1 {
get
;
set
; }
public
double
Distance2 {
get
;
set
; }
}
and a business object,
public
enum
CornerMode
{
Fillet,
Chamfer
}
public
class
CornerAttribute
{
public
CornerMode CornerMode {
get
;
set
;}
public
Corner Corner {
get
;
set
;}
}
I will assign a subclass instance according to the CornerMode. How to switch the type convert at runtime so that the property Corner can be expandable?
I'm not sure why this is showing up... How to not show gridview when hovering over an appointment
Second question: In the radScheduler1_AppointmentResizeEnd routine - how do I get the value for the new Start and End time after the appointment has been resized?
Thank you in advance for your assistance
I would like to know if it's possible to bind extra values other than DataTextField and DataValueField. I am using SQLDataSource.
Thanks!
I am trying to improve performance when I set GridViewColumn.IsVisible. Whenever I set that property, the ViewCellFormatting event is invoked by the grid.
I need to make several column invisible at the same time. I tried using BeginUpdate..EndUpdate and that doesn't seem to have an effect. I would like to set several columns invisible by invoking the GridViewColumn.IsVisible property without the ViewCellFormatting event from being raised for each one.
Thanks in advance,
Jim
Hello
I have a grid view where I perform Cell validation and I change the Error Icon
This grid has EnterKeyMode set to EnterMovesToNextRow
When I enter an invalid value in a cell and validate by clicking on another cell I get the proper response, i.e. Error Message and modified error Icon
but When I validate the entry with a "Return" I get the error message but the error Icon remains the default and is not changed to my custom error Icon
Also, when I validate with Enter I get a "beep" but not when I validate by selecting another cell
Here is my code for changing the error Icon
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Private Sub gvPrize_ViewCellFormatting(sender As Object, e As CellFormattingEventArgs) Handles gvPrize.ViewCellFormatting
'Change Row Error Icon
If e.RowIndex > -1 Then
If TypeOf e.CellElement Is GridRowHeaderCellElement Then
Dim aCell As GridRowHeaderCellElement = CType(e.CellElement, GridRowHeaderCellElement)
Dim ip As ImagePrimitive = CType(aCell.Children(0), ImagePrimitive)
If ip.Image IsNot Nothing Then ip.Image = My.Resources.v2_error_16
End If
End If
End Sub
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hi Telerik,
RadGridView allowed (albeit didn't function neat enough) to add a set of columns under a viewdefinition in order to show them as grouped. Is there a proper way of achieving this in RadVirtualGrid? If the feature doesn't exist now, can you advise me on how to achieve this by additional GDI rendering ?
Thank you,
Saj.