Telerik Forums
UI for WinForms Forum
9 answers
733 views
The standard listbox supports multicolumn.  Is this soemthing the RadListbox will support?
Stefan
Telerik team
 answered on 10 Jan 2011
1 answer
458 views
Hi there....

I tried to select value from editor control then pass that to a textbox...
i'm already tried this from documentation:

    Dim test As String
    test = String.Format("Row changed, current Name = {0}", RadMultiColumnComboBox1.EditorControl.Rows(RadMultiColumnComboBox1.SelectedIndex).Cells("ContactName").Value)
textbox1.text = test

that code return me an error like this:

"Object reference not set to an instance of an object."

What should i do??

Jack
Telerik team
 answered on 10 Jan 2011
5 answers
180 views
Hello, I've got a problem with the grid position
In some specific case, the rows position in the RadGridView are too high.
So when the scroll bar is at the top, you are missing some rows
And when you are at the bottom, you have empty space.

So this happen when I call BeginUpdate();  EndUpdate(); while I'm scrolling.
And only scrolling with the left click (no wheel)
Use the sample code and left clic on the scrollbar, go all the way down, and Voila.
Everything go back to normal if you use the wheel all the way to the Top. But it's not acceptable for our user

const int CST_AUTO_EXPAND_START = 15; //Last %
bool m_alreadyScroll = false;
public Form1()
{
    InitializeComponent();
}
 
private void AddDatas()
{
    List<string> datas = new List<string>();
    for (int i = 0; i < 50; i++)
    {
        datas.Add("string" + i.ToString());
    }
        radGridView1.DataSource = datas;
}
 
public void ExpandPage()
{
    m_alreadyScroll = true;
    radGridView1.BeginUpdate();
    //Normally I would update my datasource here threw a background worker
    radGridView1.EndUpdate();           
}
 
private void Form1_Load(object sender, EventArgs e)
{
    radGridView1.GridElement.VScrollBar.ValueChanged += new EventHandler(VScrollBar_ValueChanged);
    AddDatas();
}
 
void VScrollBar_ValueChanged(object sender, EventArgs e)
{
    if (m_alreadyScroll)
        return;
    Telerik.WinControls.UI.RadScrollBarElement scrollBar = (Telerik.WinControls.UI.RadScrollBarElement)sender;
    int maxValue = scrollBar.Maximum - scrollBar.LargeChange;
    //if the scroll bar is in the bottom zone, we search for new data
    if (maxValue - maxValue * CST_AUTO_EXPAND_START / 100 < scrollBar.Value)
        ExpandPage();
}

Jack
Telerik team
 answered on 10 Jan 2011
7 answers
164 views
I am finding that if you have a sort on a colum and you edit that value so that it change position in the grid, that sometimes when you tab out of that field a completely different row is selected, and you are now editing the wrong cell.

I have been able to reproduce the behavior on the demo application - Gridview - Populate with data - select Dataset, sort by Postal Code 
 
Its doesnt happen every time on the demo, but it does on my application (Q3 2010)

ALastair
Richard Slade
Top achievements
Rank 2
 answered on 10 Jan 2011
5 answers
239 views

Special characters should be validated in the grid view filter cell & Custom filter dialog from context menu

 

I  tried the following ways and it was successful for Rad grid view filter cell

 

I tried validating in filter changing event while the user enters in the filter cell

 

If (grid.IsInEditMode = True) Then

                If (grid.ActiveEditor.Value IsNot Nothing) Then

                    Dim strFilterCellValue As String = grid.ActiveEditor.Value

                    If (strFilterCellValue.Contains("*") Or strFilterCellValue.Contains("[")) Then

                        Dim lastIndexOfFilterCell As Integer = strFilterCellValue.Count - 1

                        Dim strNewFilterCellValue As String = strFilterCellValue.Remove(lastIndexOfFilterCell, 1)

                        grid.ActiveEditor.Value = strNewFilterCellValue

                        grid.CurrentCell.Editor.BeginEdit()

                        Return 1

                        Exit Function

                    End If

                End If

            End If

 

And for Custom filter menu

 

            If (cellValue IsNot Nothing) Then

                Dim totalCount As Integer = cellValue.Count

                If (cellValue.Contains("*")) Then

                    Dim indexOfStar As String = cellValue.IndexOf("*")

                    Dim numOfCharsRemoved As String = totalCount - indexOfStar

                    Dim strNewFilterCellValue As String = cellValue.Remove(indexOfStar, numOfCharsRemoved)

                    grid.CurrentCell.Value = strNewFilterCellValue

                    grid.MasterGridViewTemplate.FilterExpressions.EndItemUpdate()

                    Return 2

                    Exit Function

                End If

                If (cellValue.Contains("[")) Then

                    Dim indexOfOpenBracket As String = cellValue.IndexOf("[")

                    Dim numOfCharsRemoved As String = totalCount - indexOfOpenBracket

                    Dim strNewFilterCellValue As String = cellValue.Remove(indexOfOpenBracket, numOfCharsRemoved)

                    grid.CurrentCell.Value = strNewFilterCellValue

                    grid.MasterGridViewTemplate.FilterExpressions.EndItemUpdate()

                    Return 2

                    Exit Function

                End If

 

The issue is I m unable to validate both together  that is for custom filter option & while the user enters in the filter cell

 

Thanks,

Julian

Achuthan
Top achievements
Rank 1
 answered on 10 Jan 2011
2 answers
119 views
Hi guy! I have a question about RadScheduler. How can I change back color/Forecolor for each Appointment object in RadScheduler?. For instance, I got 2 object : app1(Appointment object), app2(Appointment object). I want app1 get red color when it show on radScheduler and app2 will get grey color also .

Thanks

Tran Dat
tran
Top achievements
Rank 1
 answered on 10 Jan 2011
4 answers
149 views
I've worked with menu merging with the default VS components long enough to be comfortable. I'm now working with RADMenu now but am a bit stuck.

With a MDI parent and MDI child, everything looks like it's merging like I'm used to.

I don't see the same menus merging when I add a RADDock control to the MDI parent and make any of the MDI child forms display as Document Windows. Any ideas what I might be missing or how I can accomplish this merge scenario?

Thanks

:)
jr
Bruce
Top achievements
Rank 1
 answered on 09 Jan 2011
3 answers
118 views
Is there an event that is thrown when a gridview is expanded or collapsed via the + or minus - being clicked in the parent row?

I have tried using the event, GroupExpanded but it is not being thrown.

The underlying reason for this is that my entire program has a black background, but when I use the RadGridView and set its DockStyle to Fill, the area not populated by the rows is defaulted to white.  I have not been able to change the color of this portion of the control, so I am using a Black panel behind the RadGridView, and dynamically changing the height of the GridView when rows are added via the RowsChanged event.
Richard Slade
Top achievements
Rank 2
 answered on 07 Jan 2011
9 answers
560 views

Hi

How can I change back color of group panel?

(This panel wit text: „Drag a column here to group by this column.”)

 

Regards

Richard Slade
Top achievements
Rank 2
 answered on 07 Jan 2011
3 answers
934 views
Column header texts and sizings are not accepted regardless if they are set through property builder or through columns property. If AutoGenerateColumns is set to true, database column names in default sizing are displayed, if AutoGenerateColumns is set to false, nothing is displayed.
Richard Slade
Top achievements
Rank 2
 answered on 07 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)
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
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
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
BindingNavigator
Styling
Barcode
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
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?