Telerik Forums
UI for WinForms Forum
1 answer
111 views
In the attachment, I use timelineview of other vender to embebed a button to each time slot cells.
Can I embed do that in telerik's  Scheduler control? if yes, how to achive this? Thank you so much.

Attachmemt link:http://nhantrisoft.net/qlcv/embed.png
Dobry Zranchev
Telerik team
 answered on 27 Oct 2010
3 answers
326 views
I know this question has been answered many times before, but none of those replies are working for me.

I have a GridView with a TextBox column. Under specific circumstances, the TextBox column becomes a DropDown list. I have this part working fine.

I bind the DropDownList to a List<T> where T is an object, say CustomerType for example. Normally, I would bind the DisplayMember to the "TypeName" property and the ValueMember to the "CustomerTypeId" property and all would be well.

But because the TextBox column is bound to the "TypeName" of the object instead of the Id, I need some code to get the Id from the combobox.

I tried adding code to the ValueChanged event, but I am always getting the wrong element. Here is my code:

Private Sub CustomerGridView_ValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CustomerGridView.ValueChanged
    If CustomerGridView.CurrentRow IsNot Nothing AndAlso
            Me.CustomerGridView.Columns(COL_customerType).IsCurrent Then
        Dim editor = TryCast(sender, RadDropDownListEditor)
        If editor IsNot Nothing Then
            Dim editorElement = TryCast(editor.EditorElement, RadDropDownListEditorElement)
            If editorElement IsNot Nothing Then
                Dim selectedItem = TryCast(editorElement.SelectedItem.DataBoundItem, CustomerType)
                If selectedItem IsNot Nothing The
                    Dim currentCustomer = TryCast(CustomerGridView.CurrentRow.DataBoundItem, Customer)
                    Customer.CustomerTypeId = selectedItem.CustomerTypeId
                End If
            End If
        End If
    End If
End Sub


Any tips?
Jack
Telerik team
 answered on 27 Oct 2010
1 answer
83 views
Hi,
I've used a MultiColumnDataColumn in my GridView. contents of the cell appears as I want but when when the contents of the cell do not appear with the same formatting. how can I set formatting of rows which appears inside the grid in the MultiColumnDataColumn.
 thank you.
Emanuel Varga
Top achievements
Rank 1
 answered on 27 Oct 2010
20 answers
513 views
hai, I`m newbie in Telerik..
I wanna ask something, I have a grid view and when I try to edit the text I have error message like in picture that i have attached..
like on picture number 2 and 3..
I attached setting column like picture no 1..
and here is the code :
private void grid_CellEndEdit(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
        {
            if (grid.CurrentCell.ColumnIndex == 5)
            {
                grid.CurrentRow.Cells[6].Value = maksharga * (int)grid.CurrentRow.Cells[5].Value; 
            }
        }

How i can resolve it?
Can you give me a link for hint with similar case?
Thanks in advance


Regards
Mochamad
Top achievements
Rank 1
 answered on 27 Oct 2010
1 answer
70 views
MDI
Hi Sir,

          I am  working as PMS project in a company. Here i used rad controls. In my project i used one MDI parent form. In this form i add child form. It works well. In my child form i used radgridview component.My problem is if any changes occured in this child form means like update,delete,and so on. It could not affect the radgridview component. After close the project and reopen means it affects the rows. Why this happened. Its Urgent

                                                       Thank You

M.Selvasundar
Vassil Petev
Telerik team
 answered on 26 Oct 2010
3 answers
371 views
Hello,
1. I want to show sum of a coulmn of RadGridView in a text box. How do I must do this?
2. Suppose that there are 3 tables: Table1(PK1), Table2(FK1,FK2) and Table3(PK2).
the Table2  has equivalend ID from Table1 and Table2(One to many relation).
I've downloaded the ExCheckedListBox from CodeProject website. the ExCheckedListBox  data source is Table1. I want the Items which are in ExCheckedListBox to be checked only if they are in Table2.
link:http://www.codeproject.com/KB/combobox/ExCheckedListBox.aspx
Table1:
ID1    Name
1    Name1
2    Name2
3    Name3
Table 3:
ID2   City
1    City1
2    City2
3    City3

Table2:
ID1    ID2
1        1
1        2
1        3

ExCheckedListBox Items:
Name1    Name2    Name3
Only "Name1" must be chcked when user navigate through records of Table1 in a RadGridView object.
Please help me.

Alexander
Telerik team
 answered on 26 Oct 2010
2 answers
121 views
after installing, Telerik  I run the sample scheduler. an exception is triggered (see Attach  files). the problem is in the component scheduler ,  others components   works very well . please help me  and sorry for my bad english.
Dobry Zranchev
Telerik team
 answered on 26 Oct 2010
9 answers
354 views
Hello,
I work with radGridView in unbound mode and every time I add a column I want to add a Tag to it, indicating the object that the column derives from. However, there is no such property as Tag for columns. Is there a possible way to achieve this, like binding a property or something like this? I tried to add the object's key in gridView.Columns[index].Name property, but this has as a result the uniqueness of the columns. Please help.

Thank you in advance
George K.
Svett
Telerik team
 answered on 26 Oct 2010
2 answers
115 views
Hi Guys,

I am using the document tab strip within which I have 2 tabs.The requirement is that the user cannot swap the tabs.
I prevented that by setting AllowDragDrop=false for the document tabstrip.
However when the user drags a tab, the tabstrip hints where the drop will appear by showing visual pointers in between tabs.How do I prevent  this scenario.


Any help would be appreciated.
I am using Visual studio 2008.
Nikolay
Telerik team
 answered on 26 Oct 2010
2 answers
207 views
We have a very odd requirement. The grid rows show existing data, which is not editable. It is provided for display purposes only. The user can then add rows. One of the columns is a combobox that is bound to a list of items.

The odd requirement is that the comboBox needs to provide a subset of the data when it is dropped down for editing.

Here is a scenario. The grid contains the following customer names and types:
  • Jones   Education Customer
  • Smith   Business Customer
  • Baggins Residentical Customer
  • Support System Customer

In order to get the customer type name to show up (instead of the customer type id) we need to bind the combobox to the full set of customer types. But when the user adds a new one, they cannot have the System Customer as an option in the list.

I am filtering out the items that we don't want and rebinding it. But the new list is ignored and the full list is populated.

Any tips?

My code is below:

Private Sub CustomerGridView_CellBeginEdit(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCellCancelEventArgs) Handles CustomerGridView.CellBeginEdit
    ' The list of types available for selection is different from the list that is
    ' bound for display, so handle this here.
    Dim DropDownListEditor As RadDropDownListEditor = TryCast(Me.CustomerGridView.ActiveEditor, RadDropDownListEditor)
    If DropDownListEditor IsNot Nothing Then
        If (CustomerGridView.Columns(e.ColumnIndex).Name = "Type") Then
            Dim editorElement As RadDropDownListEditorElement = CType(DropDownListEditor.EditorElement, RadDropDownListEditorElement)
            Dim filteredList = OriginalList.
                Where(Function(d) d.IsSystem = false)
            editorElement.DataSource = filteredList.ToList
        End If
    End If
End Sub
Alexander
Telerik team
 answered on 26 Oct 2010
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
ProgressBar
CheckedDropDownList
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
VirtualKeyboard
NavigationView
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?