Telerik Forums
UI for WinForms Forum
1 answer
102 views
Dear Support,

We use RadGridView with decimal column. If the user position to a cell with the keyboard and try to enter the value -123.456 the value will be 123.456. The '-' sign put the cell in edit mode but don't display in the cell? The demo have the same behavior (GridView - Columns - Column Types) with the decmal column. To be working the correct way, the user have to enter --123.456 by typing 2 times - sign...

Is there a way to trap the '-' sign and display as the current value of the cell?

Regards,
Nadia
Stefan
Telerik team
 answered on 25 May 2012
1 answer
108 views
I have a page where I am using a NestedViewTemplate with a RadTabStrip, RadMultiPage, and two RadPageViews.

I have labels in RadPageView2 that I would like to get the text from in my code behind, so I can convert their values to integers to calculate in a formula that will then update another label's text in the same PageView. My questions are:

1. How can I get the text value of a label in my codebehind where the label resides in my second PageView?
2. How do I update the text value of a label in my second PageView from my codebehind?

A non working example of what I was trying is the following:

protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
    {
        if (e.Tab.Text.Equals("Tab Text"))
        {
           e.Tab.PageView.FindControl("myLabel").Text = "Created from Code Behind";
        }
    } 

Kind regards,

Ben
Voya Developer
Top achievements
Rank 1
 answered on 23 May 2012
1 answer
115 views
Hi,

i was able to add two completion page, i could navigate it through runtime but i wasn't able to do it in designtime?  i have an option page, if option1 was selected, then it will end up in the completionpage1 and the option2 will end in completionpage2.

how can I access completionpage2 at designtime?


Thanks
Boryana
Telerik team
 answered on 23 May 2012
1 answer
97 views
I am exporting a GridView that contains 2 child templates. However, I am not using the ExportToExcelML to perform the export. I am using Interop.Excel.

The two child templates are displayed at the same hierarchical level. Currently, I am using "foreach" to step through each row in the parent template and write its data to the Excel sheet.

I'm having trouble stepping through the related rows in each child template once I have the GridViewRowInfo of the parent row inside the "foreach". I can't seem to find an efficient way to access the rows of each template that directly relate to the current parent row. The ChildRows collection only seems to contain the rows of the first template.

Is there a built-in method or an elogant approach I could use to step through the child rows of each child template?

My current setup is as follows:
foreach (GridViewRowInfo row in gridView.Rows)
{
   //Write parent row data to Excel sheet
 
   //Access each child template either with a loop or explicitly
  
   //Step through child template's rows and write the row data to the Excel sheet
}

Ivan Petrov
Telerik team
 answered on 23 May 2012
1 answer
238 views
Hi There,

I'm working on a grid which has a GridViewComboBoxColumn. the column is often not wide enough the fit the item text. So i wanted to add a tool tip for each item in the list.
I found this article which seemed to be what i was after:
http://www.telerik.com/community/forums/winforms/dropdownlist-and-listcontrol/auto-horizontal-scroll-and-item-tooltip-in-radlistcontrol.aspx

but my code doesn't seem to work:

protected void rgDraft_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
    if (e.Column.Name == "Country")
    {
        RadDropDownListEditor editor = (RadDropDownListEditor)this.rgDraft.ActiveEditor;
        RadDropDownListEditorElement editorElement = (RadDropDownListEditorElement)editor.EditorElement;
                     
        editorElement.VisualItemFormatting += new VisualListItemFormattingEventHandler(delegate(object formattingsender, VisualItemFormattingEventArgs args)
            {
                args.VisualItem.ToolTipText = args.VisualItem.Text;
            });
    }
}

Any idea why this doesn't work? I can do other things, like set the bgcolor to red and that works as expected

Many thanks,
Matt
Stefan
Telerik team
 answered on 23 May 2012
3 answers
93 views
Hi!

I've encountered a problem with bad performance in RadControls for WinForms ver. 2012.1.321. After upgrading from version 2011.2.831, my application really drags its feet. I've pinned down one line of code that runs slower on the new version, but its not the only one:

private RadTreeNode FindNodeWithTag(object oId)
{
   DateTime start = DateTime.Now;
    try
    {
        return rtvLassListe.Find(delegate(RadTreeNode n) { return ((n.Tag == oId) ? true : false); });
 
    }
    finally
    {
        ErrorLog.LogErrorMessage( (DateTime.Now - start).TotalMilliseconds.ToString() + " ms i FindNodeWithTag()" );
    }
}

This function logs 1-2 milliseconds in the 2011-version, compared to about 85000 in the 2012 version the first time it runs. Later runs on the same code have less differences, but still uses about 5-10 times as much time as the earlier version.

Uninstalling the 2012-version and reverting to the 2011-version fixes the problem. No other changes...

I did get an error message during installation that stated: "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2318." 

Could the installation error be the source of the problem, or are there other known problems?

What kind of error does the error code 2318 represent, and how can I get rid of the error?

Greetings,
Sverre H.
Julian Benkov
Telerik team
 answered on 23 May 2012
3 answers
314 views
Hello,

I have a RadGridView that contains 3 child templates in it. So when you expand each row, there are 3 tabs that you can view the data for each child template by clicking on each tab.

In my export code, i have the exporter.ExportHierarchy = true; for each export function. However, when i go to export the gridview to CSV / Excel / HTML / PDF, it appears that it can only export the first child template hierarchical grid data. It does not export all 3.

My question - Can the data for ALL child templates be exported using the CSV / Excel / HTML and/or PDF exporter commands?

Please let me know if this is possible, as right now it is only exporting the first child template.

If this is not possible to export all 3 child templates, is it possible to remove certain child templates before exporting so that i can provide my user with options on what child template they want to export?

Your help in this matter would be greatly appreciated, thanks!
Ivan Petrov
Telerik team
 answered on 23 May 2012
4 answers
125 views
I see that the PITS issue to make the Aqua theme exportable/usable in the VSB has been deleted. Is there a reason for this ? The aqua theme is one of the long term themes in the controls now, is there a reason it wasn't enabled in the VSB to begin with ?
Jack
Telerik team
 answered on 23 May 2012
2 answers
198 views
Hi,
Is there a way to bind to IEnumerable<IDictionary<stringobject>>.

Thanks
Holger Boskugel
Top achievements
Rank 2
 answered on 23 May 2012
1 answer
86 views
Hi,

I need to be able to move/resize a recurring apointment such that any changes are reflected in any future linked appointments. At the moment I can't seem to resize even the master appointment of a recurring series. Please advise.
Ivan Todorov
Telerik team
 answered on 23 May 2012
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?