Telerik Forums
UI for WinForms Forum
1 answer
256 views
Is it possible to do custom filtering in the listview like it is possible in radgridview?

I want to do a contains filter on an integer column.  But this is not possible. In radgridview this was possible by setting the MasterTemplate.FilterPredicate.
Julian Benkov
Telerik team
 answered on 04 Aug 2011
1 answer
101 views
Hi,

In the design time, when I open the "Rows" properties of the RadCommandBar, the exception error will be thrown.  I have no idea what's wrong.  Please advise. Thanks!


Best Regards,
Emily
Stefan
Telerik team
 answered on 04 Aug 2011
2 answers
315 views
Hello,
I'm
formatting some columns RadGridView to give effect link in a cell.
I'm doing this using the event "CellFormatting." The effect works well until you use the scroll bar to navigate between records. We realize that some cells that are not in the context of link is getting the effect. It seems to me that there is a problem to apply the effect on the grid at the time the scrolling and done quickly.

Tks.

 Below is the code inserted to modify the cell.
public void CtrlDataGridList_CellFormatting(object sender, CellFormattingEventArgs e)
        {
            switch (e.Column.Name)
            {
                case "CommandColumnSearchMother":
                case "CommandColumnSearchFather":
                    if (!string.IsNullOrWhiteSpace(e.CellElement.Text.Trim()))
                    {
                        e.CellElement.CustumizeLinkCell();
                    }
                    break;
                case "CommandColumnOpen":
                    if (string.IsNullOrEmpty(_openMessage))
                    {
                        _openMessage = I18n.Term.I18nTerm.GetMessage("OPEN");
                    }
                    e.CellElement.Text = _openMessage;
                    e.CellElement.CustumizeLinkCell();
                    break;
            }
        }
 
public static void CustumizeLinkCell(this GridCellElement cellElement)
        {
            cellElement.Font = new Font(SystemFonts.DialogFont, FontStyle.Underline);
            cellElement.ForeColor = Color.Blue;
        }

 

Jacques
Top achievements
Rank 1
 answered on 04 Aug 2011
1 answer
162 views
hi,

i building theme using visual theme builder,
i don't know how to set theme for horizontal scroll bar  of grid
plz help me
Ivan Petrov
Telerik team
 answered on 04 Aug 2011
8 answers
239 views
Is there a way to replicate the behaviour of the Outlook calendar, where you click on an individual day and the entire week is highlighted?

I have linked the Calendar to a Scheduler control, and it displays the correct week there, but I would like to highlight the entire week in the Calendar control, rather than the single day

Thanks
Boryana
Telerik team
 answered on 04 Aug 2011
1 answer
241 views
Hi,

Can anyone please advise as to how I can set the border and fill color for inactive tabs? My selected tab shows up nicely, but I have a bunch of inactive/un-selected tabs, and because there's a fair amount of text on each, it shows up a a shaded long line of text.
Boryana
Telerik team
 answered on 04 Aug 2011
1 answer
256 views
Hello all,

Is there a way that I display Date AND Tim on xasis? 

ChartValueFormat enum has ShortTime and ShortDate, but NO ShortDateTime. 

Appreciate your helps.

Cheers!
Missing User
 answered on 03 Aug 2011
0 answers
97 views
Hi

I have a telerikGrid:RadGridView as parent and collection of telerikGrid:RadGridView as child of each row of parent grid. i need to expand all the rows of parent gridview showing the childeren when form is loaded

thanks
jagan
Jagadeesh
Top achievements
Rank 1
 asked on 03 Aug 2011
1 answer
135 views
I am looking into replacing our current docking control with the RadDock control. What our current dock control allows us to do is have a fairly simple xml configuration to allow dynamic layouts. We have a bunch of controls that can be dynamically loaded, the customer can control which controls are loaded and the layout (dock position, auto hide, and so on).

Example plugin config
<plugin load="true"
        type="AssemblyName, ClassName"
        path=".">
    <Form>
        <Guid>d3b14ad1-e970-4445-9a27-2cedf211ca3a</Guid>
        <AllowedDock>All</AllowedDock>
        <CurrentDock>Bottom</CurrentDock>
        <CurrentMode>Inner</CurrentMode>
        <IsSelected>true</IsSelected>
        <IsAutoHide>false</IsAutoHide>
        <Width>400</Width>
        <Height>371</Height>
        <ParentGuid>1fbc51f7-f459-425b-884d-91a33602440c</ParentGuid>
        <Name>PTZ</Name>
        <Screen>1</Screen>
    </Form>
</plugin>

This control is a child (controlled by CurrentMode tag) and will be display in the bottom portion of it's parent (controlled by the CurrentDock tag). If the CurrentDock is changed to Fill then it will the same space as it's parent and become a TabControl.

My question is, does the RadDock have the ability to allow me to dynamically build up this layout from a simple configuration? I would like to just add the RadDock control to the form and have it built up from the config file, the customer would also need to be able to change the layout.

This is the code that will load all the controls in the app.config file where plugin load = true. This seems to give me the parent / child tab layout I am looking for, but it seems like it's not the "right" way to do it. For instance, if I want two controls docked Left within the RadDock but tabbed, would it be better to create a ToolWindow and add those two controls to that, or pass in the target control (parent) while calling DockControl?

foreach (SnapInBase plugin in BuildPluginHierarchy(this.plugins))
{
    try
    {
        if (plugin.MetaData.ContainsKey("Form") && plugin.MetaData["Form"] != null)
        {
            XmlNode n = plugin.MetaData["Form"];
 
            plugin.Dock = DockStyle.Fill;
 
            DockPosition position = ParseXmlNode<DockPosition>(n, "DockPosition");
            DockType dockType = ParseXmlNode<DockType>(n, "DockType");
 
            Guid guid = ParseXmlNode<Guid>(n, "Guid");
            int width = ParseXmlNode<Int32>(n, "Width", plugin.Width);
            int height = ParseXmlNode<Int32>(n, "Height", plugin.Height);
            bool isAutoHide = ParseXmlNode<Boolean>(n, "IsAutoHide");
            Guid parentGuid = ParseXmlNode<Guid>(n, "ParentGuid");
            int screen = ParseXmlNode<Int32>(n, "Screen", 1);
 
            if (screen == 1)
            {
                if (parentGuid != Guid.Empty)
                {
                    HostWindow parent;
                    if (this.controlCache.TryGetValue(parentGuid, out parent) == true)
                    {
                        HostWindow window = null;
 
                        window = this.radDock1.DockControl(plugin, parent, position, dockType);
 
                        if (isAutoHide == true)
                        {
                            this.radDock1.AutoHideWindow(window);
                        }
 
                        this.controlCache.Add(guid, window);
                    }
                }
                else
                {
                    var window = this.radDock1.DockControl(plugin, position, dockType);
 
                    if (isAutoHide == true)
                    {
                        this.radDock1.AutoHideWindow(window);
                    }
 
                    this.controlCache.Add(guid, window);
                }
            }
        }
        else
        {
            logger.Error(string.Format("No form metadata for {0}", plugin.Name));
        }
    }
    catch (Exception ex)
    {
        logger.Error(ex);
    }
}

What I am hoping for is to find out is if there is a better way to do what I'm trying to do. I will provide the customer a default layout, and they can change it how they see fit.

Thanks,
Matt
Julian Benkov
Telerik team
 answered on 03 Aug 2011
7 answers
768 views
i have custom controls inside a page view control. the custom control binds data on the load event. the problem is whenever a control is being added to the page view the load event of the control is being fired immediately inside the constructor of the control which holds the page view control. as a result it throws exception when trying to access data.

the following code is the component initialization code which is called from the constructor of the control which holds the page view control

private void InitializeComponent()
        {
            this.rdpvAppCodeFiles = new Telerik.WinControls.UI.RadPageView();
            this.rdpvpBank = new Telerik.WinControls.UI.RadPageViewPage();
            this.ctlManageBank1 = new CRS.Client.App.Documents.CodeFiles.ApplicationCodeFiles.BankDocuments.ctlManageBank();
            ((System.ComponentModel.ISupportInitialize)(this.rdpvAppCodeFiles)).BeginInit();
            this.rdpvAppCodeFiles.SuspendLayout();
            this.rdpvpBank.SuspendLayout();
            this.SuspendLayout();
            //
            // rdpvAppCodeFiles
            //
            this.rdpvAppCodeFiles.Controls.Add(this.rdpvpBank);
            this.rdpvAppCodeFiles.Dock = System.Windows.Forms.DockStyle.Fill;
            this.rdpvAppCodeFiles.Location = new System.Drawing.Point(0, 0);
            this.rdpvAppCodeFiles.Name = "rdpvAppCodeFiles";
            this.rdpvAppCodeFiles.SelectedPage = this.rdpvpBank;
            this.rdpvAppCodeFiles.Size = new System.Drawing.Size(846, 502);
            this.rdpvAppCodeFiles.TabIndex = 1;
            this.rdpvAppCodeFiles.Text = "radPageView1";
            this.rdpvAppCodeFiles.SelectedPageChanged += new System.EventHandler(this.rdpvAppCodeFiles_SelectedPageChanged);
            ((Telerik.WinControls.UI.RadPageViewStripElement)(this.rdpvAppCodeFiles.GetChildAt(0))).StripAlignment = Telerik.WinControls.UI.StripViewAlignment.Right;
            ((Telerik.WinControls.UI.RadPageViewStripElement)(this.rdpvAppCodeFiles.GetChildAt(0))).ItemContentOrientation = Telerik.WinControls.UI.PageViewContentOrientation.Horizontal;
            //
            // rdpvpBank
            //
            this.rdpvpBank.Controls.Add(this.ctlManageBank1);
            this.rdpvpBank.Location = new System.Drawing.Point(10, 10);
            this.rdpvpBank.Name = "rdpvpBank";
            this.rdpvpBank.Size = new System.Drawing.Size(750, 481);
            this.rdpvpBank.Text = "Bank";
            //
            // ctlManageBank1
            //
            this.ctlManageBank1.CurrentMode = CRS.Client.Automation.Documents.ctlDocumentUIBase.OperationMode.None;
            this.ctlManageBank1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.ctlManageBank1.Document = null;
            this.ctlManageBank1.Location = new System.Drawing.Point(0, 0);
            this.ctlManageBank1.Name = "ctlManageBank1";
            this.ctlManageBank1.Size = new System.Drawing.Size(750, 481);
            this.ctlManageBank1.TabIndex = 0;
 
            // ctlApplicationCodeFilesSwitchBoard
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.rdpvAppCodeFiles);
            this.Name = "ctlApplicationCodeFilesSwitchBoard";
            this.Size = new System.Drawing.Size(846, 502);
            ((System.ComponentModel.ISupportInitialize)(this.rdpvAppCodeFiles)).EndInit();
            this.rdpvAppCodeFiles.ResumeLayout(false);
            this.rdpvpBank.ResumeLayout(false);
 
            this.ResumeLayout(false);
 
        }


here ctlManageBank1 is my custom control which loads data on its load event. the load event is being called immediately after the control is added to the page object of page view control (bold line).

if i use a tab control instead of a page view control everything goes fine. the load event fires at the time of showing the control, not inside the constructor.


Julian Benkov
Telerik team
 answered on 03 Aug 2011
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?