Telerik Forums
UI for WinForms Forum
1 answer
193 views
I have added unbound GridViewImageColumn.

I want to set the image of this colum from bmp file added to project resources, depending on the value in a bound column. How do I do this?

Thanks ... DP
Julian Benkov
Telerik team
 answered on 29 Aug 2008
1 answer
145 views
Hi Telerik support,
I'm using RadControls for Winforms and was trying to follow the RadTreeView instructions on how to add Context menus. For the past 10 minutes I'm trying to find RadDropDownMenu until I found in a web site that it was replaced by RadContextMenu.

Nikolay
Telerik team
 answered on 29 Aug 2008
1 answer
279 views

Why does iterating through the rows in the grid take so long like in this example.  It can take a few minutes to walk through every row in the grid if it contains 10000+ rows.  Is there a more efficient way to walk the rows.  I am trying to implement a find within a column functionality, but it is extremely slow for a large number of rows.



for
(int i = 0; i < Global.MainUiForm.OutputGrid.RowCount; i++)

{

currentRow =

Global.MainUiForm.OutputGrid.MasterGridViewInfo.Rows[i];

radColumn = (

RadColumn)this.comboBoxLookIn.SelectedItem;

if (regex.IsMatch(currentRow.Cells[radColumn.FieldName].Value.ToString()))

{

currentRow.IsCurrent =

true;

currentRow.EnsureVisible();

currentRow.Cells[radColumn.FieldName].EnsureVisible();

found =

true;

break;

}

}

Mike
Telerik team
 answered on 28 Aug 2008
2 answers
257 views
Hi,

I've got on last problem I need to solve before I'm happy to be finished with a long journey.

I had to integrade the Grid Control into a large C++ solution, therefore I had to create a MFC custom control with CLR activated and loaded the RadGridView in this custom control. Then, the custom control can be placed on the MFC dialogs.

Now to my problem: When I right click on such integrated RadGrid, the context meny opens but in the backgroud the grid vanishes. When I then move the mouse over the grid, it gets becomes visible again.

Everything is working fine with RadGrids that are called from within the C++ app but open in their own WinForm Dialog. One little thing which appers with every RadGrid is, when I open the context menu by accident or just want it to close again, I need to choose one option. When I right click again it just opens anoder context menu and I then have two of them.w

Can the problem be solvend from the .Net side? If yes how? If it is a problem with C++ and MFC does anyone have an Idea there?

Julian Benkov
Telerik team
 answered on 28 Aug 2008
1 answer
241 views
Hi,

I changed the BackColor property of a CellElement using the CellFormatting event, but it seems very awkward compared to the other cells in the row when that row is hovered or selected:
the other cells in the row change their colors because of the hovering, whereas the cell whose BackColor I adjusted remains the same.

How can I help this poor cell to behave like its fellows?

Thanks,
Tamás
Martin Vasilev
Telerik team
 answered on 28 Aug 2008
7 answers
102 views
Today I ran an application I made last week on my laptop, which is running Windows Vista.  The application has a dateTimePicker, with the format set to "long".  In Vista, the default date shows as "June-07-08", while it shows as "June 7, 2008" on XP.  Therefore, when I try to pick a date, it reset me to the minimum date, which is January 01, 1990 by default.

Thanks in advance.
Boyko Markov
Telerik team
 answered on 28 Aug 2008
8 answers
349 views
Hello,

I am trying to create a RadGridView which have multiple GridViewTemplates as hierarchical data. It works for my first relation using ParentColumnNames and ChildColumnNames, however, when adding my second relation, it does not work.

A small attached code sample is here, thanks:
    public class Client 
    { 
        public int ID { get; set; } 
        public string Name { get; set; } 
 
        public Client(int id, string name) 
        { 
            ID = id; 
            Name = name; 
        } 
    } 
 
    public class Order 
    { 
        public int ID { get; set; } 
        public int ClientID { get; set; } 
        public int Quantity { get; set; } 
 
        public Order(int id, int clientid, int quantity) 
        { 
            ID = id; 
            ClientID = clientid; 
            Quantity = quantity; 
        } 
    } 
 
    public class OrderPrices 
    { 
        public int ID { get; set; } 
        public int ClientID { get; set; } 
        public double Price { get; set; } 
 
        public OrderPrices(int id, int clientid, double price) 
        { 
            ID = id; 
            ClientID = clientid; 
            Price = price; 
        } 
    } 
 
        private void Form1_Load(object sender, EventArgs e) 
        { 
            radGridView1.AutoGenerateHierarchyFromDataSet = false; 
 
            ordersTemplate = new GridViewTemplate(this.radGridView1); 
            radGridView1.MasterGridViewTemplate.ChildGridViewTemplates.Add(ordersTemplate); 
 
            GridViewRelation relation1 = new GridViewRelation(this.radGridView1.MasterGridViewTemplate); 
            relation1.RelationName = "Clients Orders1"; 
            relation1.ParentColumnNames.Add("ID"); 
            relation1.ChildColumnNames.Add("ClientID"); 
 
            relation1.ChildTemplate = ordersTemplate; 
            radGridView1.Relations.Add(relation1); 
 
            orderPricesTemplate = new GridViewTemplate(radGridView1); 
            radGridView1.MasterGridViewTemplate.ChildGridViewTemplates.Add(orderPricesTemplate); 
 
            GridViewRelation relation2 = new GridViewRelation(radGridView1.MasterGridViewTemplate); 
            relation2.RelationName = "Clients Order Prices"; 
            relation2.ParentColumnNames.Add("ID"); 
            relation2.ChildColumnNames.Add("ClientID"); 
 
            relation2.ChildTemplate = orderPricesTemplate; 
            radGridView1.Relations.Add(relation2); 
 
            LoadData(); 
        } 
 
        private void LoadData() 
        { 
            BindingList<Client> clients = new BindingList<Client> 
                  { 
                      new Client(1, "John Smith"), 
                      new Client(2, "Peter Jackson"), 
                      new Client(3, "Samuel Dell"), 
                      new Client(4, "Test") 
                  }; 
 
            BindingList<Order> orders = new BindingList<Order> 
                { 
                    new Order(1, 1, 2), 
                    new Order(1, 1, 1), 
                    new Order(1, 2, 10), 
                    new Order(1, 3, 43) 
                }; 
 
            BindingList<OrderPrices> orderprices = new BindingList<OrderPrices> 
               { 
                   new OrderPrices(1, 4, 1.50), 
                   new OrderPrices(1, 4, 9.99), 
                   new OrderPrices(1, 1, 10.11), 
                   new OrderPrices(1, 2, 43.42) 
               }; 
 
 
            orderPricesTemplate.DataSource = orderprices; 
            ordersTemplate.DataSource = orders; 
 
            radGridView1.DataSource = clients; 
        } 

Nikolay
Telerik team
 answered on 28 Aug 2008
1 answer
176 views
Q2 2008 SP1 requires a manual deinstallation of Q2 2008.
Are you aware of this?

Regards
Martin
Jordan
Telerik team
 answered on 28 Aug 2008
1 answer
252 views
Greetings,
Is there a way to increase or decrease the animation speed of the form carousel?

Also, is there any way to import a form to use as a control?  I'd like to mimic the Windows Runline, for instance, as a selection in the Carousel.

Thanks!

Jim
Mike
Telerik team
 answered on 27 Aug 2008
1 answer
198 views
Hello Team,

    I am using radgridview for databinding, and its a hierarchical grid.
    If i have chils rows, then only i can add new row for child grid.
    Can it be able to add new child row if there are no rows present in child grid?
    If so how?
    Please let me know abt this.

thanks & regards,
Narendra P
erwin
Top achievements
Rank 1
Veteran
Iron
 answered on 27 Aug 2008
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?