Telerik Forums
UI for WinForms Forum
1 answer
162 views
I'd like to programmaticly read a value from a theme. I've created the following item:

       <Telerik.WinControls.Styles.XmlRepositoryItem ItemType="Gradient" DisplayName="MyNormalControlColor" Key="MyNormalControlColor" Capacity="4">
        <XmlPropertySetting Property="Telerik.WinControls.VisualElement.BackColor" Value="0, 0, 0" />
        <XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.GradientStyle" Value="Solid" />
        <XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.NumberOfColors" Value="1" />
      </Telerik.WinControls.Styles.XmlRepositoryItem>

If I'm in my code (C#), any idea how to read that value out of the theme to use it when drawing?


Thanks.
Jack
Telerik team
 answered on 26 Jun 2012
1 answer
1.7K+ views
How do I programmically change the background color of the column headers in a DetailsView ListView? I know there is a VisualItemFormatting event, but I am not sure if the headers pass through this event.
Boryana
Telerik team
 answered on 26 Jun 2012
1 answer
122 views
Morning,
Before I log this as an issues, I want to ensure that what I am doing is correct.  I am using the RadTreeView with 3 levels of node and I am dynmaic assigning context menus based on the level.

private void RadTreeView1_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
{
    if (e.Node.Level == 0) 
         { 
                 e.Node.ContextMenu =ContextMenu1 ; 
         } 
     else if (e.Node.Level == 1) 
        { 
                 e.Node.ContextMenu =ContextMenu2; 
        } 
     else (e.Node.Level == 2) 
        { 
                e.Node.ContextMenu =ContextMenu3 ; 
        } 
}

When I right click on the level 2, my context menu works perfect.  When I right click on any other level, I get a single line of pixels which I believe is my menu.  Am I doing the correctly?

Thanks

James
Svett
Telerik team
 answered on 26 Jun 2012
5 answers
447 views
How  can i change the Height of the buttons in Strip view mode?

See the image
Boryana
Telerik team
 answered on 26 Jun 2012
1 answer
109 views
Hi. I'm writing a medical schedule system and I am using the Winforms Scheduler control. Each doctor has diferent working days and each day can have several timework.
 For instance, in Mondays Doctor A works from 9:00AM to 12:00AM in the morning and from 16:00PM to 18:00PM  in the afternoon, On Tuesday, Wednesday and thursday he doesn't work and in Friday he works from 12:00AM to 14:00AM in the morning and from 18:00PM to 20:00PM in the afternoon.
I would like to draw that working hours in the scheduler control and  disable every hour out of his working hours so the user can't create an appointment in that time.

How can I do that??

Thanks
Javier
Stefan
Telerik team
 answered on 26 Jun 2012
4 answers
157 views
Hi Telerik Team
     I use version Q2 2009.
     I use following code to add progress bar as a column
"            if (e.CellElement.ColumnInfo is GridViewDataColumn && ((GridViewDataColumn)e.CellElement.ColumnInfo).FieldName == "Progress")
            {
                if (e.CellElement.Children.Count > 0)//the progress bar is already added to cell                         
                    return;

                RadProgressBarElement element = new RadProgressBarElement();
                element.Minimum = 0;
                element.Maximum = 100;
                element.Value1 = 70;
                element.Value2 = 90;

                e.CellElement.Children.Add(element);
            }"

Everything seems to be OK, but when windows bar is scrolled down and scrolled up, the sequence of progress bar is changed.

I find that someone said it is because some cells are reused to make radgridview be quick.

Can you give me a solution to make progress bar column didn't change when windows bar is scolled down and up.

Thank you very much.
Nikolay
Telerik team
 answered on 26 Jun 2012
8 answers
403 views
Hello,

Is it possible to change the BackColor of a set of characters in a cell in order to highlight search results?  I know I can change the background of the cell but I would like to highlight the text as Outlook does when you are searching for an email.  Thank you for your help.

Tyler
Ivan Petrov
Telerik team
 answered on 25 Jun 2012
1 answer
225 views
I have a RadGridView in Winforms and a date time cell which when clicked will show the text edit mode and a drop down arrow to the right. On clicking the drop down arrow the nice calendar date picker shows.

I'm trying to get the calendar to show straight away but can't find a method on the calendar object. My current code is as follows;

Private Sub OrderGridView_CellEditorInitialized(sender As Object, e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles OrderGridView.CellEditorInitialized
    Console.WriteLine("Editor init: {0}", e.ToString())
 
    Dim editor = TryCast(OrderGridView.ActiveEditor, RadDateTimeEditor)
    If (editor IsNot Nothing) Then
        Dim calendar = DirectCast(editor.EditorElement, RadDateTimeEditorElement)
        calendar.GetCurrentBehavior().DateTimePickerElement.Visibility = Telerik.WinControls.ElementVisibility.Visible
        calendar.PerformClick()
        calendar.Select()
    End If
 
End Sub


Is there a way to do this? Perhaps if not possible, I'll fake a click to the drop down button.

Thanks in advance
Peter
Telerik team
 answered on 25 Jun 2012
1 answer
356 views
gdi error (generic error) occurs when i tried to load data from database which contains Unicode characters to a crystal report. I have tried all Unicode supporting fonts including Arial Unicode MS, AnjaliOldLipi, Thoolika etc.data set ds contains Unicode strings such as "മറ്റ് അര്‍ച്ചന", "അര്‍ച്ചന", etc.  Please find me a solution asap.  
AssetBLL objAssetBLL = new AssetBLL();
            AssetBOL objBOL = new AssetBOL();
            objBOL.tno = Convert.ToInt16(lblTno.Text);
            objBOL.flag = lblflag.Text;
            DataSet ds = objAssetBLL.getDonationBill(objBOL);
            DonationBillReport rpt = new DonationBillReport();
            rpt.SetDataSource(ds.Tables[0]);
            crystalReportViewer1.ReportSource = rpt;
Peter
Telerik team
 answered on 25 Jun 2012
1 answer
77 views
Hi, i have a self-referencing hierarchy grid with 1000 rows and 14 columns and the vertical scrolling is very, very poor. I have tried the app.mda.exe.config solution i have read in this forum but no sense.
Any help?

Thanks
Jack
Telerik team
 answered on 25 Jun 2012
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?