Telerik Forums
UI for WinForms Forum
0 answers
90 views

Hi,

ich would like to get the last entered Appointment date in the Scheduler and

the Appointment, wich has the recent date in Scheduler?

Can u help me?

 

Best Regards

Bledar

bledar
Top achievements
Rank 1
 asked on 25 Aug 2015
3 answers
279 views

 Okay upgraded to Q2_2015_2_728.

 I have the following code

var exporter = new Telerik.WinControls.UI.Export.SpreadExport.SpreadExport(this.contents);

....

....
exporter.RunExport(fileName);

 Since these are now obsolete, what is the replacement. Documentation is non-existent.

Thanks for the help.

Dimitar
Telerik team
 answered on 25 Aug 2015
5 answers
672 views
Hello,

I have pie chart and assigned a custom palette with 4 colors (red, green, orange and blue), only first fill color, no additional setting. This works well so far. I also want to display the according labels. This works also, but all the labels have the same background color as it corrensponding data point/segment. That I would like to change.
When I don't use any palette than each segement has its own color but the all the labels have white background.

Is there a way to change the background color of the labels?
Stefan
Telerik team
 answered on 25 Aug 2015
6 answers
186 views
When I use the tree as MultiColumnComboBox
 The table has a relation with itself
When I click on MultiColumnComboBox the popup
  The following error occurs


radMultiColumnComboBox1.MultiColumnComboBoxElement.EditorControl.Relations.AddSelfReference(this.radMultiColumnComboBox1.MultiColumnComboBoxElement.EditorControl.MasterTemplate, "id", "parentid");
            sqlDataAdapter1.Fill(dataSet11);
            radMultiColumnComboBox1.DataSource = t1BindingSource;
            radMultiColumnComboBox1.DisplayMember = "name";
            radMultiColumnComboBox1.ValueMember = "id";
 
 
 
 
            this.radMultiColumnComboBox1.AutoFilter = true;
            this.radMultiColumnComboBox1.DisplayMember = "name";
            FilterDescriptor filter = new FilterDescriptor();
            filter.PropertyName = this.radMultiColumnComboBox1.DisplayMember;
            filter.Operator = FilterOperator.Contains;
            this.radMultiColumnComboBox1.EditorControl.MasterTemplate.FilterDescriptors.Add(filter);
sql create table
relation in id and parentid
CREATE TABLE [dbo].[T1](
    [id] [int] NOT NULL,
    [name] [nvarchar](50) COLLATE Arabic_CI_AS NULL,
    [parentid] [int] NULL,
 CONSTRAINT [PK_T1] PRIMARY KEY CLUSTERED
(
    [id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
 
GO
ALTER TABLE [dbo].[T1]  WITH CHECK ADD  CONSTRAINT [FK_T1_T1] FOREIGN KEY([parentid])
REFERENCES [dbo].[T1] ([id])
GO
ALTER TABLE [dbo].[T1] CHECK CONSTRAINT [FK_T1_T1]
Stefan
Telerik team
 answered on 25 Aug 2015
2 answers
308 views
Hello,

There are Exit and Options button at runtime in radribbonbar's start menu, but I don't want them to show up. How can I achieve this?

Stefan
Telerik team
 answered on 25 Aug 2015
19 answers
637 views
Nice coding! I've following question:
In my previos in Time field I make this for editing:
ResultGridView.Columns["Time"].HeaderText = "Time";
            ResultGridView.Columns["Time"].DataTypeConverter = new DateToTimeConverter();
...
private void ResultGridView_EditorRequired(object sender, EditorRequiredEventArgs e)
        {
            if (ResultGridView.CurrentColumn.Name == "Time")
            {
                e.Editor = new GridTimePickerEditor();
            }
        }
...
public class DateToTimeConverter : TypeConverter
    {
        public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
        {
            return destinationType == typeof(DateTime);
        }
 
        public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
        {
            TimeSpan span = (TimeSpan)value;
            DateTime dt = new DateTime(span.Ticks);
            return dt;
        }
 
        public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
        {
            return sourceType == typeof(DateTime);
        }
 
        public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
        {
            DateTime dt = (DateTime)value;
            TimeSpan span = new TimeSpan(dt.Hour, dt.Minute, dt.Second);
            return span;
        }
    }
Now I can edit only hour and minute, it possible to edit seconds and milliseconds too?
Dimitar
Telerik team
 answered on 25 Aug 2015
1 answer
328 views

Can you bind a column to a specific index in a List, without using a hierarchical grid?

For example, with the following data structure:

public class Survey {
    public string Name { get; set; }
    public List<string> Answers { get; set; }
    public Survey() {
        Answers = new List<string>();
    }
}
 

The grid is bound to a data source of List<Survey>.  

I can obviously create a column with a FieldName of: "Name".

Can I create a column with a FieldName of: "Answers[0]"?

 

I looked at the documentation article Binding to Sub Objects, and I didn't notice any restrictions on this.

 

Thanks,

Eric.

Stefan
Telerik team
 answered on 24 Aug 2015
0 answers
125 views

Hi Dear

I have Radribbonbar with 3 tab  and every tab have multiple group and every group

have multiple radbuttonelement.

i want to control them dynamically i add to db permissions and read them for example like this:

menu1  true

menu2 false

how can i read and apply hide or visible in radribbon bar?

 

 

Masoud
Top achievements
Rank 1
 asked on 22 Aug 2015
2 answers
103 views

Hi,

I would like to be able to customize the printing of a hierarchical GridView.

1) The only selected rows are to be included

2) Only two columns are required in the output

 What is the best way to achieve this?

 

Greg
Top achievements
Rank 1
 answered on 19 Aug 2015
1 answer
143 views

Hi,

 

I window form, Grid contains the 4 columns. when I entered data in any columns and bymistake I clicked on Grid header,  it does remove the data which I entered in the columns.so How can i prevent the remove data even clicked on Grid header..

 

Regards,

Dilip

 

Stefan
Telerik team
 answered on 19 Aug 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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
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
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?