Telerik Forums
UI for WinForms Forum
2 answers
168 views

Hello

I have a databound gridview in which I change two columns from standard cell to dropdown cells

So far everything is fine, when I select a value in the dropdownlist, the grid is properly updated.

However I need to validate the user's selection from the dropdown list and cancel the change if not authorized based on various conditions.

I have tried various methods, such as using the callvalidating or cellvaluechanged events but I have not managed to cancel the change when not authorized. Moreover in some cases the dropdown is no longer available.

As a workaround I perform the check in the cellvaluechanged event reload completely the grid when the change is not authorized but this is far from being efficient.

Herebelow the code snipet of the celvaluechanged event

----------------------------------------------------------------------------------------------------------------------------------------------

        Select Case e.Column.Name
            Case "Ctrldd"
                Dim mEntry As New mEntry(MyConnectionString)
                mEntry.UpdateCtrl(context, theEntry.idEntry, e.Value)
                ShowEntryDetails(theEntry.idEntry)
            Case "HCdd"
                Dim mEntry As New mEntry(MyConnectionString)
                If mEntry.CheckHCChange(theEntry, theCompetition.Label.Scope) Then
                    mEntry.UpdateHC(context, theEntry.idEntry, e.Value)
                    ShowEntryDetails(theEntry.idEntry)
                Else
                    MessageBox.Show(My.Resources.Entry.ChangeHCNotAllowed, My.Resources.Main.WarningMsg, MessageBoxButtons.OK, MessageBoxIcon.Information)
                    'request a reload of the grid
                    RaiseEvent RefreshRequired()
                End If
        End Select

----------------------------------------------------------------------------------------------------------------------------------------------
Thanks in advance for any advice

Pierre-Jean

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 24 Apr 2020
4 answers
299 views

Hello

I have added a Clear Button in a Rad TextBoxCOntrol
However it shows up at the left of the text box and my understanding is that it should appear at the far right.

I have not found a property that specifiys the Clear Button Position.

Thanks in advance

Pierre-Jean

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 24 Apr 2020
4 answers
414 views
Hi all,

I like to get the top level control of a RadMenuItem.
For example: there is a RadForm with two RadGridView controls.
Each containing a ContextMenu. For both I'm using the same handler which should recognize on which RadGridView the menu is clicked.
How can I retrieve the  RadGridView which is the top level for the ContextMenu?

Regards
Hardy 
Scott
Top achievements
Rank 1
 answered on 24 Apr 2020
5 answers
132 views

Hi, which control can I use to connect to sql server and get a list of database names (without manual implementation)? Currently I have to use manual code to get the database + table name then add to the some controls like treeview and listbox respectively
(I think I should use treeview because maybe I need to list database then whole table in the database but I'm not sure whether it supports this)

Thanks in advance!

Khanh
Top achievements
Rank 1
Iron
 answered on 24 Apr 2020
11 answers
770 views
Can set the default size for auto hide, but can't seem to set the size for when the window is docked. Would rather set a minimum size on it to make it usable.

Is there a way to do this?
Nadya | Tech Support Engineer
Telerik team
 answered on 24 Apr 2020
1 answer
184 views

I want to replace the group panel with a gridview.(like the left part of the gantt view).

Is the any ways to customize this?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Apr 2020
6 answers
346 views

I need to save the chart in emf. I write

         radChartViewAny.ExportToImage(saveFileDialog1.FileName, radChartViewAny.Size, ImageFormat.Emf);

The chart is saved to a file in emf format, but this is only a parody of emf:

1. The file size is very large. It doesn’t happen if it is a normal emf file

2. If you open this file in any program (for example, Word), then there is a "ladder" effect. Those, the file just contains a graph in the form of bitmap, but not the emf commands

 


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Apr 2020
1 answer
295 views

I built a virtual grid which may get large so I am deferring adding a link which may take some processing to find until the row is actually selected.  Is this a good idea?  Can it even be done?  And if so does the entire grid then have to be rebuilt?

I want to add that 10 years ago a Microsoft evangelist recommended I ask for Telerik controls - and when my next job developing web pages had only the default set it was like trying to cook with dull knives when you were used to a razor sharp set.  I have them at my current job - and what a difference it makes!

Nadya | Tech Support Engineer
Telerik team
 answered on 23 Apr 2020
1 answer
877 views

Hi,

    We need to merge the radGrid cell(Wage Category column) with the same name as mentioned in the video link. Code shared for your reference. Please check & help us with it.

Screen Shot link

 

Dim dtArraytemW  as New DataTable()

 Public Sub InitializeDatatable()

dtArraytemW= New DataTable

dtArraytemW.Columns.AddRange(New DataColumn() {New DataColumn("Wage Category", GetType(String)), New DataColumn("Type", GetType(String)),
New DataColumn("# Hours", GetType(String))})
End Sub

dtArraytemW.Rows.Add(0)(0) = "Salary - Office"
dtArraytemW.Rows(0)(1) = "Regular"
dtArraytemW.Rows(0)(2) = 1
dtArraytemW.Rows(0)(3) = 1.5
dtArraytemW.Rows(0)(4) = 2

dtArraytemW.Rows.Add(1)(0) = "Salary - Office"
dtArraytemW.Rows(1)(1) = "Overt0me"
dtArraytemW.Rows(1)(2) = 1
dtArraytemW.Rows(1)(3) = 4.5
dtArraytemW.Rows(1)(4) = 3

dtArraytemW.Rows.Add(2)(0) = "Salary - Office"
dtArraytemW.Rows(2)(1) = "1.7 T0me"
dtArraytemW.Rows(2)(2) = 1
dtArraytemW.Rows(2)(3) = 6.3
dtArraytemW.Rows(2)(4) = 1

rdgvWGrd.DataSource = dtArraytemW

 

Video Link

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Apr 2020
4 answers
290 views

Hello

 

I have been trying for weeks now to just get a working version of scheduler.

That being said ? Here is what I have done.

 

  1. I have read every document concerning scheduler 
  2. I have watch numerous videos on the topic
  3. I have downloaded all known documentation.
  4. I have downloaded all examples on the site
  5. I have copied working code from example back to the same access data base.
  6. I have also taken the db schema for sql and created the tables"Still to no avail"

Still unable to get this to work.

 

I am new to telerik 
Also I am self taught dabbler

But unable to figure out what my issue is..

 

My requirements for integrating scheduler in to my new born application is...........

  • I have to use a local sql .mdf file that can go with project. "Not access"
  • I need the standard just out of the box capabilities to start
  • I will be creating custom appointment dialogs later
  • Also I will need the ability to create appointments in the background with out selecting cell to activate appointment dialogs.

My question is can any one give me a working scheduler 

That can actually save appointments " Persisting " that can have recurrences active.

 

I have tried databinding directly through the schedulerdatabindingsource module .

And also tried hard coding this for info mapping .

Done everything I know to do .

Using the newest latest greatest 2017 devcraft.

Please some one help so I can move on.

 

Thanks Jeff

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Apr 2020
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
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
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
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?