Telerik Forums
UI for WinForms Forum
1 answer
183 views
Hi,

Could I please have an example of how to implement drag and drop functionality between two RadListBox controls. The examples in the older posts don't seem to work with the latest release.

Thanks,
Brad
Nikolay
Telerik team
 answered on 29 Aug 2008
1 answer
193 views
I would like to disable the fast navigation popup that appears when clicking on the calendar's "title" (Month-Year).  When clicking there, a popup appears allowing the user to select a different Month-Year.  I would like to handle this event with a different popup.  I have been able to tie into the same mouse down event to create my own popup window, however the telerik fast navigation window still pops up.  Is there a way to disable this so that I can handle the event myself and popup my own fast navigation type of window?

I would like to keep the fast nvaigation arrows and header in place, just replace the popup that gets displayed when clicking on the Month-Year text.

Thank you.

William
Boyko Markov
Telerik team
 answered on 29 Aug 2008
4 answers
261 views

Okay, I know I'm missing something here. I'm using the latest version of Rad for WinForms (Q1 2008) and I'm trying to populate a RadGridView using code only (not the BindingSource control). Can you tell me why this code isn't working?

private void PopulateGrid()
{
 DataSet ds = GetMasterDetail();
 radGridView1.DataSource = ds;
}

private DataSet GetMasterDetail()
{
  DataTable master = Clients.GetMasterList();
  master.TableName = "Clients";
  DataTable child = Orders.GetChildList();
  child.TableName = "Orders";

  DataSet ds = new DataSet();
  ds.Tables.Add(master.Copy());
  ds.Tables.Add(child.Copy());

  DataRelation relationship = new DataRelation("MasterDetail", ds.Tables["Clients"].Columns["ClientID"], ds.Tables["Orders"].Columns["ClientID"]);
  ds.Relations.Add(relationship);

  return ds;
}

Julian Benkov
Telerik team
 answered on 29 Aug 2008
1 answer
148 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
117 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
230 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
223 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
198 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
71 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
282 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 { getset; } 
        public string Name { getset; } 
 
        public Client(int id, string name) 
        { 
            ID = id; 
            Name = name; 
        } 
    } 
 
    public class Order 
    { 
        public int ID { getset; } 
        public int ClientID { getset; } 
        public int Quantity { getset; } 
 
        public Order(int id, int clientid, int quantity) 
        { 
            ID = id; 
            ClientID = clientid; 
            Quantity = quantity; 
        } 
    } 
 
    public class OrderPrices 
    { 
        public int ID { getset; } 
        public int ClientID { getset; } 
        public double Price { getset; } 
 
        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
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?