Telerik Forums
UI for WinForms Forum
3 answers
204 views

Hi guys,

 

When I am doing data binding on RadScheduler(using SchedulerBindingDataSource), I meet  'System.Data.NoNullAllowedException, Column 'id' does not allow null'

My steps are:

1) Double-Click on the scheduler to create a new time slot, and custom appointment dialog show up.

2) type the info, then click ok button

3) error shows....

4) After clicking ok button, the appointment slot will show on schedule, then click the Save button, data will be saved to the database

 

However, The data populating is good. I can receive data from the database, when I run the application the data which I manually type into the database is exist on schedule. And if I click on exist appointment slot and do some changes,  there is no error. After I click save button The data will be successfully saved into the database.

 

Could you let me know which part will be the issue, All screenshots are attached.

If need more information, plz let me know,

 

Thanks,

Mike

Dinko | Tech Support Engineer
Telerik team
 answered on 14 Feb 2022
1 answer
186 views

Hi Dess

I have used your previously provided sample project but project replicates the same error on the Windows10 machine.

I am sending screenshot for same.

We had discussion previously my Ticket 1549675 for your ready references

Regards

Nandan Navale

Dinko | Tech Support Engineer
Telerik team
 answered on 11 Feb 2022
5 answers
354 views

Our documents have a couple of images included (they are in rtf format, with some images in the header).

In Word, depending on the status (started, validated, ...), we take one image from the document and show it as a watermark. The other ones we hide.

I'm trying to do the same with the editor, but i can't really find api's to just get a list of images in the Document.

Is there a way to do this ?

 

 

Dinko | Tech Support Engineer
Telerik team
 updated answer on 10 Feb 2022
1 answer
262 views

Hello all.  I'm trying to figure out how to configure a summaryrow to evaluate only the selected rows when multiple rows are selected.  The evaluation event handler would need to fire and update the summary total each time the selected rows collection changes.  So far I have not been able to find any examples of this behavior.  A point in the right direction will be appreciated. 

I have tried working with the "CustomSummaryItem" from the forum but this only fires the evaluation event once and doesn't summarize changing selections- it only evaluates the first row in the grid.  I have this small bit of code posted below and my alteration is in bold.  I suspect I need to subscribe to some other (less documented) method.

Thanks in advance - Mike

I found this class in the forum ----------------------------------

Public Class CustomSummaryItem
    Inherits GridViewSummaryItem
    Public Sub New(ByVal name As String, ByVal formatString As String, ByVal aggregate As GridAggregateFunction)
        MyBase.New(name, formatString, aggregate)
    End Sub

    Public Overrides Function Evaluate(ByVal row As IHierarchicalRow) As Object
        Dim itemsummary As Decimal = 0
        For Each childRow As GridViewRowInfo In row.ChildRows
            If childRow.IsSelected Then
                itemsummary += CDec(childRow.Cells("miles_driven").Value)
            End If
        Next childRow
        Return itemsummary
    End Function

End Class

Dinko | Tech Support Engineer
Telerik team
 answered on 10 Feb 2022
1 answer
84 views

I am using the following code in the currentpagechanged event to update a spin editor, but the spin editor value does not stay in sync with the Navigator text box when changing pages via the Navigator or clicking on the thumbnails.  

 

private void radPdfViewer1_CurrentPageChanged(object sender, CurrentPageChangedEventArgs e)
        {
            try
            {
                seFrom.Value = int.Parse(this.radPdfViewerNavigator1.CurrentPageTextBox.Text) ;
            }
            catch
            {

            }
        }

Dimitar
Telerik team
 answered on 08 Feb 2022
1 answer
190 views

I have a RadForm. I added a RadImageButtonElement (CreatingButton.png) to the Title Bar of it because I want to add a Login type of button.

1.) How can I get that button to behave like the Minimize/Maximize buttons in terms of like when I hover over the button, it changes it's appearance the same way like in the attached MinimizeAppearence.png?

I tried to use EnableHighlight, HighlightColor properties, but it didn't seem to work. It had no effect.

2.) Is there a way when I click on the RadImageButtonElement and I signed in already to have something that looks like the way Microsoft Word does it (WordSignIn.png)?

 

Thanks in advance.

Dinko | Tech Support Engineer
Telerik team
 answered on 08 Feb 2022
1 answer
370 views

1.  Is there a way to hide an element in the pdfNaviagotor bar.  I wish to hide the file open element.

2. how can i get the path of the file that is open or loaded into the pdfviewer.

3. How do I get the page number of the selected page in the viewer

4. How do I get the page count of the open file.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Feb 2022
2 answers
530 views

Hello,

i have a sql Database with a imagepath.

How can i show the image in a colum

datasource ist a string with a filepath in the database.

 

Thanks Udo

Udo
Top achievements
Rank 1
Iron
 updated answer on 04 Feb 2022
1 answer
281 views

hi

my code is


void BindGridDeviceName() { string select = "SELECT * from Device;"; using (IDbConnection connection = new SqlConnection(DataLayer.ConnectionClass.ConnectionDaynamic.GetConnectionString)) { var list = connection.ExecuteReader(select); DataTable dt = new DataTable(); dt.Load(list); ((GridViewComboBoxColumn)radGridViewService.Columns["DeviceName"]).DataSource = dt; ((GridViewComboBoxColumn)radGridViewService.Columns["DeviceName"]).DisplayMember= "DeviceName"; ((GridViewComboBoxColumn)radGridViewService.Columns["DeviceName"]).ValueMember = "Id"; } }

 

 

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

I want when my form is loaded
  The first item or ID from the combo box for each row is in select(show)

I do not want to be displayed by clicking on cells

like combobox.SelectedIndex

2-how to get value cValueMember = "Id" to insert database

thank


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Feb 2022
1 answer
109 views
The problem was that this popup is stretched to fit the entire screen. I've added a few lines of code to set the maximum size of this popup and it works fine. However, for the first click, popup is aligned to the left corner of the screen. I tried to set Location property of DropDownMenu and DropDownMenu.PopupElement, but it didn't help.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Feb 2022
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?