Telerik Forums
UI for WinForms Forum
1 answer
154 views
Hi,

I have project that need to plot a S-N chart where X-axis is logarithmic scale, see attached image.

I see that I can use scatter chart to archive the result, however needs to swape x-axis and y-axis (where y become x and x become y).  anyone know is it possible to swape x-axis and y-axis or do when will RadChart support logarithmic scale on X-axis?

Thank you.
Giuseppe
Telerik team
 answered on 20 Jul 2010
2 answers
127 views

We have upgraded our Telerik controls from ‘Q3 2007 SP1’ to ‘Q3 2008 SP2’.

 

I am facing some issues while using this newer version:

 

  1. On Calendar control I don’t want day selections. Only date selections should be allowed. When we disable days, obviously they appear deactivated (with grey background). Please suggest some solution to make it appear similar to dates (with white background).

 

  1. Datetimepickers are allowing null values. User can select whole date and can just delete it. User should not allowed to edit the date values but should not be allowed to delete all contents.

 

  1. One more issue is regarding theme of raddropdownbutton. I want a theme with transparent background, when I tried to create it, there appears a slight white outline which is not required. How can i remove this white outline.
c mutex
Top achievements
Rank 1
 answered on 20 Jul 2010
1 answer
196 views
1:
In Q2 2010 there is no Method like EvaluateAggregate in SummaryItem. I need this method to implement SummaryAggregates like Sum / 4.0.

How can i implement this feature in Q2 ?

2:
Now i see ColumnIndexChanging is obsolete. I need column reordering only for columns with index > 3 for Example. How do i implement this now? --> Solved: Using Columns.CollectionChanging
Edit:
CollectionChanging/Changed solved not the problem. These events are fired 2 times for 1 column reordering (remove and add). in these events i dont see the new or the old index at the same time. Any solutions?

3:
How do i pin a SummaryItem?

4:
GridViewSummaryItem is not working anymore.

Example:

GridViewDataColumn column = new GridViewDecimalColumn("880", "880");
column.FormatString = "{0:N2}";
GridViewSummaryItem summaryItem = new GridViewSummaryItem(column.UniqueName, column.FormatString, GridAggregateFunction.Sum);
this.summaryRow.Add(summaryItem);

The Summary with 96 rows is 96 * 880. Min or Max is 880.

What is wrong here?

Alexander
Telerik team
 answered on 20 Jul 2010
1 answer
143 views
Hello All

I want to ask how can Multi column combo can be embeded inside the grid.

Thanks & regards
Neha Bharti
Jack
Telerik team
 answered on 20 Jul 2010
1 answer
182 views
I want to have my grid them my cells in read-only columns to use a different foreground color.  I was able to set this up in my theme using the IsReadOnly property of GridCellElement:

<XmlPropertySettingGroup>
    <PropertySettings>
        <XmlPropertySetting Property="Telerik.WinControls.VisualElement.ForeColor" Value="160, 160, 160" />
    </PropertySettings>
    <Selectors>
        <XmlClassSelector ElementClass="DataCell" AutoUnapply="False">
            <Condition xsi:type="XmlSimpleCondition" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Setting Property="Telerik.WinControls.UI.GridCellElement.IsReadOnly" Value="True" />
            </Condition>
        </XmlClassSelector>
    </Selectors>
</XmlPropertySettingGroup>

Then in the view cell formatting event, I added code to set each cell's IsReadOnly to match that of its column:

e.CellElement.IsReadOnly = e.CellElement.ColumnInfo.ReadOnly;

All of this works fine, but I get warnings that GridCellElement.IsReadOnly is obsolete.  Is there another property I should be using to set this up in my theme?  IsReadOnly seemed the best option in the visual style builder.

Thanks,
Rachel
Jack
Telerik team
 answered on 20 Jul 2010
7 answers
537 views
I wish to have a form with a gridview on one side and a panel with current record data on the other side (See attached file) so that I can edit data in the gridview or on the panel. Editing works fine, but problems appear on inserting.

Code behind update button is following:

        private void UpdateGridInfo(GridViewRowInfo currentRow)
        {
            if (currentRow == null)
                return;
            DB.Contract rowView = (DB.Contract)currentRow.DataBoundItem;
            if (rowView.ID == 0)
            {
                // insert
                DB.Contract contract = new DB.Contract();
                contract.RadioStationID = ((DB.vRadioStation)bsRadioStations2.Current).acSubject;
                ...
                App.ContractsDAL.DC.Contracts.InsertOnSubmit(contract);
            }
            else
            {
                // edit
                rowView.RadioStationID = ((DB.vRadioStation)bsRadioStations2.Current).acSubject;
                ...
            }
        }

        private void bUpdate_Click(object sender, EventArgs e)
        {
                UpdateGridInfo(gvContracts.CurrentRow);
                App.ContractsDAL.SubmitChanges();
                App.ContractsDAL.RefreshDC();
                bsContracts.DataSource = App.ContractsDAL.Get();
        }

When I click add a new row on the gridview and then edit data on the panel, I get exceptions for NOT NULL columns, foreign keys... when I try to submit changes, for example:
Cannot insert the value NULL into column 'RadioStationID', table 'RadioStations.dbo.Contracts'; column does not allow nulls. INSERT fails.
The statement has been terminated.

If I debug program, I see that contract.RadioStationID is set to correct value. At first it seems, that gridview automatically posts NULL values, but if I set columns to Nullable and delete relationships from database, everything works as it is supposed to.

How could I make this work without setting columns to Nullable and removing relationships?

Jack
Telerik team
 answered on 20 Jul 2010
1 answer
180 views
I have implemented an export routine using the RadGridView control.

It seemed to be working okay until Q22010.

Here is my structure:

I have a master template with two child templates. I want to read a row from the master and then read all rows from one child template and then read all the rows of the second child template. Both child templates are children of the master. I am referring to the child templates by index. One template caption is 'MVA' (index 0) and the other is 'P' (index 1). Let's assume there is only 1 of each.

Here is what happens:

if I have the 'MVA' tab selected and then export the MVA template is output twice and no 'P' template is output. However, if I have the 'P' tab selected the two 'P' records are output and no 'MVA'.

It looks as if I need to programmatically select first the 'MVA' tab and output the rows and then select the 'P' tab and output the rows.

I can't seem to reference the two sets of child rows directly.

Jack
Telerik team
 answered on 20 Jul 2010
1 answer
178 views
We got these errors when trying to upgrade our Q1 SP2 projects:

1. no 'VisualElement' property
GridViewRowInfo r = radGridView.Rows[i];
r.VisualElement.ForeColor = System.Drawing.Color.Red;

2. no 'CellElement' property
GridViewCellInfo gvci = radGridView.Rows[i].Cells[0];
GridCheckBoxCellElement gcbce = (GridCheckBoxCellElement)gvci.CellElement;

3. no 'Owner' property
var col = (GridViewDataColumn)cell.ColumnInfo;
col.OwnerTemplate.Owner;

Please help us to fix the above errors. Thanks in advance.

BR/shortie

Jack
Telerik team
 answered on 20 Jul 2010
1 answer
118 views
Hello Telerik,

I am looking into the just released Demo of Winforms UI components Q2 2010. On a fresh Windows XP setup (all windows updates installed) the provided demo application shows in Gridview  / Spreadsheet a simple undhandeld exception because "System.ArgumentException: Font 'Calibri' cannot be found." A quick search seems to indicate that Calibri is a font that came new with Vista and can be installed on XP by downloading and installing the MS PowerPoint Viewer 2007.

Maybe you want to fix this in future releases to provide the best possible first impression of your great components.

Regards,
Ralf
Alexander
Telerik team
 answered on 20 Jul 2010
5 answers
315 views
Hi, a breaking change has happened between 2009Q1 1414 and 2009Q2 SP1 9729.

I add images dynamically to an imagelist. Then I change the ImageKey (tried with ImageIndex as well) on a node. The image is not shown. This breaks my application which worked fine on 2009Q1 1414.

        private void radButton1_Click(object sender, EventArgs e) 
        { 
            imageList1.Images.Add(radTextBox1.Text, Image.FromFile(radTextBox1.Text)); 
 
            //radTreeView1.Nodes[0].ImageKey = radTextBox1.Text; 
 
            radTreeView1.Nodes[0].ImageIndex = imageList1.Images.IndexOfKey(radTextBox1.Text); 
        } 

Any ideas?
- jorge
Victor
Telerik team
 answered on 20 Jul 2010
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
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
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?