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

Our main form has a custom cursor that I set with this.Cursor = cusotmCursor;
When I show a RadMessageBox our custom cursor is changed to the default WinForms arrow the cursor.
When I click on the RadMessageBox button and the RadMEssageBox closes, the cursor returns to our custom cursor.

This is very important to us for the evaluatio of the Teletik controls:
How to keep our custom cursor when showing the RadMessageBox?
The cursor must not change.

This is my code - I subclassed the RadMessageBox in my custom class which the application uses.
Is this the recommended way to wrap the RadMessageBox?

I use .Net 3.5 SP1 with VS2008.


Best Regards,
Ofer


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telerik.WinControls;
using System.Windows.Forms;

namespace UI.Forms.UserControls
{
    public static class YMessageBox
    {
        public static DialogResult Show(IWin32Window parent, string text, string caption,
            MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultButton)
        {            
            RadMessageBox.SetThemeName("Aqua");

            DialogResult dr = RadMessageBox.Show(parent, text, caption, buttons, icon, defaultButton, RightToLeft.Yes);
            return dr;
        }
    }
}
Martin Vasilev
Telerik team
 answered on 15 May 2009
2 answers
230 views
Hello to all!

I have been working on a custom control that has several (dynamically added) RadToggleButtonElements. Now I'm wanting to handle the click event of those elements int the form where I use the control, so I can take some actions based on the clicked Item.

I've read the docs on the RoutedEvent and such, but I got lost on how exactly this works and how to implement it.

Will anyone of you guys give me a hand on this one? Thanks!
Stargazer
Top achievements
Rank 2
 answered on 15 May 2009
1 answer
186 views
I am looking for a way to show some periods as unavailable for appointments (lunch hours, unavailble ressources, etc).
Is there any way to do this ?
Boyko Markov
Telerik team
 answered on 15 May 2009
1 answer
203 views
Is there a way for an bound grid with an unbound column to contain a custom object such as a Hashtable?  If so, how would it be implemented?

Thanks
Jack
Telerik team
 answered on 15 May 2009
1 answer
201 views
Hi there...

Sitting here and experimenting with this control, nice one I think :)

I've a small question, using
view.RangeFactor = ScaleRange.QuarterHour;

but I need to set the height of the cells, because when I use QuarterHour a working day fills more than a working day in Hour in total height and I don't want to use scroll bars in working period!

Could be nice to adjust the cell height to something smaller than it appears now.
Boyko Markov
Telerik team
 answered on 15 May 2009
5 answers
264 views

i have a ComboBox with some items in it (width pf combo cox 162), when i start application and click on the combobox, the drop down expands with width of about 180 px. If i click again on the combobox, the drop down expands but has a correct width of 162 px.

i have used statements like:

this.radComboBox1.DropDownWidth = 162;

 

or

 

radComboBox1.DropDownMaxSize = radComboBox1.Size;
or

radComboBox1.DropDownMinSize = radComboBox1.Size;

but still i am getting the same problem.

Can you please suggest me some solution?

Nick
Telerik team
 answered on 15 May 2009
2 answers
974 views
Hi,
   I have installed "RadControls_WinForms_2009_1_414_dev" and using the RadGridView control for our development.  I have created a RadGridView with three columns in the design time using the wizard (using "Open Propery Builder" link at the design time).  The names of the columns are ID, FullName and IsSelected.  The last IsSelected column is a check box column.  I have added the following code in the form load.

 

DataTable dt = new DataTable();

 

dt.Columns.Add(

"ID");

 

dt.Columns.Add(

"FullName");

 

dt.Columns.Add(

"IsSelected");

 

 

DataRow dr = dt.NewRow();

 

dr[

"ID"] = "1";

 

dr[

"FullName"] = "Arvind";

 

dr[

"IsSelected"] = true;

 

dt.Rows.Add(dr);

 

dr = dt.NewRow();

dr[

"ID"] = "2";

 

dr[

"FullName"] = "Robin";

 

dr[

"IsSelected"] = true;

 

dt.Rows.Add(dr);

 

dr = dt.NewRow();

dr[

"ID"] = "3";

 

dr[

"FullName"] = "Kumar";

 

dr[

"IsSelected"] = false;

 

dt.Rows.Add(dr);

radGvw.DataSource = dt;

While running the application, totally 6 columns are generated.  All the three columns are repeated.  The columns are displaying in the order ID, FullName, IsSelected, ID, FullName, IsSelected.  The IsSelected column type is textbox column in the second time.

I am new to this Telerik control.  Please advice.

Regards,
Arvind Robin Kumar.

Arvind
Top achievements
Rank 1
 answered on 15 May 2009
2 answers
244 views

I currently have a grid with a checkbox column.  When the user checks the checkbox I change the background color and that works fine but i'm unable to change the text color on the ValueChanged event of that grid.

//Row Highlight when selected  
GridCheckBoxCellElement cbCell = (GridCheckBoxCellElement)sender;  
cbCell.RowElement.BackColor = System.Drawing.ColorTranslator.FromHtml("#DAFB5E");  
cbCell.RowElement.DrawFill = true;  
cbCell.RowElement.ForeColor = this.radGVTables.ForeColor = Color.Sienna;  
 
//I've tried this and it didn't work either.  
cbCell.RowElement.ForeColor = Color.Sienna; 


Thank you for any help



 

 

 

 

Jack
Telerik team
 answered on 15 May 2009
1 answer
173 views
I'm running XP SP3, and Visual Studio Team Systems 2008 Development Edition.  Towards the end of installing Q1 2009 SP1 an exception is thrown (see below) and installation stops. Anyone else encountering this problem?

Thnks
Jeff

***** Exception *****
System.NullReferenceException was unhandled
  Message="Object reference not set to an instance of an object."
  Source="ToolBoxInstaller"
  StackTrace:
       at ToolBoxInstaller.Main(String[] arguments)
  InnerException: null
Jordan
Telerik team
 answered on 14 May 2009
3 answers
149 views
Hi,

I am just trying to migrate from Visual Basic 6.0 to .net. And really new to telerik rad controls for winform. In my form I have added a tab control which will dynamically created tabitems and 3 different contols within each tab. Could someone please help me to find the name of tabitems and control added dynamically. Each time when loop starts functioning I want to check where the new tab item is already added by loop or not.  

 

Private Sub ShowData()  

 

Dim i As Integer  

 

Dim tmpWord As String  

 

Dim tmprelateto As String  

 

Dim itab As Integer  

 

Dim newtab As String

ds =
New DataSet()

 

myAdapter.Fill(ds,

"Dictionary")

 

 

mytable = ds.Tables(

"Dictionary")

 

 

tmprelateto =

""

 

 

 

tmpWord = ""

i = 0

 

Do
myrow = mytable.Rows.Item(rownumber)

 

tmpWord = Trim(myrow.Item(

"Word").ToString)

 

 

tmprelateto = Trim(myrow.Item(

"relateto").ToString)

 

 


If
tmprelateto = "" Then

    i = i + 1 

    If i = 2 Then

 

         Exit Do

 

    End If

    RichTextBox1.Text = Trim(myrow.Item(

"DefNep").ToString)

 

    RichTextBox2.Text = Trim(myrow.Item(

"DefEng").ToString)
    rownumber = rownumber + 1

Else
     newtab = Trim(myrow.Item("pref").ToString)

 

     RadTabStrip1.Items.Add(

New TabItem(newtab))

     Dim list As New ListBox
     Dim rtfbox As New RichTextBox

     Dim rtfbox2 As New RichTextBox

     For Each ti As TabItem In RadTabStrip1.Items

        ti.ContentPanel.Controls.Add(list)

        ti.ContentPanel.Controls.Add(rtfbox)

        ti.ContentPanel.Controls.Add(rtfbox2)

 

 

 

 

    With list  

            .Location =

 

New Point(5, 3)

 

            .Width = 132
            .BorderStyle = BorderStyle.None

            .Height = 117

             

 

If Trim(myrow.Item("Word").ToString) = "" Then

 

                 

 

.Items.Add(Trim(myrow.Item("relateto").ToString))

 

             

 

Else  

 

 

 

                 .Items.Add(Trim(myrow.Item(

"Word").ToString))

 

             

 

End If

 

 

    

 

End With

 

 

 

 

 

    With rtfbox

 

            .Location =

 

New Point(141, 3)

 

            .Width = 133

            .Height = 117

            .BorderStyle = BorderStyle.None

            .Text = Trim(myrow.Item(

 

"DefNep").ToString)  

 

 

 

    End With

 

 

 

 

 

    With rtfbox2

             .Location =

 

New Point(278, 3)

 

             .Width = 132

             .Height = 117

             .BorderStyle = BorderStyle.None

             .Text = Trim(myrow.Item(

 

"DefEng").ToString)

 

     

 

End With

 

 

 

Next  

 

 

 

rownumber = rownumber + 1 

End If  

 

 

Loop  

 

 

End Sub

Database Used above program looks like:
Word        relateto        pref        DefNep                                                DefNep
-------        ---------        ------       ---------                                                 ---------
A               Null             Null         (ए) अंग्रेजी वर्णमालाको पहिलो अक्षर         the first letter of the English alphabet
Null            A                adj.         एउटा, कोही, एक कुनै व्यक्ति                     one, any, some
Null            A                prep.      जब संज्ञामा उपसर्गको जस्तो यो              (when used as a prefix before nouns) 

 

 

 

Nick
Telerik team
 answered on 14 May 2009
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?