Telerik Forums
UI for WinForms Forum
2 answers
102 views
Hello,

I'm developing a demo for a customer. It consist of a grid to look up for the records and a set of textboxes to edit the data.
As is just a demo, I'm working in memory with custom Business Objects (no database).
The grid allows the user for filtering. The problem is that when I add a new object to the datasource, if the grid is filtered by any column, the new empty record is not shown. If I (the end user) remove the filter, then I am able to see the just added record(s).
This is not a problem, but it's not very fancy :)
It is odd, because if I set a filter programatically this issue doesn't happen. My be it has to do with the fact that the programatic filter is done for an invisible column.
¿Any clue?
Thanks in advance,

Gonzalo

Jack
Telerik team
 answered on 09 Feb 2009
1 answer
163 views
Hi,

I have a little problem with group by display.

I have :
pRadGridView.MasterGridViewTemplate.GroupByExpressions.Add("Something1 as Brand format \"{1} - \",sum(Price) as TotalPrice format \"{1} €\" Group By Something1"); 
 
pRadGridView.MasterGridViewTemplate.GroupByExpressions.Add("Something2 as Size format \"{1} - \",sum(Price) as TotalPrice format \"{1} €\" Group By Something2"); 
 
pRadGridView.MasterGridViewTemplate.GroupByExpressions.Add("Something3 as DontCare format \"{1} - \",sum(Price) as TotalPrice format \"{1} €\" Group By Something3"); 

column definition
            GridViewDataColumn Price_Column = new GridViewDataColumn("Price""Price"); 
            Price_Column.HeaderText = "Prices"
            Price_Column.FormatString = "{0:N2}"
            Price_Column.IsVisible = false
            Price_Column.DataType = typeof(decimal); 
            pRadGridView.MasterGridViewTemplate.Columns.Add(Price_Column); 

The problem is.... what's displayed. I can see :

MyBrand1 - 100.00 €
    Size1 - 50.00 €
         DontCare1 - 25.00 €
         DontCare2 - 25 €
    Size2 - 50.00 €
        DontCare1 - 20 €
        DontCare2 - 30 €
MyBrand2 - 300.00 €
    Size1 - 50.00 €
         DontCare1 - 25 €
         DontCare2 - 25 €
    Size2 - 50.00 €
        DontCare1 - 20 €
        DontCare2 - 30.00 €

Sometime I can see the #.##, and I don't know why, sometime #.

I bind column like this :
// subTotal is a sum a other columns, and it's int value :) 
row.Cells["Price"].Value = subTotal * Math.Round(StreetPriceEuro, 2); 

I change colors of "Expanders" with this code (I don't do anything else with "them") in ViewCellFormatting event
                // Custom expanders colors 
                if (pGridCellElement.RowInfo is GridViewGroupRowInfo && pGridCellElement.RowElement is GridGroupHeaderRowElement) 
                { 
                    int level = ((GridViewGroupRowInfo)pGridCellElement.RowInfo).Group.Level; 
 
                    if (level == 3) pGridCellElement.ForeColor = Color.FromArgb(31, 71, 79); 
                    if (level == 4) pGridCellElement.ForeColor = Color.FromArgb(50, 115, 128); 
                    if (level == 5) pGridCellElement.ForeColor = Color.FromArgb(70, 161, 179); 
 
                    pGridCellElement.HorizontalLineColor = pGridCellElement.ForeColor; 
                    return
                } 

Can you explain me why sum is rounded sometime ? because, I don't mind if my value is an int, My customer want to diplay the ".00".

Thank's

Fabien



Jack
Telerik team
 answered on 09 Feb 2009
1 answer
139 views
I would like to use 32 x 32 icons in each document tab in my docking manager.
How do I resize the tabs so that they are capable of containing the icons ?

At the moment this is just for the icons but the question really pertains to how to alter
the predefined tab sizes to fit whatever else it is I may want to fit in them.
Julian Benkov
Telerik team
 answered on 09 Feb 2009
1 answer
142 views
I have an application with a DockingManager, AutoDetectMdiChildForms=true, and a normal windows form as MdiContainer.

When I add children forms I get tabs as expected, and a drop down menu where I can choose which tab to activate.

I have two questions:

  1. Is it possible NOT to have the tabs, but keep the drop down menu? If my application is run on a screen with low resolution only 1-2 of the tabs are visible, so they are pointless and only generate noise.
  2. I would like to have a Back and a Forward button to navigate through the documents, but I haven't figured out how to do this. Is it possible?

Thanks!

Julian Benkov
Telerik team
 answered on 09 Feb 2009
1 answer
222 views
Hello, i am using the SplashForm component, but am having some problems when running my software on a virtual and/or remote client.

The splash-screen itself takes about a minute to load and you can see the transparancy changing line by line, frame by frame.
I think it is very poor graphics performance that causes the problem. 

I can think of 2 possible solutions:
1. No animation at all, just a simple image.
2. Abort the animation just before the splash.Close()-call

Is any of these possible with the SplashForm-control?

Thanks in avance, 

Joel Sanderi
Jack
Telerik team
 answered on 09 Feb 2009
1 answer
172 views
Hi,

In a  grid view clicking on the menu item ConditionFormatting opens a Conditional Formatting form.
Requirement is to set it's topMost property to True and set focus on it(if opened) at the time of refreshing the grid view. But I am not getting any refrence to this form so that i can call form.TopMost  = true and form.Focus() and also we can open several ConditionalFormatting form at the same time. So i want to focus the current form on which user was working recently.
i tried it this way  at the time of refreshing the GridView but it sets focus to first Conditional Formatting form.


bool setFocusTogridView = true;

foreach (Form form in Application.OpenForms)

{

if (form.GetType() == typeof(ConditionalFormattingForm))

{

form.TopMost = true;

form.Focus();

setFocusTogridView = false;

break;

}

}

if(setFocusTogridView)

this.gridView.Focus();

Please let me know if there is some solution for this problem.

I am using Telrik version 8.2.0.0.

Regards,
Renu

Jack
Telerik team
 answered on 09 Feb 2009
4 answers
156 views
Hi
I want to edit nodes.text or nodes.font in run time ! but when i try to it got error .
whats the problem ?

treeview1.Nodes("node1").Font.Bold = False

please help me
memol
Top achievements
Rank 1
 answered on 08 Feb 2009
10 answers
195 views
Hi!

I'm using Q3 2008 version, my problem is: In design-time i added 2 columns (code, description) with its properties and datafield information. I need so because I hide some columns when it's needed. When running, fill a dataset and databind it to the datasource gridview, and when data is shown, I see 4 columns (code, description, code, description), How can I do to solve this, as in 2007 version it didn't happen to me?, thanks!

NOTE: I cannot see AutoGenerateColumns In the properties under MasterGridViewTemplate in design-time
Daniel
Top achievements
Rank 1
 answered on 06 Feb 2009
3 answers
225 views
I have 2 radbuttons on my form and i created a custom theme for them. During design time i applied the theme to the buttons and all is well. However when i view the form in runtime it defaults back to the Radforms theme which is "Office2007Black". I dont understand why this is happening. I even tried to set the theme in code

RadButtonPar_Start.ThemeName =

"Startbutton"

 

 

RadButtonPar_Stop.ThemeName = "Stopbutton"

Thanks in advance!

michael evans
Top achievements
Rank 1
 answered on 06 Feb 2009
5 answers
856 views
I'm loading data into the GridView with this statement:

.MasterGridViewTemplate.LoadFrom(command.ExecuteReader())

In the old VB6 ListView one can set the "Checkboxes" property to True and have checkboxes appear.

Is there a similar property in the RadGridView?

The checkboxes would not be bound to the database, but only used as an alternative way to select rows (.MultiSelect = True).

(With HotTracking and AlternateColors enabled, it can sometimes be a bit hard to easily see which rows are selected.)

Finn
Dragoljub
Top achievements
Rank 1
 answered on 06 Feb 2009
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?