Telerik Forums
UI for WinForms Forum
1 answer
61 views

I am loading a Gridview in unbound mode to create  hierarchy. I followed the article and leaving all grid properties set to defaults, I can successfully create the hierarchical relationship and it will display. Then I start setting properties to tailor the grid. Note I am trying to create a "toolbox" like view where summary information about a tool is the top level, then clicking it exposes more information. This means the result is something that is not "grid looking per se.

Anyhow as I start removing grid features - grouping, etc. at some point I hit a property that prevents the child from displaying; but I don't know which one(s)

Is there a list of properties that cannot be set to false ?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Apr 2020
4 answers
89 views

Hi everyone, i need some ideas. Currently I implement print screen into my project. So print button will print all the content in my page. I set up all the content in one panel which is 'mainPanel'. In my 'mainPanel' there have gridview. How can I hide this gridview when I print screen the page? Here I attach the image for the page.

 

Thank you.

fazera
Top achievements
Rank 1
 answered on 06 Apr 2020
2 answers
230 views

Hello

I have a Droddownlist that is populated with a datasource that contains a liste of objects that has 5 properties; I set thedisplaymember and valuemember to two properties ("Description" and "ItemCode") of the object.

Immediately after assigning the datasource a "selectedIndexChanged" event is fired; at this point I have in the selectedvalue property the object of index 0 of the datasource, therefore I can access to the valuemember by "selectedValue.ItemCode"

When, later, the user selects an item in the dropdownliste, the selectedindex is fired, the "selectedItemValue" contains the property "itemcode" of the selected item and not the selected object

Consequently I dont know how to get access to the "itemCode" property in the selectedIndex event, if I use .SelectedValue.itemcode it works after the loading but fails when the user selects an item; and if I use SelectedValue the code fails immediately after databinding

Thanks in advance for your advice

Pierre-Jean

 

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 06 Apr 2020
3 answers
136 views

Is there anyway to make label in the Aggregates area more uniformly legible?

My PivotGrid has a lot of column to display.
 I make some changes: 
 
PivotAggregateDescriptorContainer pivotAggregateDescriptorsAreaContainer = radPivotGrid.PivotGridElement.AggregateDescriptorsArea;
pivotAggregateDescriptorsAreaContainer.FixedItemSize = true;

And implement method:
void radPivotGrid_AggregateDescriptorElementCreating(object sender, AggregateDescriptorElementCreatingEventArgs e)
{
    PivotAggregateDescriptorElement aggregateElement = e.AggregateDescriptorElement;
    aggregateElement.TextWrap = true;
    aggregateElement.DrawFill = false;
}

The issue is that PivotAggregateDescriptorContainer  overlap PivotColumnDescriptorContainer, It doesn't see "Aggregates" label.

Please help

Thank you.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Apr 2020
2 answers
63 views

Hi, very basic question for noob, I searched & tried to find someone just doing a basic gridview row save...thing

I have a RadGridView bound to a  SQL database

I am wondering what the generally accepted method is, of updating a row to the database?

A button to fire off an update statement?

 

Thanks,

Rich

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Apr 2020
1 answer
125 views

Greetings,

Is there any StartMenu event such as clicking event to control?

As it isn't considered a ribbonbar's tab, it can not be controlled using tab events.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Apr 2020
1 answer
104 views

Greetings,

I have a Radlistview, a Textbox, and a Button. User enters a decimal or non-decimal number in the Textbox (For example, 3.1) and clicks the button.

Here is the clicking event of the button :

' RadlistView sorting is enabled in loading event of my form.
 
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Radlistview1.Items.Add(Textbox1.Text)
Dim sort = New SortDescriptor("Text", ListSortDirection.Ascending)
Radlistview1.SortDescriptors.Add(sort)
End Sub

 

I did a test :

1- Adding the first item to RadlistView with textbox value set to 20.

2- Adding the Second item to RadlistView with textbox value set to 2.1.

 

As sorting direction is set to Ascending (also tested with descending), 2.1 should be placed as the first item because it is smaller than 20. But it doesn't work.

I appreciate any solution to this issue. Thanks

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 31 Mar 2020
4 answers
530 views
How to create gridviewtemplate dynamically in winforms?

The sample code below is with statically created gridviewtemplate, how to make it dynamically with 'n' number of gridviewtemplate from code?

            radGridView1.DataSource = dt;

            GridViewTemplate firstChildtemplate = new GridViewTemplate();
            firstChildtemplate.DataSource = dt1;
            radGridView1.MasterTemplate.Templates.Add(firstChildtemplate);

            GridViewRelation relation = new GridViewRelation(radGridView1.MasterTemplate);
            relation.ChildTemplate = firstChildtemplate;
            relation.RelationName = "HeaderDetails";
            relation.ParentColumnNames.Add("HeaderID");
            relation.ChildColumnNames.Add("ParentHeaderID");
            radGridView1.Relations.Add(relation);


            GridViewTemplate secondChildtemplate = new GridViewTemplate();
            secondChildtemplate.DataSource = dt2;
            firstChildtemplate.Templates.Add(secondChildtemplate);

            GridViewRelation relation2 = new GridViewRelation(firstChildtemplate);
            relation2.ChildTemplate = secondChildtemplate;
            relation2.RelationName = "CAPFieldDetails";
            relation2.ParentColumnNames.Add("HeaderID");
            relation2.ChildColumnNames.Add("ParentHeaderID");
            radGridView1.Relations.Add(relation2);
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Mar 2020
5 answers
1.3K+ views

Hello,

 Am using Rad grid view with Multi column combo box.

 I created a Column type as GridViewMultiComboBoxColumn, attached the data source, also included the displaymember, valuemember,dropdwonstyle as RadDropDownStyle.DropDown. and added the column to the grid.

I am facing a problem that if i type in the  GridView MultiComboBox Column, the control is not filtering and showing result.

I got a documentation  saying

The drop-down element is an object of type MultiColumnComboBoxElement. Use this element to set the drop-down style, animation and sizing as you would do for the regular combobox.  
The EditorControl property of the MultiColumnComboBoxElement gives you a reference to the RadGridView control. Using that reference you can obtain the RadGridView object and work as with normal RadGridView control. Refer to RadGridView documentation for additional information on RadGridView.

The current version has one limitation that you should consider:
You cannot use the auto-complete mode of RadDropDownList
The RadGridView control hosted in the drop-down does not allow editing operations
The RadGridView control hosted in the drop-down does not support filtering, grouping and sorting operations.

kindly confirm me is it a limitation or do i need to include something else in my code.

I am including the code snip shot for your ref. 

bool isColumnAdded=false; 

private void Form1_Load(object sender, EventArgs e)
        {
            filldata();​

     }

 

private void filldata()
        {
            SqlCommand cmmdata = new SqlCommand();
            cmmdata.Connection = constkbal;
            cmmdata.CommandText = "select top 50 stockno from itemmaster";
            SqlDataReader srdtls = cmmdata.ExecuteReader();
            DataTable dtdetails = new DataTable();
            dtdetails.Load(srdtls);
            srdtls.Close();
            GridViewMultiComboBoxColumn col = new GridViewMultiComboBoxColumn();
            col.DataSource = dtdetails;
            col.DisplayMember = "stockno";
            col.ValueMember = "stockno";
            col.FieldName = "stockno";
            col.HeaderText = "stockno";
            col.Width = 400;
            col.DropDownStyle = RadDropDownStyle.DropDown;
            col.FilteringMode = GridViewFilteringMode.DisplayMember;
            
            this.griditemdisplay.Columns.Add(col);
     }

private void griditemdisplay_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
        {
            if (this.griditemdisplay.CurrentColumn is GridViewMultiComboBoxColumn)
            {
                if (!isColumnAdded)
                {
                    isColumnAdded = true;
                    RadMultiColumnComboBoxElement serchengineElement = (RadMultiColumnComboBoxElement)this.griditemdisplay.ActiveEditor;
                    serchengineElement.DropDownSizingMode = SizingMode.UpDownAndRightBottom;
                    serchengineElement.DropDownMinSize = new Size(550, 300);
                    serchengineElement.DropDownMaxSize = new Size(550, 300);
                    serchengineElement.EditorControl.MasterTemplate.AutoGenerateColumns = false;
                    serchengineElement.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
                    serchengineElement.AutoSizeDropDownToBestFit = false;
                    serchengineElement.DropDownAnimationEnabled = false;
                    serchengineElement.EditorControl.Columns.Add(new GridViewTextBoxColumn("Stockno"));
                    FilterDescriptor filtercustomername = new FilterDescriptor("Stockno", FilterOperator.Contains, string.Empty);
                    serchengineElement.EditorControl.FilterDescriptors.Add(filtercustomername);

                }
            }

        }​​

 

 

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Mar 2020
2 answers
107 views

Is it possible to have a custom shaped screen tip? 

I have created a custom screen tip class, set the Shape property of the element to be a shape and it appears to work visually but it's leaving a grey background in the spots where I want it to be transparent. See attached. 

 

I have also tried doing the same but with an image, making the background of the image transparent, but the same thing happens. 

 

Thanks. 

 

 

Daniel
Top achievements
Rank 1
 answered on 27 Mar 2020
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
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
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?