Telerik Forums
UI for WinForms Forum
0 answers
92 views

Hi,

I have a gridview with a child template (X) and another template (Y) into the child template (X) and have a decimal column in (Y).

I want to SUM the decimal column in (Y) into a cell of parent row in (X).

Thanks,,,

Ahmed
Top achievements
Rank 1
 asked on 29 Jul 2017
4 answers
119 views

The article here shows how to save state, but it fires them on manual changes, I am trying to detect when this repopulation is going to happen, I have other events unrelated to the UI that are changing the state of the object the treeview is bound to. and would like to be able to detect when that happens. 

http://docs.telerik.com/devtools/winforms/treeview/how-to/keep-radtreeview-states-on-reset

the overarching goal here, is to prevent the tree expanded state from resetting when the tree bound data is updated off the control.

Dimitar
Telerik team
 answered on 28 Jul 2017
0 answers
111 views
Hello
Why is there an empty txt in the selection of items?
k
Top achievements
Rank 1
 asked on 27 Jul 2017
7 answers
187 views
I have a treeview bound to a binding list, and I have noticed that when I add items to the binding list with a negative number (other than -1) as the parent ID, the treeview control clears out and shows just that node.  Does anyone know why this might be happening?  Thanks!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jul 2017
1 answer
112 views

If have a panorama on a form 

 

have groups in them with sections like 

Actions

-->tileCustomers

-->tileSuppliers

...

Settings

Maintenance

...

 

 

And a panorama2 called

 

having a group called Actions containing tiles of 

 

Add customer / edit customer etc.

 

 

want to show() when someone clicks on tile of  () panorama.

like a simple show/hide forms.

if hide() panorama1 and show()  it work as soon as hide panorama1 all is hidden.

 

Is there a simpler way of doing

 

basically trying to make a tile menu system where each menu has multiple sub menus, but not show all at once.

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jul 2017
9 answers
489 views
Hi i need this add new column which by set by another column for example

id text value new column
1 test1 yes combobox
2 test2 no button

so for one row is new column radcombobox ane for second row radbutton.
thx for help.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jul 2017
5 answers
338 views
Hi,

I work with radGridView and color some cells according to the option set by user. So I created a function to color/uncolor cell of the grid. Bellow the fonction to reset the color of the (second columns of the) grid :

private bool ResetCellsColor(RadGridView radGridView)
{
    Boolean ret = true;
 
    try
    {
        GridViewColumn gvc = null;
         
        if (radGridView.Columns.Count > 2)
        {
            gvc = radGridView.Columns[2] as GridViewColumn;
        }
 
        if (gvc == null)
        {
            ret = false;
        }
        else
        {
            for (int i = 0; i < radGridView.Rows.Count; i++)
            {
                if (radGridView.Rows[i].IsVisible)
                {
                    GridViewRowInfo gvri = radGridView.GridElement.GridViewInfo.Rows[i] as GridViewRowInfo;
                    if (gvri == null)
                    {
                        ret = false;
                        continue;
                    }
 
                    GridCellElement gce = radGridView.TableElement.GetCellElement(gvri, gvc) as GridCellElement;
                                                 
                    if (gce != null)
                    {
                        gce.ResetValue(VisualElement.ForeColorProperty);
                        gce.ResetValue(VisualElement.FontProperty);
                        gce.DrawFill = false;
                    }
                    else
                    {
                        ret = false;
                    }
                }
            }
        }
    }
    catch{ ret = false; }
     
    return ret;
}


This function work well in most of cases, but when I delete (all) the rows of my grid and add new ones and then call this function again, that doesn't work : the GridCellElement returns null. If I give the control to the user and then call again the function, it will work.
In my case, it works for the 4 first line of my radGridView (that contains 15 rows). All the rows are threated the same way and the Value of all cells are defined and accessible.

It seems that the source of the problem is in the radGridView.TableElement.VisualRows where some items are missing. They are only four element (instead of 15) in VisualRows object.

Do you have an idea to how solve the problem ?


Best regards,

Georges DE VOS.




Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jul 2017
3 answers
177 views

Is there any way to detect/is there an event raised when a user cancels an insert?

When the user clicks to enter data on the new row, pressing escape twice or clicking off the row twice cancels the insert and reinstates the "click here to enter a new row" banner.

 

Is there anyway to detect when this happens?

 

I am trapping when a user starts an insert, and also trapping the AddedNew event to detect when the user completes an insert but also need to know when they choose to cancel one.

Many thanks,

Mark

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jul 2017
1 answer
49 views

I saw the code for Java and it almost made sense but almost didn't quite get me there:

Can anyone post a snippet of how to sort an unbound grid by one or more columns? 

Thank you.

-C

Dimitar
Telerik team
 answered on 27 Jul 2017
2 answers
150 views
I would like to be able to use a BindlingList of Node as a datasource for the treeview, but I'm unsure of how to set up the properties, Children in Node will contain Children, and so forth.   

class Node
{
  public string Title; //DisplayMember
  public string Value; //ValueMember
  public bool IsActive; //CheckedMember
  public List<Node> Children = new List<Node>(); //Children of this node here
   
  public Node()
  {
     
  }
   
  public Node(string title, string value, bool isActive, List<Node> children)
  {
    Title = title;
    Value = value;
    IsActive = isActive;
    Children = children;
  }
}
Bruce
Top achievements
Rank 2
 answered on 26 Jul 2017
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
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
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?