Telerik Forums
UI for WinForms Forum
1 answer
1.1K+ views

I have a grid which shows employee data and enable user to edit the data. When edit command is pressed, it displays dropdown list for one of the column(Name). The dropdown value gets displayed without any issue however when edit command is pressed, the existing value within the dropdown gets hidden and first value '- Select -....' get displayed.

P.S: i followed this tutorial to add dropdown in Kendo Grid: http://www.sitereq.com/post/kendo-mvc-dropdown-lists-inside-inline-kendo-mvc-grids

Code Behind:

class EmployeeItem
{
public string Name{get; set;}
public string Code1{get;set;}

public string Code2{get;set;}​
public string CombinedValues{get;set;}  //this is combination of Name, Code1, Code2 delimited by comma

}

 

  Controller Code:

List<EmployeeItem> employeeList = service.GetEmployeeList();
ViewBag.EmployeeList = new SelectList(employeeList, "CombinedValues", "Name");

 

EditorTemplate Code (_EmployeeDropDown.cshtml):

@(Html.Kendo().DropDownList()
      .BindTo((IEnumerable)ViewBag.EmployeeList)
      .OptionLabel("- Select - ")
      .DataValueField("Value")
      .DataTextField("Text")
      .Name("EmployeeData")
)

View Code:
@(Html.Kendo().Grid(Model.employeeDetails)
      .Name("GridEmployeeDetails")
      .Columns(columns =>
      {
        columns.Command(command => { command.Edit(); }).Width("180px").Title("Action");
        columns.Bound(e => e.Name).Width("210px").EditorTemplateName("_EmployeeDropDown")
                                            .ClientTemplate("#:EmployeeData#");            
      })

So if the employeeList have values something like this:
Name = John, Code1 = 1, Code2 = 2, CombinedValues = John,1,2
Name = Matt, Code1 = 21, Code2 = 50, CombinedValues = Matt, 21, 50

In the grid, when i first view the grid it displays the Name, John in first row, Matt in second row. If i edit Matt row, the dropdown will show up with '-Select-' as selected value instead of 'Matt'. 
Does anyone know  how i can achieve that?
Also, once i make selection on dropdown, let's say from Matt to John, and hit inline Save button now the value changes to CombinedValues i.e. John,1,2 instead of just John under Name column.

Georgi Krustev
Telerik team
 answered on 04 Aug 2015
3 answers
282 views
I want to enable Mouse wheel scroll on GridViewTextBoxColumn. Please, help me.
Stefan
Telerik team
 answered on 04 Aug 2015
6 answers
172 views
Hi!
I need to calculate the IMC (body mass composition) and show the results in a chartview according to the attached model. With Linear Gauge , is it possible? How to set the legend?
Maia.
Dimitar
Telerik team
 answered on 03 Aug 2015
2 answers
196 views

Hi,

 I just got a subscription to Telerik's control library to work on a client's project.

However, the project uses an older version of the controls (2015 Q1). I tried to install an older version through the website but I get this:

Versions you can download
2015.2 623

Is there a way to get a version of the installer for an old bundle, before the license was acquired?

 

Thank you,
Lachezar

Lachezar
Top achievements
Rank 1
 answered on 03 Aug 2015
1 answer
66 views

Hi,

Does ​GridView support nested grids with arbitrary structure that can vary between parent rows? For example:


=ObjectName=        =ObjectQuantity=

- The Book                  2
        =Chapter=     =Page=
        Chapter 1         3
        ....

- Kitchen Set              1
        =Item=      = Qty=    =Material=
        Knife            3           Stainless Steel 
        Cup              4           Porcelain
        ....

- Pencil                     50

- A4 paper                100

etc.

So it's not really parent-child / master-detail relationship, it's more like a flat list of objects where some objects might have nested data (and some might not).

Stefan
Telerik team
 answered on 03 Aug 2015
2 answers
173 views

I have added custom grouping for my RadGridView. I am setting the text for the group header using the GroupSummaryEvaluate handler, as shown in your documentation here: http://www.telerik.com/help/winforms/gridview-grouping-formatting-group-header-row.html

Question: Can I use two different fonts within my group header text? For example:

 (begin font 1) Description of the group   (begin font2) Number of child rows: 7

     child row 1

     child row 2

     etc. etc. up to child row 7

If so, how can I do that?

-Lou

Lou
Top achievements
Rank 1
 answered on 31 Jul 2015
3 answers
193 views

Hi,

It seems that UniformGrid is available in Telerik UI for Winforms. But, I could not find any documentation which can help me in using it.

I added the Telerik.WinControls.dll which seems to be having the UniformGrid control but I could not find it in the Toolbox.

Could you provide the documentation on how to use it?

 Regards,

vijay

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Jul 2015
1 answer
153 views

I would like to know the proper way to implement AutoSizeAppointments on MonthView where scrollbar on the overflown cell will be visible.

If i set AutoSizeAppointments=false, the scrollbar is visible

but if I set it to true, the scrollbar won't show. 

 

And I think the sample code for Handling overflown cells on this is for resizing the rows or columns

http://www.telerik.com/help/winforms/scheduler-views-month-view.html

 

We are using Q2 2015.

 

 

 

Hristo
Telerik team
 answered on 30 Jul 2015
3 answers
122 views

I am using WinControls 2015.2.728.40 and I have read through the forums and I can neither find the listed properties in property grid design time and I cannot access the property .click programmatically.

 This does not work.

Public Sub New()
 InitializeComponent()
 Me.radRibbonBar1.OptionsButton.Click += New EventHandler(AddressOf OptionsButton_Click)
 Me.radRibbonBar1.ExitButton.Click += New EventHandler(AddressOf ExitButton_Click)
End Sub

 

suggestion on how to actually use the default buttons rather than just remove them?

Stefan
Telerik team
 answered on 30 Jul 2015
1 answer
146 views

Using WinControls version 2014.3.1202.40

I am attempting to keep a list of all popups that have been displayed so far so I can programmatically close certain popups based on a condition, later. So after creating a list and adding a reference of a popup to it, the reference to it in the list disappears after calling .show() on the alert object.

A simple example:

 

var listOfPopups = new List<RadDesktopAlert>();
 
var alert = new RadDesktopAlert();
 
listOfPopups.Add(alert); // listOfPopups.Count == 1 now.
 
alert.Show(); // listOfPopups.Count == 0 now...

 

Is this by design? And if so, is there any other way to keep track of them, or get access to the popups through the desktopAlertManager?

 

Thanks,

 

 

Hristo
Telerik team
 answered on 29 Jul 2015
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
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
Styling
Barcode
BindingNavigator
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?