Telerik Forums
UI for WinForms Forum
9 answers
568 views

I can change split panel collapse direction to left or right like this. But can I have both splitter buttons (left and right direction) on RadSplitContainer with only 2 SplitPanels?

I noticed that if the RadSplitContainer had more than 3 panels, the splitter button showed 2 buttons (left and right direction)

 

Hristo
Telerik team
 answered on 31 Jan 2018
4 answers
115 views
Hi

I'm using GridViewPdfExport to export a radGrid to pdf. I have a column that is set up to use a mixture of radTextBoxEditors, RadDropDownListEditors and RadDateTimeEditors depending on the data in the cell. The RadDropDownList editors each have different data sources but each uses an integer ID field as the valueMember and a text field as the displayMember. When I export to pdf, the cells that use a RadDropDownListEditor export the valueMember and not the displayMember. How do I get them to export the DisplayMember? 

I can see that I'd need to use the exportToPdfCellFormatting event but I don't know how to:
 - work out whether the cell uses a RadDropDownListEditor (I can use logic based on the values of other cells in the row but if I do that, I can see it leading to a bug at some point in the future when new logic is added to the form. It would be much safer if I can write the equivalent of "If the cell uses a RadDropDownListEditor")
 - get the DisplayMember value
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Jan 2018
1 answer
536 views
I Have managed to display databound items in listview with checkbox, but it is been displayed as single column I would like that to displayed in 4 column. Basically I want to display listview items as multiple columns so if anyone can help me out please do help Thanks in Advance.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Jan 2018
1 answer
355 views
I have a need for the contents of a dropdown list to be a treeview.  When an item in the treeview is selected I need to know that the user selected that specific item.
Dimitar
Telerik team
 answered on 31 Jan 2018
1 answer
434 views
I need to add a column to the GridView that would be a dropdown.  The contents of the drop down may potentially be a grid of its own.  Is this achievable?
Dimitar
Telerik team
 answered on 31 Jan 2018
2 answers
213 views

Hello guys! I have a small deal with DropDownList...



I need to create a path selector, and this is how I see it:
- when I'm writing "C:\" DropDown starts showing AutoComplete options
- Paths that were in usage  (it will be decided after some program runs) it will save it to its DataSource.

Standard Combox can do all of theese requirements, It will be like:
AutoCompleteSource = AutoCompleteSource.FileSystemDirectories
and after save the "good" paths to DataSource.

I find somthing same in the Telerik lib - a DropDownList but it hasn't property AutoCompleteSource where I can set AutoCompleteSource.FileSystemDirectories...

I continued to search for solutions and found RadMaskedEditBox that has AutoCompleteSource like I want, but has no DropDownMenu for saving used pathes.
If there other solutions that I didn't see? I don't want to write algorithm for DropDownList which will AutoComplete directories, I think there is a more beautiful solution.

Thanks!

Ivan
Top achievements
Rank 1
 answered on 30 Jan 2018
3 answers
516 views
When binding data to SpinEditor, I want to display value number (double?, decimal?) for SpinEditor, so I want seperate between 0 and blank/null. How can I set it be default?
Dimitar
Telerik team
 answered on 30 Jan 2018
1 answer
210 views

I tried searching for this but apparently I'm the only one with this issue right now.

So here's the very basics:  My app has a radform with a button.  You click this button and it creates another RadForm, but this one is a FormBorderStyle FixedToolWindow. When I hit Alt-Tab and see it, it's not the icon I assigned to the Form. (via the Designer with the Form Icon property)  It's the default app Icon.

Attaching what it looks like.  (it's the selected one)  This icon is the same in the Taskbar as well. The Application Icon shows up just fine though (That's the AC one in the attached pic) 

How do I change the form Icon? 

 

 

VS 2015

Windows 8.1 64bit

Telerik 17.1.221.0

Dimitar
Telerik team
 answered on 30 Jan 2018
5 answers
105 views

Hello,

is it possible to select more than one column at once?

 

Kind regards

Marc

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jan 2018
3 answers
368 views

I have a RowSourceNeeded event, and inside that event I create my child GridView and add rows to it.  There are conditions that would keep me from adding the child GridView; however, I still need to add this child when I do have the data required to do so.

In this event I check a property "model.Parameters" which could be null; however, it is not always going to be null (after handling the RowSourceNeeded event) and when not null I need to add the child GridView.

Here's where I add it.

// get the analysis parameter differences for this row (scan)
private async void BatchComparisonGrid_RowSourceNeeded(object sender, GridViewRowSourceNeededEventArgs e)
{
    // tell user we're getting the analysis parameters
    UpdateWaitingBar(ElementVisibility.Visible, "Getting analysis parameters");
 
    // get item bound to the row
    ComparisonScanViewModel model = e.ParentRow.DataBoundItem as ComparisonScanViewModel;
 
    await Task.Factory.StartNew(() =>
    {
        if (null != model && null != model.Parameters)
        {
            // I don't do anything here, I just needed to cause 'model.Parameters' to
            // be called since it is a timely call.
        }
    });
 
    // update the UI
    if (null != model &&
        null != model.Parameters)
    {
        foreach (ComparisonAnalysisParameterViewModel am in model.Parameters)
        {
            // build values to go in the row details grid
            GridViewRowInfo row = e.Template.Rows.NewRow();
            row.Cells["Description"].Value = am.Title;
            row.Cells["Value"].Value = am.Value;
 
            e.SourceCollection.Add(row);
        }
 
        e.ParentRow.IsExpanded = true;
    }
 
    // tell the user we're done
    UpdateWaitingBar(ElementVisibility.Collapsed);
}

 

Later, I'm listening to the CurrentRowChanging event.  Here I can get the same data from the model and potentially build the child GridView; however, I don't have the necessary information required that was provided to me in the RowSourceNeeded event.  I.e. e.Template and e.SourceCollection.

 

// row is changing in the grid and time to expand that item to show the details for the row
private void BatchComparisonGrid_CurrentRowChanging(object sender, CurrentRowChangingEventArgs e)
{
    if (e.NewRow is GridViewHierarchyRowInfo)
    {
        foreach (var item in BatchComparisonGrid.Rows)
        {
            item.IsExpanded = false;
        }
 
        // get model
        ComparisonScanViewModel model = e.NewRow.DataBoundItem as ComparisonScanViewModel;
        if(null != model.Parameters)
        {
            // code would go here that checks to see if this row already had the child GridView
            // added, and if not AND model.Parameters is not null, then we'll add the child GridView now.
 
            // BUT, how to do this from here ????
        }
 
        // expand
        e.NewRow.IsExpanded = true;
    }
}

 

Is there some way to access what I need from the CurrentRowChanging event in order to add the child GridView...since the RowSourceNeeded event is never raised again after the first time it is raised?

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jan 2018
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?