Telerik Forums
UI for WinForms Forum
1 answer
95 views
hi team,

After this event what is the next sequence of events fired.

    serviceDragDrop.PreviewDockPosition += new DragDropDockPositionEventHandler(serviceDragDrop_PreviewDockPosition);

For me the active document changed event does not fire sometime.

Thanks
suresh.
Julian Benkov
Telerik team
 answered on 10 Jan 2011
3 answers
85 views
Hi,
I am using a trail version.

I try to add a WaitingBar to a StatusStrip. I use following code to archive this :

            waitingBar = new RadWaitingBar();
            waitingBar.BeginInit();
            Size waitingBarSize = new Size(this.radLabelElement2.Size.Width, this.radLabelElement2.Size.Height);
            waitingBar.MinimumSize = waitingBarSize;
            waitingBar.MaximumSize = waitingBarSize;
            waitingBar.EndInit();
            host = new RadHostItem(waitingBar);
            this.radLabelElement2.Margin = new Padding(0);
            this.radLabelElement2.Children.Add(host);

I just add a radLabel to the StatusStrip named radLabelElement2 and it worked but the appearence look a little bit strange :

http://h-4.abload.de/img/unbenannt1oi3.png

I use the Desert Theme but the WaitingBar got a white border. I want is transparant. How can I archive this ?

Thanks
Dieter
Top achievements
Rank 1
 answered on 10 Jan 2011
2 answers
119 views
Hi,

I was using Q22009 version of Telerik control before in my project and everything was working fine. Few days back I downloaded latest version and replaced my existing refrences of telerik with new refrences .i.e. 2010.3.10.1109. All other controls are working fine but I am getting errors in gridview controls. I used new gridview in another sample project and observed that there is much difference in properties of old gridview and new gridview.

I used new and it was working fine also but as I said there are changes. So what I gues from this, I have to change all my grids now. But I have so many grids in my project and it require lot of time to change them now. I wanna to ask that is there any short way to make this chage.

Please recommmend me the easy and good solution to upgrades my controls with the latest version of Telerik.

Regards,

Ahmed Almousa
Jack
Telerik team
 answered on 10 Jan 2011
9 answers
714 views
The standard listbox supports multicolumn.  Is this soemthing the RadListbox will support?
Stefan
Telerik team
 answered on 10 Jan 2011
1 answer
452 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
162 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
232 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
118 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
146 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
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
CheckedDropDownList
ProgressBar
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
NavigationView
VirtualKeyboard
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?