Telerik Forums
UI for WinForms Forum
1 answer
148 views
Hello,

With a treeVIew, when you want to change the datamember and the relationbinding, don't work.
Example:
 - 1 dataSet DataSet1 with 4 tables Table1_1, Table1_2, Table2_1 and Table2_2
 - 1 treeView with DataSource DataSet1 and DataMember Table1_1 and 1 RelationBindings with Table1_1 and Table1_2: it's Ok
 - You delete the treeView
 - You want to change the DataMember to Table2_1 and make RelationBindings with Table2_1 and Table2_2: only Table2_1 is on the TeeView
 - You delete the treeView
 - You want to change the DataMember to Table1_1 and make RelationBindings with Table1_1 and Table1_2: it's Table2_1 on the TeeView

And it's the same if you this:
 - 1 treeView with DataSource DataSet1 and DataMember Table2_1 and 1 RelationBindings with Table2_1 and Table2_2: it's Ok
 - You delete the treeView
 - You want to change the DataMember to Table1_1 and make RelationBindings with Table1_1 and Table2_2: only Table1_1 is on the TeeView
 - You delete the treeView
 - You want to change the DataMember to Table2_1 and make RelationBindings with Table2_1 and Table2_2: it's Table1_1 on the TeeView

What's wrong,

Julian Benkov
Telerik team
 answered on 01 Mar 2013
2 answers
124 views
Hi, 

I was using RadScheduler version 2011.2.11.831 and recently I have downloaded 2013.1.220.20 and started testing. But within CreateOccurrence function, the below code gives an error. 

'For repeated occurrences..
Dim appType As Type = GetType(Telerik.WinControls.UI.Appointment)
appType.GetField("masterEvent", System.Reflection.BindingFlags.Instance Or System.Reflection.BindingFlags.NonPublic).SetValue(appointment, Me)

appType.GetField("masterEvent", System.Reflection.BindingFlags.Instance Or System.Reflection.BindingFlags.NonPublic)
is returning nothing and this causes an exception. 

This was working perfectly fine with RadScheduler 2011.2.11.831 version. 

I am using VB.NET in VS 2010 

Regards
Richard
Top achievements
Rank 1
 answered on 01 Mar 2013
6 answers
335 views
Hi,
I'm using RadDatetimePicker RadWinForm  Q3 2011 . My problem is KeyDown event doesn't fire when user press "Enter". How can i solve this problem .

my code is :

 Private Sub IctDateTimePicker1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles IctDateTimePicker1.KeyDown
                If e.KeyCode = Keys.Enter Then
                    SendKeys.SendWait("{TAB}")
                End If
    End Sub

Best Regards,
Kenghot
Peter
Telerik team
 answered on 28 Feb 2013
5 answers
320 views
Is there a way to limit the hours displayed in the Time Picker as some times would not be allowed in the logic of the application but are displayed in the picker, such as 00:00 01:00 etc

Can I remove these hours and have a range from say 07:00 to 21:00

Thanks

Denis
Peter
Telerik team
 answered on 28 Feb 2013
3 answers
378 views
How do I change the color used for selected page's tab on RadPageView?

I have attached an image to explain what I am asking about.
Anton
Telerik team
 answered on 28 Feb 2013
1 answer
87 views
is it possible to put the ruler with the time and increments on both sides of the scheduler?

thanks.
Svett
Telerik team
 answered on 28 Feb 2013
1 answer
133 views
Hi.  I have a trackball setup on a chart.

chart.Controllers.Add(new ChartTrackballController());
chart.ShowTrackBall = false;

I have a click handler that toggles the trackball. 

private void chart_MouseClick(object sender, MouseEventArgs e)
{
    if (e.Button == System.Windows.Forms.MouseButtons.Right)
    {
        chart.ShowTrackBall = !chart.ShowTrackBall;
    }
}


When I disable the trackball it leaves its message box on the screen...  If I toggle the trackball a bunch of times, I end up with a bunch of message boxes on the screen... 

See the pix for a sample.

Thoughts? -
Thanks


Ivan Petrov
Telerik team
 answered on 28 Feb 2013
1 answer
103 views
Hello,

Can we make a template visible or not?

Thanks,
Stefan
Telerik team
 answered on 28 Feb 2013
2 answers
126 views
I have a column that is required.  This validation is being done in CellValidating.
When I use "Clear Value" from the context menu, it sets e.Row.ErrorText correctly saying ".... is required.".
After I enter a value and commit it to the grid, e.Row.ErrorText is still saying the same thing.

What am I missing?
What is "Clear Value" really doing?
Stefan
Telerik team
 answered on 28 Feb 2013
14 answers
1.5K+ views
I have a need to allow the user to delete multiple rows in a grid that is unbound based on their selection. The problem is that even though the grid is set with the following attributes:

SelectionMode: FullRowSelect
MultiSelect: True

And the rows appear selected via the control key + the mouse click on the row, the row .IsSelected property does not get set to true, it is always false. However, display wise on the screen the rows selected by the user appear to be selected with the orange highlight for the row.

The code that handles the deletion looks like this, the method that calls this block is via a context menu:

           int rowSelected = radGridView.SelectedRows.Count;

            if (rowSelected > 0)
            {
                int rowCount = radGridView.Rows.Count();
                for (int x = rowCount - 1; x >= 1; x--)
                {
                    if (radGridView.Rows[x].IsSelected)
                        radGridView.Rows[x].Delete();
                }
            }    

If the rows are set programmatically via the radgridview.Rows[x].IsSelected value to true, but of course I don't know what the user is going to select or unselect prior to the code running, so that is not an option when loading of information into the grid. Is there some other event that should be called to set the row when the user clicks on the row header, if so what is the property or event that needs to be handled?

I also tried this on handling the SelectChanged event on the grid. But no matter what happens the row.IsSelected property remains false:

private void radGridView_SelectionChanged(object sender, EventArgs e)
        {
            GridViewRowInfo ri = radGridView.CurrentRow;
            int rowIndex = ri.Index;
            if (rowIndex >= 0)
            {
                bool selectedRowState = radGridView.Rows[rowIndex].IsSelected;
                bool updatedSelection = (!selectedRowState);                                                   // sanity check for value
                radGridView.Rows[rowIndex].IsSelected = updatedSelection;                            // value stays false even after setting to true?
            }
        }



Thank you.
Stefan
Telerik team
 answered on 28 Feb 2013
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
Bronze
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
Bronze
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?