Telerik Forums
UI for WinForms Forum
5 answers
273 views
Hi, im searching the Close/save event on closing the edit dialog from a appointment.

Anyone a idea how to get this?

I have there a lot of events like this:

adScheduler1_AppointmentDeleted/Adding/Added/Moving/Deleted, but not changed :(

Thank you in advance for any help.
Volkan
JAVI AYESA
Top achievements
Rank 1
 answered on 16 Jan 2015
4 answers
272 views
Hi,
How can I scroll the timeline programmatically.  When I click on an item in the list I want to make the  item in the timeline visible.
Thanks,
John
John
Top achievements
Rank 1
 answered on 15 Jan 2015
5 answers
90 views
Hi, I have a RadGridView with a GridViewMaskBoxColumn that I want to use to allow the user to be able to enter any text up to 16 characters.

I have the following settings at the moment for the GridViewMaskBoxColumn:

MaskType = Standard
Mask = &&&&&&&&&&&&&&&& 

When I double click on a cell I see that underscores are used to indicate spaces. That's fine, and I'm able to edit the data. However, the underscores are persisting in my data when I move my cursor to a different field (i.e. when I'm done editing).  In other words:

Data before editing: "12345678        "
View of data while editing: "12345678________"  (underscores used to indicate spaces)
Data after editing: "12345678________"  (underscores have become part of the data).

Is there a way to prevent this? I don't want the underscores to be in my data after I'm done editing it.

Thanks for any help,

-Lou


Dimitar
Telerik team
 answered on 15 Jan 2015
3 answers
127 views
Hi Team,


             Can i get a basic example using db for a bandedgridview in windows form application
Ralitsa
Telerik team
 answered on 15 Jan 2015
3 answers
163 views
How can I filter Ganttview programmatically?  Thanks,  John


Ralitsa
Telerik team
 answered on 15 Jan 2015
7 answers
196 views
Hello Telerik

I have a little issue on adding row to a gridview using a objectquery(Of T) as datasource. The gridview is groupped on two level (fixed by design). Rows are added programmatically on a button click event with the following code.

Private Sub AddNew_Click(sender As System.Object, e As System.EventArgs) Handles AddNew.Click
        Try
            'Add a new row
            Dim newrow As GridViewRowInfo = Me.NotesFrais.Rows.AddNew()
 
            'Set default value on the new data object
            Dim newnotedefrais As NoteFrais = CType(newrow.DataBoundItem, NoteFrais)
 
            With newnotedefrais
                .DateCreation = Today.Date
 
                Dim currentuserguid As Guid = GetCurrentUser.Guid
                Dim currentcollaborateur As Collaborateur = Me._datactx.Collaborateur.Single(Function(c) c.AD_Guid.Equals(currentuserguid))
                .Collaborateur = currentcollaborateur
 
                .IsTemporaire = True
            End With
 
            'Update the database
            Me._datactx.SaveChanges()
 
            'Select the new row
            newrow.EnsureVisible(True)
            newrow.IsSelected = True
            newrow.IsExpanded = True
        Catch ex As Exception
            MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Une erreur est survenue..")
        End Try
    End Sub

The issue is that's the EnsureVisible do not expend the good group (on the yellow one on the picture).  If the "good" group is expended before the sub, all is goning fine (EnsureVisible do not expand the wrong group).

Hristo
Telerik team
 answered on 15 Jan 2015
1 answer
204 views
I have a radGridView (2014.2.715.40) component having among others 2 checkbox columns.  One is named "IsConcilie" and the other one is "IsRetenu".  For each row, when 1 of these columns is true, we can't set the other one to true.  Only one of these 2 columns may be true at a time.  If the user tries to put the second to true, he is advised.  The radGridView is named "MasterTemplate".

Because I want to be able to cancel the action, I added this event handler:
this.MasterTemplate.ValueChanging += new ValueChangingEventHandler(MasterTemplate_ValueChanging);

Then I coded the following:

void MasterTemplate_ValueChanging(object sender, ValueChangingEventArgs e)
{
    GridDataCellElement ce = this.MasterTemplate.CurrentCell;
    if (ce.Name == "IsConcilie")
    {
           if (e.NewValue.Equals(false)) return;
           if (this.MasterTemplate.CurrentRow.Cells["IsRetenu"].Equals(true))
           {
                MessageBox.Show( "You cannot verify a retained cheque", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                e.Cancel = true;
            }
     }
     if (ce.Name == "IsRetenu")
     {
          if (e.NewValue.Equals(false)) return;
          if (this.MasterTemplate.CurrentRow.Cells["IsConcilie"].Equals(true))
          {
               MessageBox.Show("You cannot retain a verified cheque", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Hand);
               e.Cancel = true;
           }
      }
}

Unfortunately, whenever we click one of these checkboxes, the event is not fired.  What's wrong?

Thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Jan 2015
8 answers
229 views
I have RadSplitButton with  2 options (2 radMenuItems)
Is it possible to add near to one of my items a RadSpinEditor in order to give the user the option to choose specific value number ?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Jan 2015
1 answer
181 views
I have a RadGrid in a form which contains 2 Combobox columns named "ITEMNAME" and "BATCHNO" respectively. I have loaded the first column with values from database. I need to populate the second combobox with values based on the value I choose from the first combobox. Which is the apt event to populate the values in a combo box based on another. If possible post a sample code. That would be useful to me.
Hristo
Telerik team
 answered on 14 Jan 2015
1 answer
132 views
I am creating a self-referencing Hierarchical Grid View. I checked the sample and it is setting image in CellFormatting event by accessing 

GridDataCellElement dataCell = e.CellElement as GridDataCellElement;
...........................................................
dataCell.ImageAlignment = ContentAlignment.MiddleLeft;
dataCell.Image = this.imageList1.Images[2]; 
dataCell.TextImageRelation = TextImageRelation.ImageBeforeText;


I want to attach image at the time of inserting the rows into the grid. How can I do that?

Another related question, how can I know if a row has child rows (nodes)
Hristo
Telerik team
 answered on 13 Jan 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)
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?