Telerik Forums
UI for WinForms Forum
2 answers
306 views
Hi,

I'd like to customize RadListFilterPopup. I need to display in it only "Available Filters" directly, meens without menu element (attachement 1), like filters in GridViewRowElement. I have to use  excel-like filtering instead of clasic GridViewRowElement becouse in some columns I need checkbox list filter which is given in excel-like filtering.

I write below snippet:


void radGridView1_FilterPopupRequired(object sender, Telerik.WinControls.UI.FilterPopupRequiredEventArgs e)
        {
            RadListFilterPopup popup = (RadListFilterPopup)e.FilterPopup;

            var radMenuItems = ((RadMenuItem)popup.Items[1]).Items;

            popup.Items.Clear();

            popup.Items.AddRange(radMenuItems);
        }


It works fine - displays only "Available Filters". But the problem is that after clicking on some element (e.g "Start with" ) the "blue dialog" appears under the filter list, or in another words, filter list isn't closed ( it is closed after click on "blue dialog" ).

So,

1) How can I close filter list, after clicking on one of it element

2) Is there a simpler way to assign only "Available filters" to filter icon (without rest standard content of RadListFilterPopup) - e.g. use another FilterPopup?

thanks in Advance.
Argos
Top achievements
Rank 1
 answered on 27 Nov 2013
1 answer
192 views
Hello
I have control, which inherits from RadDateTimePicker. I use it across my whole application to ensure consistency.

public class RadMaskedDatePicker : RadDateTimePicker
{
    public RadMaskedDatePicker()
    {
        InitializeComponent();
    }
 
    private void InitializeComponent()
    {
        this.Format = DateTimePickerFormat.Short;
        InitializeFooter();
    }
 
    private void InitializeFooter()
    {
        RadDateTimePickerCalendar datePickerCalendarBehavior = this.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar;
        if (datePickerCalendarBehavior == null)
        {
            return;
        }
        RadCalendar calendar = datePickerCalendarBehavior.Calendar;
        calendar.ShowFooter = true;
 
        CalendarStatusElement calendarStatusElement = calendar.CalendarElement.CalendarStatusElement;
        calendarStatusElement.RightToLeft = true;
        calendarStatusElement.LabelElement.Visibility = ElementVisibility.Hidden;
     
        calendarStatusElement.TodayButton.Text = Resources.strToday;
        calendarStatusElement.TodayButton.Click += (sender, args) =>
        {
            calendar.SelectedDates.Clear();
            this.Value = DateTime.Today;
            datePickerCalendarBehavior.PopupControl.HideControl();
        };
 
        calendarStatusElement.ClearButton.Text = Resources.strClear;
        calendarStatusElement.ClearButton.Click += (sender, args) =>
        {
            this.SetToNullValue();
            datePickerCalendarBehavior.PopupControl.HideControl();
        };
    }
 
    [Browsable(false)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
    public override DateTimePickerFormat Format
    {
        get { return base.Format; }
        set { base.Format = value; }
    }
}

Now I want to use it in RadGridView as an editor. I have tried to use some concepts from http://www.telerik.com/help/winforms/gridview-editors-using-custom-editors.html, but with no success.
 How can I achieve the desired functionality?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Nov 2013
5 answers
234 views
Hello,

I want to develop GridView Hierarchy some thing like this http://www.telerik.com/help/winforms/gridview-overview.html. (Panel In GridView)
Is there any simple source for this?
Please help me through this

Thanks,
Pradip.


Pradip
Top achievements
Rank 1
 answered on 27 Nov 2013
18 answers
340 views
Hi
I have a RadButton that is been Host, by RadHostItem, in a RadDropDownButton
I have set the ToolTipText and the property ShowItemsToolTips id set to true, but the tooltip isn"t popping out. the ToolTipNeeded event is called
If i take the same button and put it on a standart RadPanel the tooltip is popping out.

Thanks
Gal

Stefan
Telerik team
 answered on 26 Nov 2013
2 answers
677 views

I am using a RadRibbonForm control, so I hope this is the correct forum. 

Could you give me the lines of code to change the background color of the title bar on a RadRibbonForm?

Why, you ask?  I would like to change the background color of the title bar when the application is in "Test" mode and connected to our test data (vs. production).  I realize this is probably unusual and goes against Microsoft specs for Ribbon Forms, but I want it to be clearly visible to all that the application is connected to test data and not connected to production.  My thought was that all forms in the application (the main RadRibbonForm, and various modal dialogs) would have a highlighted title bar when in test mode.  Regular production users would only see the "normal" view.

I can easily do this on RadForms like this:

     form.FormElement.TitleBar.FillPrimitive.GradientStyle = Telerik.WinControls.GradientStyles.Solid;

    form.FormElement.TitleBar.FillPrimitive.BackColor = Color.Yellow;

But I can't find the right property for the RadRibbonForm. I've tried with no avail things like:

     this.radRibbonBarMain.RibbonBarElement.RibbonCaption.BackColor = Color.Yellow;

Could you help me out?

Chris
Top achievements
Rank 1
 answered on 25 Nov 2013
1 answer
86 views

I use C# to implement the chart and bind the data source with a two-dimension array.
However,each series name on the chart can not be changed to the "xxx", it still shows "series 1", "series 2" and "series 3"

I would like to know what can I do to solve the problem above.  Thank you.

RadChart1.DataSource = twoDimArray;
RadChart1.DataBind();
    ……...
RadChart1.Series[0].Name = "xxx";
RadChart1.Series[1].Name = "yyy";
RadChart1.Series[2].Name = "zzz";

Ves
Telerik team
 answered on 25 Nov 2013
1 answer
138 views
Hi, I have a RadGridViewTable set up in my designer, which contains a MultiComboBoxColumn and I was wondering how I add individual Columns to that MultiComboBoxColumn, manually (as i'm not using data binding) either within the code or through the designer (C#)?

Thanks. 
Ralitsa
Telerik team
 answered on 25 Nov 2013
3 answers
381 views
Hi,

I have a scenario where I have to programmatically create Tables in a RichTextbox editor. The tables are created but I want to insert data into these tables. is there some way to programmatically get to blank tables inside a document and add data into its cells.

could you please share the code for the same?


Thanks in Advance,

Ramana
George
Telerik team
 answered on 25 Nov 2013
2 answers
584 views
all i want is to insert a simple Bulleted List inside RadRichtextBox.
Or basically, I want to show few texts in bullets. 
How do I do that?

BulletedList list = new BulletedList(this.radRichTextBox1.Document);
foreach (string item in TableOfContent)
{
         Paragraph p = new Paragraph();
         p.Inlines.Add(new Span(item));
         list.AddParagraph(p);
         ListItemInfo li = new ListItemInfo(list, p, 1);
}

I tried above code and also this.
Nothing works, not even my text appears inside the richtextbox upon run.
Please help. 
George
Telerik team
 answered on 25 Nov 2013
1 answer
117 views
Is it possible to put text about a bar Series graph...for example, if I had a max y-Axis of 100 and I wanted to put text just about the 100 y_Axis.  Is this possible and if so please show me how.
 
Dimitar
Telerik team
 answered on 25 Nov 2013
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?