Hello,
I try to use custom cells dynamically following data I want to display ( use checkbox when data is boolean). To do so I use CreateCellElement to instantiate my custom cell but it appears to this event is not fired on that specific column and the column have default display with "True" and "False" instead of check boxes.
Here is a part of my code :
this
._radVirtualGrid1.CreateCellElement += onGridCellTypeNeeded;
private
void
onGridCellTypeNeeded(
object
sender, VirtualGridCreateCellEventArgs e)
{
if
(e.ColumnIndex >= 0 && e.RowIndex >= 0)
{
DataType type = myDataDescriptor.getDataType(e.ColumnIndex);
switch
(type )
{
case
DataType.Bool:
e.CellElement =
new
CheckBoxCellElement(e.ColumnIndex);
registerCustomColumnIfNeeded(e.ColumnIndex);
break
;
}
}
}
Do you know how to fix it ?
Regards,
Amand.
Hello,
I was wondering if anyone could help me set the rendering of text and graphics of my radchartview to antialiasing? I know there is a enum called TextQuality, but I am not sure how to access it.
Thank you,
Erkin
I'm new to the Virtual Grid. I can't seem to figure out how to allow the user to reorder the columns. Because the columns are built based on the OnCellValueNeeded event, I assume the reordering will have to be done here. But how can I show the dragging of a column and detect where it was dropped?
Hello,
I am trying to implement a hide/show option on column. For now, I implemented a contextual menu option to do it and as a workaround I set column size to 0 to hide it but it leads to weird display (cf attached image (with 10 hidden columns)). Do you know a better workaround to avoid this display ?
Regards,
Amand
I am working on a template editor, so I have a simple layout with a RadGridView on the left, and a RichTextEditor on the right. When the row gets changed, I load a template into the the RichTextEditor. The editor is readonly (the template is edited in a different window). How can I change the zoom level to automatically show two full pages.
Here's what I have when I load the template the first time http://i.imgur.com/a8vyyov.png
And here's what I can see when I hold ctrl and use the mousewheel to zoom in 1 level. http://imgur.com/angvElk.png
I am looking for something in the middle, where I can see 2 pages, and it takes up 100% of the space available.
Thanks!
I am adding a new tab to the RichTextEditorRibbonBar like this:
var lblTempalteName =
new
RadLabelElement() {
Text =
"Template Name:"
,
AutoSize =
false
,
Size =
new
Size(120, 20)};
var tbxTemplateName =
new
RadTextBoxElement() {
Size =
new
Size(100, 25),
Padding =
new
Padding(2) };
var templateNameGroup =
new
RadRibbonBarButtonGroup();
templateNameGroup.Items.AddRange(
new
RadItem[] { lblTempalteName, tbxTemplateName });
var lblDataSource =
new
RadLabelElement() {
Text =
"Data Source:"
,
AutoSize =
false
,
Size =
new
Size(120, 20)};
var ddlDataSource =
new
RadDropDownListElement() {
Size =
new
Size(100, 25),
DropDownStyle = RadDropDownStyle.DropDownList };
var dataSourceGroup =
new
RadRibbonBarButtonGroup() { Margin =
new
Padding(0, 3, 0, 0) };
dataSourceGroup.Items.AddRange(
new
RadItem[] { lblDataSource, ddlDataSource });
var rbgProperties =
new
RadRibbonBarGroup()
{
Text =
"Properties"
,
Orientation = Orientation.Vertical
};
rbgProperties.Items.AddRange(
new
RadItem[] { templateNameGroup, dataSourceGroup });
var templatePropertiesTab =
new
RichTextEditorRibbonTab() { Text =
"Template properties"
, IsSelected =
false
};
templatePropertiesTab.Items.Add(rbgProperties);
richTextEditorRibbonBar1.CommandTabs.Add(templatePropertiesTab);
The tab that I am adding becomes selected, which isn't what I want. How do I ensure that the "Home" tab is selected. Here's what I tried, but it doesn't work.
foreach
(RibbonTab item
in
richTextEditorRibbonBar1.CommandTabs)
{
item.IsSelected = (item.AccessibleName ==
"Home"
);
}
richTextEditorRibbonBar1.Refresh();
Dave