Telerik Forums
UI for WinForms Forum
6 answers
333 views
Several our grids shows phantom icon in the first line, first column. The icons are in another columns and shown correctly.
Lily

 
Richard Slade
Top achievements
Rank 2
 answered on 21 Jan 2011
18 answers
378 views
Hi,

I'm using VS2010 with Q3 (2010.3.10.1215) in Win7.

I'm having issues with being able to set the SelectedValue of a ComboBox (standard windows forms control) that was created and added to a ToolWindow while the ToolWindow.DockState = AutoHide. When the DockState is Dockable, the value can be set without issues.

I have 2 ToolWindows: ToolWindow1 contains a RadTreeView and ToolWindow2 contains various controls (ComboBoxes, TextBoxes, etc). Depending on the node the user selects certain controls are created, added to the ToolWindow and then the values set. This works fine if ToolWindow2 isn't in AutoHide when the user selects a different node. If the user AutoHides ToolWindow2 and then changes nodes, the SelectedValue for the combobox remains null. However, the text value of the textboxes can be set regardless of the DockState.

Note: If I use the SelectedIndex instead of SelectedValue I get an ArgumentOutOfRangeException when the ToolWindow.DockState = AutoHide even though the DataSource of the ComboBox is not null and has more than enough rows for the chosen Index. 

I am currently using a work around by using the the AutoHideWindowDisplayed event which calls the RadTreeView_SelectedNodeChanged event. Unfortunately, this isn't ideal because the ToolWindow2 starts off empty for a split second then suddenly the controls appear. I have tried the AutoHideWindowDisplaying event, however this did not change the stated behaviour; the SelectedValue of the ComboBoxes remained null;

Any ideas?

Kind Regards
Richard Slade
Top achievements
Rank 2
 answered on 21 Jan 2011
3 answers
170 views
Is there any way to stop a drop-down list from dropping down. I can't see a read-only propery or a drop down event.

Thanks
Justin
Justin
Top achievements
Rank 1
 answered on 21 Jan 2011
2 answers
130 views
I want to customize the Recurrence Edit Dialog....i only want to remove the NO END DATE radio button...Please help me to find out the solution...
Dobry Zranchev
Telerik team
 answered on 21 Jan 2011
9 answers
190 views
Hi,
I want to create a Carousel just like in the rad demo main application when i clicked any header from the left menu not in the any example of Carousel menu. (Open the demo, click the Carousel menu. You will see a Carousel with three images). I can't create a Carousel like that. Can you send me Center, U, V, initialangle, finalangle,zscale etc. values?
Thanks.

Richard Slade
Top achievements
Rank 2
 answered on 21 Jan 2011
7 answers
144 views
Hi All,

I have a RadGridView with only about 40 rows and about 15 columns.  I am sorting by two of these columns, "Presented" and "Number".  At some interval, I loop through the entire grid and set the "Presented" value for each row to 0, which of course will change the sot order of the grid (because I am sorting by "Presented", which I have just changed to 0).  It seems that when this happens, some of the rows never get iterated over because they have been moved in the rows collection - due to sorting.  I have pasted my code below ... should I iterate and change the call values some other way?

I first tried this:
foreach (GridViewRowInfo dr in grdHuntGroups.Rows)
{
    dr.Cells["Presented"].Value = 0;
    dr.Cells["Handled"].Value = 0;
    dr.Cells["Voicemail"].Value = 0;
    dr.Cells["Abandoned"].Value = 0;
    dr.Cells["Overflowed"].Value = 0;
}


And have since tried this:
for (int i = 0; i < grdHuntGroups.Rows.Count; i++)
 {
     grdHuntGroups.Rows[i].Cells["Presented"].Value = 0;
     grdHuntGroups.Rows[i].Cells["Handled"].Value = 0;
     grdHuntGroups.Rows[i].Cells["Voicemail"].Value = 0;
     grdHuntGroups.Rows[i].Cells["Abandoned"].Value = 0;
     grdHuntGroups.Rows[i].Cells["Overflowed"].Value = 0;
}

Thank You!!
Jack
Telerik team
 answered on 21 Jan 2011
3 answers
141 views
Hello telerik team! ..

hope u are fine ..

My question is...

I have a gridview with a CeckBoxColumn  .. and i want to do something like this... but i don't know how (i'm in VB by the way)

For each x as .... = 0 to grid.rows.count -1 step 1
    dim box as checkbox
    box = REM code here to reference the checkbox in the row 'x'
    if box.checked = true then
        REM some code
    else
        REM some code
    end if
next

i want the exact code , i try myself but i don't get it  :(

thanks al the answers!!
Richard Slade
Top achievements
Rank 2
 answered on 20 Jan 2011
4 answers
219 views
Hi,

I am using the GridView with Conditional Formatting.
I set the RowForeColor and the CellForeColor and it works great.
I´m using the colors: black, red and green.

The Grid looks great. But when I select a row the ForeColor does not change, like a "normal" row, without Conditional Formatting does.
The selected row has a blue BackColor with green ForeColor. And this is hard to read for the user.

How can I handle this?

regards
Svett
Telerik team
 answered on 20 Jan 2011
4 answers
87 views
Greetings!

I'd love to know if there's a problem with my code or if this is some kind of bug in the GridView, as the result is very strange.

If I create a custom column by inheriting GridViewDataColumn, the cell for that column will appear correctly in its own column, but will also occasionally appear in other columns.

Steps to reproduce
This is not my actual implementation, but a much simplified bit of code that reproduces the problem - the custom column here just displays a button for testing purposes.

I am running Telerik Controls for Windows Forms 2010.3.10.1215

Create a form called "ManualBuildTest" with a RadGridView on it, called "Grid" (Dock: Fill). Then use the following code in the form:

 

 

 

public partial class ManualBuildTest : Form
{
    public ManualBuildTest()
    {
        InitializeComponent();
    }
    private void ManualBuildTest_Load(object sender, EventArgs e)
    {
        var col1 = new DataLinkColumn(string.Empty);
        col1.AllowGroup = true;
        col1.HeaderText = "Requested By";
        Grid.Columns.Add(col1);
        var col = new GridViewTextBoxColumn();
        col.AllowGroup = true;
        col.ReadOnly = false;
        col.HeaderText = "Position";
        Grid.Columns.Add(col);
        col = new GridViewTextBoxColumn();
        col.AllowGroup = true;
        col.ReadOnly = false;
        col.HeaderText = "Organisation";
        Grid.Columns.Add(col);
        col = new GridViewTextBoxColumn();
        col.AllowGroup = false;
        col.ReadOnly = false;
        col.HeaderText = "Work Phone";
        Grid.Columns.Add(col);
        col = new GridViewTextBoxColumn();
        col.AllowGroup = false;
        col.ReadOnly = false;
        col.HeaderText = "Mobile";
        Grid.Columns.Add(col);
        col = new GridViewTextBoxColumn();
        col.AllowGroup = false;
        col.ReadOnly = false;
        col.HeaderText = "E-Mail";
        Grid.Columns.Add(col);
        col = new GridViewTextBoxColumn();
        col.AllowGroup = false;
        col.ReadOnly = false;
        col.HeaderText = "Fax";
        Grid.Columns.Add(col);
        var dcol = new GridViewDateTimeColumn();
        dcol.AllowGroup = true;
        dcol.ReadOnly = false;
        dcol.HeaderText = "Date Requested";
        Grid.Columns.Add(dcol);
        col = new GridViewTextBoxColumn();
        col.AllowGroup = true;
        col.ReadOnly = false;
        col.HeaderText = "Request";
        Grid.Columns.Add(col);
        col = new GridViewTextBoxColumn();
        col.AllowGroup = true;
        col.ReadOnly = false;
        col.HeaderText = "Status";
        Grid.Columns.Add(col);
        col = new GridViewTextBoxColumn();
        col.AllowGroup = true;
        col.ReadOnly = false;
        col.HeaderText = "Assigned To";
        Grid.Columns.Add(col);
        dcol = new GridViewDateTimeColumn();
        dcol.AllowGroup = true;
        dcol.ReadOnly = false;
        dcol.HeaderText = "Request Completed";
        Grid.Columns.Add(dcol);
        col = new GridViewTextBoxColumn();
        col.AllowGroup = true;
        col.ReadOnly = false;
        col.HeaderText = "Result of Request";
        Grid.Columns.Add(col);
        Grid.Rows.AddNew();
        Grid.Rows.AddNew();
    }
}
public class DataLinkColumn : GridViewDataColumn
{
    public DataLinkColumn(string fieldName)
        : base(fieldName)
    {
    }
    public override Type GetCellType(GridViewRowInfo row)
    {
        if (row is GridViewDataRowInfo)
            return typeof(DataLinkCellElement);
        return base.GetCellType(row);
    }
}
public class DataLinkCellElement : GridDataCellElement
{
    private RadButtonElement _ctlButton;
    public DataLinkCellElement(GridViewColumn column, GridRowElement row)
        : base(column, row)
    {
    }
    protected override void CreateChildElements()
    {
        base.CreateChildElements();
        _ctlButton = new RadButtonElement();
        _ctlButton.Text = "TEST";
        _ctlButton.ShowBorder = true;
        Children.Add(_ctlButton);
    }
    protected override void SetContentCore(object value)
    {
        _ctlButton.Text = value == null ? "(null)" : value.ToString();
    }
}

If you then run the form, everything (usually) looks fine at first: the custom column appears in the first column as set (the cell contains a button with the word "(null)" in it for now).

But if you make sure that the window is small enough that the Grid's horizontal scrollbar appears, and scroll back and forth, the custom button is appearing in other cells sporadically (see the attachment for an example).

I've tried to match my code to existing code examples, and even tried it with the RadRadioButtonCellElement custom column from the Knowledge Base, and got the same result.

Is there something fundamentally wrong with my code?

FRASER TUSTIAN

 

Jack
Telerik team
 answered on 20 Jan 2011
8 answers
155 views

Hi

In 2010 Q2 SP2 in row for adding new rows there was text: Click here to add new row (or very similar). This text is missing in Q3 by default. How can I display this text in Q3 (in row for adding new rows)?

Reagrds

Jack
Telerik team
 answered on 20 Jan 2011
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
Iron
Iron
Sergii
Top achievements
Rank 1
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
Iron
Iron
Sergii
Top achievements
Rank 1
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?