Telerik Forums
UI for WinForms Forum
3 answers
190 views
I have a GridView where one of the columns is a GridViewComboBoxColumn.

After the grid has been populated by setting the DataSource to a list gotten from the database, I want to populate the ComboBox column.

The ComboBox column contains indexes(integers), which I want to be ValueMembers.
The ComboBox' DataSource is set to another list from the database, and the ValueMember and DisplayMember is set. But when setting the DisplayMember I get an exception saying "Object must be of type Int32". The DisplayMember I try to set is a string.

Is there a way to put a databound ComboBox in the column, where the value member is from one list and the display member from another?


Regards, Jill-Connie Lorentsen

Martin Vasilev
Telerik team
 answered on 14 Oct 2011
1 answer
150 views
Hi,
       In my WPF project i want to show 5 images while we mouse over the navigation button at the time of clicking the last image next set of 5 images needs to come please help me out in this issue.

Regards,
Rajini.
Nikolay
Telerik team
 answered on 14 Oct 2011
1 answer
216 views
Hi,

Is there an option in RadTextBox of autocomplete suggestion for each word separated by a space?

Scenario is, i am talking First, Middle and Last names in a single RadTextBox and i want suggestion for each part of the name separately from a collection as on start typing the collection will suggest first name then on pressing space bar and starting the middle name same collection will appear with suggestion of middle name and so on.

Thanks in anticipation,

Shahzad
Nikolay
Telerik team
 answered on 14 Oct 2011
10 answers
366 views
hi,

today i upgrade my dll's to q2 2011, i have myOwnTextbox that inherited from RadMaskedEditBox , i have some problems with it masktypes.
i have this code :
                if (mType == rTextBoxType.Text)
                {
                    MaskType = MaskType.Standard;
                    Mask = "";
                }
                if (mType == rTextBoxType.Numeric)
                {
                    MaskType = MaskType.Numeric;
                    Mask = "D";
                    RightToLeft = RightToLeft.No;
                }
                if (mType == rTextBoxType.Float)
                {
                    MaskType = MaskType.Numeric;
                    Mask = "F2";
                    RightToLeft = RightToLeft.No;
                }
                if (mType == rTextBoxType.Money)
                {
                    MaskType = MaskType.Numeric;
                    Mask = "c0";
                    RightToLeft = RightToLeft.No;
                }
                if(mType == rTextBoxType.Date)
                {
                    MaskType = MaskType.DateTime;
                    Mask = "d";
                    RightToLeft = RightToLeft.No;
                }
                if(mType == rTextBoxType.Time)
                {
                    MaskType = MaskType.DateTime;
                    Mask = "HH:mm";
                    RightToLeft = RightToLeft.No;
                }

ok, here is its problems:
1- in first case (mType == rTextBoxType.Text) i want to make maskeditbox to a simple textbox, if i put it in standard maskmode it will fill with placeholder character (which was not in previous versions). if i change it to None maskmode, it have problem with assigning text to it's TEXT property. when i assign a text (read from dB) to it's Text property nothing happened !!

2- in secod case (mType == rTextBoxType.Numeric) , the "D" mask does not work any longer for numberic-only text box, i should change it to "n" or "g" , which is strange!

3- Big big problem is in (mType == rTextBoxType.Money) , because i use "Persian (Iran)" cultureinfo in controls , when i put it in this maskmode , nothing happened. i cannot write anything in the textboxt. i think the problem is with cultureinfo.

4- last and new problem! is when something was wrong with the mask, there is red Icon appeared in right side of control. i want to turn it off, i want to disable it. i dont want it to appear anymore.

Would you please help me to solve these problems ?
Peter
Telerik team
 answered on 13 Oct 2011
1 answer
148 views

Hello,
i want to write a text over several cells.
can I merge Cells into one RadGridView? As in Excel.

thanks

Ivan Petrov
Telerik team
 answered on 13 Oct 2011
4 answers
453 views
When the datetimepicker loads I dont want any dates to be shown in the textbox please.

how do i do that?
Peter
Telerik team
 answered on 13 Oct 2011
1 answer
428 views
Is there a way to make the Enter key act like the Tab key for the RadDropDownList?  I have tried the following methods and none actually advance to the focus:

private void dropDownList_KeyDown(object sender, KeyEventArgs e)
{
    if (e.KeyData == Keys.Enter)
    {
        this.ProcessTabKeys(true);
    }
}
 
 
private void dropDownList_KeyPress(object sender, KeyPressEventArgs e)
{
    if (e.KeyChar == (char)Keys.Enter)
    {
        this.ProcessTabKeys(true);
    }
}

I also tried alternatives of the above:

private void dropDownList_KeyDown(object sender, KeyEventArgs e)
{
    if (e.KeyCode == Keys.Enter)
    {
        nextDropDownList.Focus();
        e.Handled = true;
    }
}
 
 
private void dropDownList_KeyPress(object sender, KeyPressEventArgs e)
{
    if (e.KeyChar == (char)Keys.Enter)
    {
        nextDropDownList.Focus();
        e.Handled = true;
    }
}


The only way to advance the focus is to use the Tab key.  In case it makes any difference, I have AutoComplete set to SuggestAppend.

Is there another way to make the Enter key act like the Tab key?
Peter
Telerik team
 answered on 13 Oct 2011
3 answers
175 views
Hi Telerik

I'm trying to color the checkmarks in two GridViewCheckBoxColumns in a grid in our app. I have tried the following code but have only succeeded in producing visual gibberish. The entire grid is destroyed - my fault  :-)

Could you please provide some guidance.
Many thanks in advance
regards
Ian Carson

void rgvOperationsGrid_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    if (e.ColumnIndex == 2)
    {
        ((RadCheckBoxElement)e.CellElement.Children[0]).CheckMarkPrimitive.CheckElement.ForeColor = Color.DarkGreen;
    }
    else if (e.ColumnIndex == 3)
    {
        ((RadCheckBoxElement)e.CellElement.Children[0]).CheckMarkPrimitive.CheckElement.ForeColor = Color.DarkRed;
    }
}


Ian
Top achievements
Rank 1
 answered on 13 Oct 2011
1 answer
169 views
Hey everyone,

I just started working with the Telerik RadCalendar control, and it looks promising to be able to accomplish what I want. I do, however, seem to be running into an issue. 

Using the arrow keys and space bar to select/deselect dates works great, but when I use the mouse to do this, it is awkward. I found a post relating to the issue, (http://www.telerik.com/community/forums/winforms/calendar-and-datetimepicker/urgent-radcalendar-not-deselect-dates-correctly.aspx) The Telerik representative mentioned that the reason this felt awkward was because of the "Focus Date" feature. 

I understand how this works, but would it be possible to somehow change the color of the "Focus Date" part of the calendar? I think this would help my end users tell the difference between the "Focus Date" and a recently deselected/selected cell. 

Thanks


Ivan Petrov
Telerik team
 answered on 13 Oct 2011
3 answers
455 views
I'd like for images within a RadImageItem to resize as the RadRotator resizes.  Does anyone know how to do this?  

Any help would be greatly appreciated.  Thank you!
Slav
Telerik team
 answered on 13 Oct 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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?