Telerik Forums
UI for WinForms Forum
4 answers
285 views
Apologies if this has been covered, but I have exhausted Google searches on this one.

I have a grid with 5 child grids.  One of the child grids does proper horizontal scrolling so the user can see all columns with their widths set as they were at designtime.  However, the other 4 would try to mash all coluns together to fit, and then upon changing the size of said columns, it would only show what would fit.

Examining all the properties of the 5 templates, I really don't see anything different that would cause this.  I even set HorizontalScrollState to AlwaysShow and still no scrollbar.

Also, I need to know how to change the height of the child grid as well.  This could be the problem, maybe the scroll bar is there just not visible?

Thanks.
George
Telerik team
 answered on 12 Dec 2013
2 answers
156 views
hi ..


Previously I used following code to fill the Data Grid Microsoft's own
But it does not work with the new tool Grid View


myconn = New SqlConnection(constr)
       myconn.Open()
       mycomm = New SqlCommand("Select * from tab1 ", myconn)
       reader = mycomm.ExecuteReader
       reader.Read()
       DataGridView1.Rows(DataGridView1.CurrentRow.Index).Cells(0).Value = reader(0).ToString.ToUpper
       DataGridView1.Rows(DataGridView1.CurrentRow.Index).Cells(1).Value = reader(1).ToString.ToUpper
       DataGridView1.Rows(DataGridView1.CurrentRow.Index).Cells(2).Value = reader(2).ToString.ToUpper
       DataGridView1.Rows(DataGridView1.CurrentRow.Index).Cells(3).Value = reader(3).ToString.ToUpper
       DataGridView1.Rows(DataGridView1.CurrentRow.Index).Cells(4).Value = reader(4).ToString.ToUpper
       reader.Close()
       myconn.Close()


What is the solutionØŸ!
THX




Mr
Top achievements
Rank 1
 answered on 11 Dec 2013
8 answers
619 views
Hello:
When I press double click on a tab of the RadRibbonBar, all tabs are minimized.
How do I to control this state?

I need control it, because the space into my form chage every time it's minimized and the location of all the controls cange too.

thanks
Peter
Telerik team
 answered on 11 Dec 2013
6 answers
368 views
Hello Support Team.
I need to know is it possible to put an image in cells?
For example in item(2)(4) of radListView1
Thanks.
Dimitar
Telerik team
 answered on 11 Dec 2013
9 answers
459 views
Hi I have a RadComboBox wihich is populated by a datatable. This is fine. I map the id to an id in my main table using SelectedValue. I have a check in CurrentRowChanging event to see if there are pending changes and there always are, It's as if the combobox keeps setting the rowstate as modified, even though   the values haven't changed.  Any Ideas?
Ankhaa
Top achievements
Rank 1
 answered on 11 Dec 2013
4 answers
297 views
I was just about to send a support ticket when I found the solution to a request for the GridView layout that I'd like to share:

The requested layout:
- The grid is grouped by one column by default
- The user can change the sort order of all columns
- The user can't change the grouping of the grid

Solution:
- Add the GroupByExpression for the column in code or through the designer
- RadGridView.EnableGrouping == true (if false, the grouping header is not shown)
- RadGridView.MasterGridViewTemplate.AllowDragToGroup == false (no more columns can be added to the grouping header)
- set the "AllowGroup" property of the column in the grouping header to "false" (the user can't remove the grouping column from the header)

Perhaps someone else finds this useful.

EDIT:
I missed, that the "column button" in the grouping header contains a "X" to remove the group. This Close Button is still enabled and the user can remove the group. Any suggestions?
Nadia Sangiovanni
Top achievements
Rank 1
 answered on 10 Dec 2013
1 answer
293 views
I am getting a code analysis warning from the generated GridView code in the Designer.cs file for my user controls.  The error reads as follows:

In method 'MyControl.InitializeComponent()', object 'gridViewTextBoxColumn1' is not disposed along all exception paths. Call System.IDisposable.Dispose on object 'gridViewTextBoxColumn1' before all references to it are out of scope.

I know that I can use a SuppressMessage attribute, but it's appearing anywhere I use a GridView and I'd rather not litter my code with a bunch of suppressions.  Is there another way to fix this?


Visual Studio 2012 Ultimate
C#, .NET 4.0
Telerik for Windows Forms 2013.2 724
George
Telerik team
 answered on 10 Dec 2013
3 answers
209 views
This might be the same question as http://www.telerik.com/community/forums/winforms/editors/radautocompletebox-char-causing-tags-to-be-created.aspx - not sure about that.

I'm evaluating Telerik for use in my To-Do application. I want to use the RadAutoCompleteBox for a textline which doesn't only contains Tokenized parts.

---
This is what I want to achieve: I want to autocomplete some words, but not every word.

E.g. I have a list with "to-do contexts":
@office
@home
@computer
@errands
@furnitureshop

I also have a list with tags:
#garagecleanup
#interior
#projectx

So I have added my autocomplete items:

radAutoCompleteBox1.AutoCompleteItems.Add("@office");
radAutoCompleteBox1.AutoCompleteItems.Add("@errands");
radAutoCompleteBox1.AutoCompleteItems.Add("@home");
radAutoCompleteBox1.AutoCompleteItems.Add("@furnitureshop");
radAutoCompleteBox1.AutoCompleteItems.Add("@computer");
radAutoCompleteBox1.AutoCompleteItems.Add("#garagecleanup");
radAutoCompleteBox1.AutoCompleteItems.Add("#interior");
radAutoCompleteBox1.AutoCompleteItems.Add("#projectx");

Now I want the user to be able to type: 

"Buy a new bank @"

And have the dropdown show the AutoCompleteItems starting with @.
Then the user selects "@furnitureshop", so the textbox will receive the tokenized "@furnitureshop". And the user continues:

"Buy a new bank @furnitureshop for my new #"

And have the dropdown show the AutoCompleteItems starting with #.
Then the user selects "#interior" which also gets tokenized.
---
Is this possible at all with the RadAutoCompleteBox? The RadAutoCompleteBox doesn't show suggestions in the dropdown when it's not directly after an tokenized item. (I set the Delimiter to space).
Dimitar
Telerik team
 answered on 10 Dec 2013
3 answers
373 views
Hello Support Team!
1. How may I change back color?
2. How may I change border color?
3. How may I change the grip image
4. How may I set location of items which I add on StatusStrip?
5. How may I locate my item to very last part of the right side of status strip? (without setting RightToLeft to yes) I need to have time at the right side of status strip, exactly like windows desktop.
Thanks.
Dimitar
Telerik team
 answered on 10 Dec 2013
3 answers
345 views
Hi,

I need to have FilterRow to filter some columns. But I need also to filter two columns by checkboxes out of the grid (toogle checkboxes add / remove filter descriptor for this columns). That's why I have to hide Filter Box for this two columns. I did it by ViewCellFormatting event:

void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    GridFilterCellElement filterCell = e.CellElement as GridFilterCellElement;

    if (e.RowIndex == -1 && filterCell != null && filterCell.ColumnInfo.Name == "COLUMN_NAME")
    {
        filterCell.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
    }
}

It works fine, but, as mentioned in documentation, significantly slow down rendering - especially for grid with 20 columns / 100000 rows with sorting.
My question: is there any other solution?
I tried:
1) Attach / Detach this event - I tried to realize when cell with this filter box is redrawn ( because then by default it is again draw with filter box visible ). It speed up interacting with grid, but still there are situation when I see this filter box visible ( minimize Window, ColumnShooser Activate / Deactivate, DataBind, Click on filterRow ...) . Is it good way? Can I found and serve all situation in this way ?
2) Use EditorRequired / Editor Initialized instead ViewCellFormatting. But It helps only not to display filter text box - filter description and button of dropdown list still are visible.

void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
        {
            if (radGridView1.CurrentCell.ColumnInfo.Name == "COLUMN_NAME")
            {
                e.Editor = null;
                e.EditorType = null
            }
        }

3) I was think about override GridViewTextBoxColumn - to find properties responsible for displaing filterbox but I can find such thing

Could you give me some solution?

Thanks in advance!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Dec 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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?