Telerik Forums
UI for WinForms Forum
14 answers
229 views
I'm trying to implement a custom TreeView editor on the GridView and I'm experiencing two problems.
1. My editor is confined to the size of the cell and it needs to be much larger than that
2. When I attempt to data bind the control nothing is displayed.

Sample code:
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: ?
              }
          }
      }
Hristo
Telerik team
 answered on 07 Sep 2015
3 answers
185 views

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.

 

Hristo
Telerik team
 answered on 07 Sep 2015
1 answer
144 views
# Context
- Using RadGridView
- Having a column named "MyDataColumn", which contains different decimal values, including zero.
- Using UI, add filter on "MyDataColumn" : "Greater than: 0"
- Added a calculated column named "MyCalculatedColumn", using expression "MyDataColumn / MyDataColumn".
- Note that, at this point, it doesn't crash since we added the "Greater than: 0" filter on "MyDataColumn" ... without that filter, it will crash, as we all know division by zero is impossible.

# Behavior
- Using UI, add a filter on "MyCalculatedColumn"
- Application crash
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Sep 2015
2 answers
153 views

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

William
Top achievements
Rank 1
 answered on 03 Sep 2015
4 answers
484 views
When in the edit mode, GridSpinEditor inside RadGridView allows the numeric value to change by scrolling mouse centerl scroll wheel. I need to disable this. How can I disable this feature?

This feature lets the users to scrolldown to negative values, which is not desirable.

Thanks.
Jose
Top achievements
Rank 1
 answered on 03 Sep 2015
2 answers
125 views

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

Marco
Top achievements
Rank 2
Veteran
 answered on 03 Sep 2015
1 answer
112 views

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

Dimitar
Telerik team
 answered on 03 Sep 2015
2 answers
100 views

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 ?

Grégory
Top achievements
Rank 1
 answered on 02 Sep 2015
1 answer
82 views

Why u delete my post-question without explanation ?

Just wonder.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Sep 2015
3 answers
398 views

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

Hristo
Telerik team
 answered on 01 Sep 2015
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?