Telerik Forums
UI for WinForms Forum
4 answers
103 views
Hi,

I have a RadTreeView with a list of nodes, each of which should have a count after them.

Root (10)
-- Cars (20)
---- Ford (12)
---- Chrysler (2)
---- GM (30)

I realize I can use the tag to store a "value" for the node independent of the display format - I'm already doing that.  However, when I export the data in the table, I make use of the convenient "Path" property to flatten out the hierarchy.  Is there a way to generate the Path from the Tag property rather than from the Text property?

How would you go about exporting this to a list that looks like this?:

Root
Root/Cars
Root/Cars/Ford
Root/Cars/Chrysler
Root/Cars/GM

I'd rather not write the code to walk the tree and construct the paths myself - but it's the most practical solution I can think of.

Richard Slade
Top achievements
Rank 2
 answered on 19 Nov 2010
1 answer
162 views
can i wrap text in RAD tree View control
Richard Slade
Top achievements
Rank 2
 answered on 19 Nov 2010
6 answers
169 views
Hi, in my program I have a RadGridView. Some of the cells are formatted with different backgroundcolor or they are disabled. The first time I bind the grid with data read from a table of a database it shows correct but If I update the grid it loses the format (All the cells are white and enabled) . 

The cells are formatted according to this approach  http://www.telerik.com/community/forums/winforms/gridview/createcell-event-cellelement-is-always-null.aspx (First it sets a tag for each cell in DataBindingComplete and subsequently depending on this value it sets backcolor and enabled properties for the cell.)

Here is the code (Cheers to Emanuel Varga for it):

void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
{
    if (e.CellElement.RowInfo.Cells[0].Tag != null && e.CellElement.RowInfo.Cells[0].Tag.Equals(true))
    {
        e.CellElement.BackColor = Color.Red;
        e.CellElement.DrawFill = true;
    }
    else
    {
        e.CellElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
        e.CellElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);    
    }
}
   
void radGridView1_DataBindingComplete(object sender, GridViewBindingCompleteEventArgs e)
{
    foreach (var row in radGridView1.Rows)
    {
        if (row.Index % 2 == 0)
        {
            row.Cells[0].Tag = true;
        }
    }
}

Thanks for the answers.
Richard Slade
Top achievements
Rank 2
 answered on 19 Nov 2010
4 answers
195 views
Hi,

I would like to change tooltip value which is ('Close Page') on PageView's close button because my application is in French.
I searched but I didn't find how to do it ?

Could you help me please ?

Thanks

best regards.

Fred
Cantenot Frederic
Top achievements
Rank 1
 answered on 19 Nov 2010
2 answers
110 views

Hi

 

I tried to hide the GroupPanel and for that I set the ShowGroupPanel property  to fasle but nothing change.

I'm using version  Q2 2010

Can someone help me with that ?


Thank u,
Emanuel Varga
Top achievements
Rank 1
 answered on 19 Nov 2010
7 answers
549 views
In a current project we need a people picker (validator - against AD preferably), like the one eg. Sharepoint but can't seem to find one anywhere. Does Telerik provide something like it or does anyone else know of such control/dialog?
Stefan
Telerik team
 answered on 19 Nov 2010
2 answers
334 views
HI,
 
could you please give some more explanantion about your previous reply....am new to telerik  . i have created and  loaded the  raddropdownbutton with checkbox columns, i have written code as below
 
 public partial class DropDownButton : Telerik.WinControls.UI.RadForm
    {
 
        RadGridView grid;
        RadHostItem hostItem;
        string str = string.Empty;
        Workaround.childtemplate.GridMenuItem item = new Workaround.childtemplate.GridMenuItem();
        public DropDownButton()
        {
            InitializeComponent();
        }
 
        private void DropDownButton_Load(object sender, EventArgs e)
        {
 
            SqlConnection con = new SqlConnection("Data Source=ISDTP0026;Initial Catalog=LibraryManagement;Integrated Security=True");
            con.Open();
            DataSet ds = new DataSet();
            SqlDataAdapter adp = new SqlDataAdapter("select CallNumber,Author from Books", con);
            adp.Fill(ds);
            item.Grid.DataSource = ds.Tables[0].DefaultView;
            
           
            GridViewCheckBoxColumn chk = new GridViewCheckBoxColumn();
            chk.DataType = typeof(bool);
            chk.HeaderText = "";
            chk.ReadOnly = false;
            item.Grid.Columns.Insert(0, chk);
            item.Grid.Columns[0].HeaderText = "Select";
            item.Grid.Columns[1].ReadOnly = true;
            item.Grid.Columns[2].ReadOnly = true;
            item.Grid.ReadOnly = false;
            item.Grid.ShowGroupPanel = false;
            item.Grid.AutoSizeRows = true;
            item.Grid.SelectionMode = GridViewSelectionMode.FullRowSelect;
            item.Grid.MultiSelect = true;
            item.Grid.SelectionMode = GridViewSelectionMode.FullRowSelect;
            item.Grid.MultiSelect = true;
            item.Grid.MasterGridViewTemplate.AllowAddNewRow = false;
            item.Grid.MasterGridViewTemplate.AllowDeleteRow = false;
            item.Grid.MasterGridViewTemplate.AllowEditRow = true;
            item.Grid.MasterGridViewTemplate.ShowRowHeaderColumn = false;
            item.Grid.MasterGridViewTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
            item.Grid.MasterGridViewTemplate.BestFitColumns();
            item.Grid.Size = new Size(400, 300);
            radDropDownButton1.Items.Add(item);
}
 
        private void radDropDownButton1_DropDownClosed(object sender, EventArgs e)
        {
// here only i need to store the selected value
 foreach (GridViewRowInfo rowInfo in item.Grid.Rows)
            {
          
            for (int row = 0; row < item.Grid.Rows.Count; row++)
            {
                if (item.Grid.Rows[row].IsSelected)
            {
      
                 string str = item.Grid.Rows[row].Cells[0].Value.ToString();
   
         }
}
}
while dropdown closed event , how to get the selected rows and values....???
 
Please guide me it very urgent.... thanks in advance...
 
Thanks
Dev.
            
dev
Top achievements
Rank 1
 answered on 19 Nov 2010
2 answers
391 views
As I've reported before, the initial load time of my MDI Application is unacceptable. I searched around and found out that most of the initialization occurs in relation to themes. Is there a way I can disable themes for the entire application? 

Thanks

EB
Richard Slade
Top achievements
Rank 2
 answered on 18 Nov 2010
2 answers
67 views

Hello,

I have a RadGridView that is bind from a datatable. How do I turn on screen tips with images assign to the rows when user hover mouse over a row? Of course I would have to determine which images to use by the column and row index. But how do I assign a pop up screen tips with a image? My images are in a folder in my local drive.

Thanks.

anh
Top achievements
Rank 1
 answered on 18 Nov 2010
5 answers
89 views

Hello,

I encountered an unhandled exception when with startbutton menu open I use the scroll wheel on mouse.


Stack trace returned as follow:
  
   w Telerik.WinControls.UI.RadDropDownMenu.OnMouseWheel(Control target,Int32 delta)
  
   w Telerik.WinControls.UI.PopupManager.OnMouseWheel(Message m)
  
   w Telerik.WinControls.UI.PopupManager.Telerik.WinControls.IMessageListener.PreviewMessage(Message& msg)
  
   w Telerik.WinControls.RadMessageFilter.NotifyGetMessageEvent(Message&msg)
  
   w Telerik.WinControls.RadMessageFilter.GetMessageHookProc(Int32 code, IntPtr wParam, IntPtr lParam)
  
   w System.Windows.Forms.UnsafeNativeMethods.GetMessageW(MSG& msg, HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)
  
   wSystem.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID,Int32 reason, Int32 pvLoopData)
  
   wSystem.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
  
   w System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
  
   w System.Windows.Forms.Application.Run(Form mainForm)

 

Any help will be usefull

 

Regards,

Dragos

Mariano
Top achievements
Rank 1
 answered on 18 Nov 2010
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?