public
class
TreeEditor : BaseGridEditor
{
protected
override
RadElement CreateEditorElement ()
{
RadTreeViewElement treeViewElement =
new
RadTreeViewElement ();
//BindData (treeViewElement); // This doesn't work
LoadData (treeViewElement); // This displays data
return
treeViewElement;
}
private
static
void
BindData(RadTreeViewElement treeViewElement)
{
List<NodeData> Nodes =
new
List<NodeData>();
NodeData root =
new
NodeData() { ID = 0 };
root.Children.Add(
new
NodeData() { ID = 1 });
root.Children.Add(
new
NodeData() { ID = 2 });
Nodes.Add(root);
treeViewElement.DataSource = Nodes;
treeViewElement.DisplayMember =
"ID\\ID"
;
treeViewElement.ChildMember =
"Nodes\\Children"
;
}
private
static
void
LoadData (RadTreeViewElement treeViewElement)
{
RadTreeNode root = treeViewElement.Nodes.Add (
"Root"
);
root.Nodes.Add (
"First"
, 1);
root.Nodes.Add (
"Second"
, 1);
}
public
override
object
Value
{
get
{
RadTreeViewElement editor = (RadTreeViewElement)
this
.EditorElement;
if
(editor.SelectedNode ==
null
)
return
string
.Empty;
return
editor.SelectedNode.ToString ();
}
set
{
//TODO: ?
}
}
}
I am using a PivotFieldList associated to a PivotGrid which is bound to an in-memory table.
The Grid and the Field List work OK, but my problem is my table has too many columns. More than 200.
This make it a bit difficult for the user to choose fields from the field list.
I was wondering if there is a way to group fields in the PivotFieldList. Something like the "date" fields. Each group would be a node opening on user click and showing the available column.
On my grid I am grouping by one field, and have gridview1.mastertemplate.ShowTotals = True so that I can show a grand total for columns when that grid is grouped. My issue is that I need to change the appearance of the grand total row differently than the other (group) summary rows in ViewCellFormatting. Is this possible, and if so how can I do it?
Thanks
Hello
What is the best way to adapt the text of the default context menu of a treeview ? I know that I could change the text property of each item on the ContextMenuOpnening but a more global solution as a Localization Provider will be welcome.
Thanks for your support
Hi,
I'm using a graph in wich i specified an horizontal DatetimeCategoricalAxis.
I have a the first axe label trucated (attaced file).
Is it possible to fix this issue without changing the "LabelRotationAngle" value ?
Regards,
Mathieu
Hi,
I need to customize the filter popup to add some new choices.
I've tried to add item this way :
private void radGrid_FilterPopupRequired(object sender, FilterPopupRequiredEventArgs e)
{
var popUp = e.FilterPopup as RadListFilterPopup;
if (popUp == null)
return;
var rmiSortByColor = new RadMenuItem("Sort by color");
popUp.Items.Insert(0, rmiSortByColor);​
[...]
Unfortunally, as you can see in the provided screenshot, the item is very huge, and the height increase proportionally when I resize the popup.
I have the exact same problem when I add a simple separator.
Did I miss something ?
Why u delete my post-question without explanation ?
Just wonder.
Dear this is wamiq
i have a problem in my rich text editor when i am using arabic font , actually the sceerio is that when i paste arabic text into my rich text editor and then try to change it to other arabic font from the font dropdown up in the main menu of rich text it's destroying all the text,,
Can you please assist me im attaching image for reference