Telerik Forums
UI for WinForms Forum
1 answer
181 views
Hi,
In my quick review of controls encounter a problem with export to PDF from your RichTextBox. When i type something in cyrilic and then save as PDF file the result is quite strane. I mean many random spaces and generally weird layout. You can easy reproduce this in the winforms demo application. So, is it some kind of bug or there is a way to change this behavior in the code?
Best Regards,
Slavcho
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Mar 2014
4 answers
171 views
I'm working on developing our own theme, based on the WPF windows 8 theme. I have an issue with contextual ribbon bars. My guess is that these can't be themed in the Visual Builder. However, I can't work out how to theme them in code either.

This is what we currently have


What I would like to do is 
1 - Theme the ribbontabbutton; the background colour, border and text. I can change the unselected background colour of the tab, but this only has an affect until the first time the ribbon is selected. Once switching away, the colour reverts to white. I also can't work out how to change the selected colour at all, which is what I really want to do

2 - Remove the colouring on the main panel area that contains the groups etc. I just want it to be white.

3 - Would be nice to change the unselected colour of the contextual ribbontabbutton as well (want it a shade of the orange, but that's not so important

Any help would be greatly appreciated.

Thanks
Jason
George
Telerik team
 answered on 20 Mar 2014
1 answer
131 views
I recently started using visual style builder and I must say I love it.  Definitely a little learning curve but very reasonable given its impressive capabilities.  I was able to get my custom theme working in my application with little trouble.  However, I can't get it working on a non-dev computer at all.  I have deployed multiple applications using your awesome suite, both web and windows, never having any difficulty.  I set all telerik dependencies to copy local and copy the full release folder to the target computer.  When I run the .exe, I get either nothing at all or maybe eventually the error saying "this application has stopped working".  I even tried copying the theme .xml files to the target machine but still no joy.  I have searched and come up empty so here I am.  Please let me know if I can provide any screenshots, assemblies, etc to make my issue clearer.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Mar 2014
1 answer
135 views
http://www.telerik.com/help/winforms/gridview-grouping-group-aggregates.html

GroupDescriptor descriptor = new GroupDescriptor();
descriptor.GroupNames.Add("ShipName", ListSortDirection.Ascending);
descriptor.Aggregates.Add("Count(ShipName)");
descriptor.Aggregates.Add("Max(Freight)");
descriptor.Aggregates.Add("Avg(Freight)");
descriptor.Format = "The ship {1} has {2} item(s) with maximum freight {3} and avarage freight of {4:c2} per ship.";
this.radGridView1.GroupDescriptors.Add(descriptor);

How to do sort by Max (descriptor.Aggregates.Add("Max(Freight)");)
How to do ability to let Antonio Moreno Taqueria(max 84.84) is first ,Alfreds Futterkiste (max 69.53) is second ,Ana Trujillo Emparedados y helados (max 43.9) is third.
George
Telerik team
 answered on 20 Mar 2014
3 answers
194 views

Does RadGridView in Hierarchy mode supports drag drop feature? Meaning if my data
structure is as follow,

Sales Person 1 (Level One)
>>>Orders
>>>>>>Order 1 (Level Two)
>>>>>>Order 2 (level three)
>>>Region
>>>>>>Region 1
>>>>>>Region 2

Sales Person 2 (Level One)
>>>Orders
>>>>>>Order 3 (Level Two)
>>>>>>Order 4 (level three)
>>>>>>Order 5 (Level Two)
>>>Region
>>>>>>Region 3
>>>>>>Region 4
>>>>>>Region 5

Now questions,
a) Is it possible to drag “Region 3” row (from Sales Person 2) and move it under Sales Person 1 “Region” block? Similarly, “Order 1” to drag and drop under Orders of Sales Person 2?

b) Does RadGridView supports multiple drag-drop? For e.g., in above scenario, I want to drag multiple orders from Sales Person2 to Sales Person1
c) Will RadGridView support Pin column in Hierarchical form as well? Refer hierarchy above.

Best Regards,
Divyesh

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Mar 2014
1 answer
157 views
Good day

I have a gridview with predefined columns . I have a linq to sql query where i name my selected values with the same name as the predefined column names.
After i set the datasource it adds new columns to the end of the gridview.
Here is my sql query


            var res = (from s in db.SiteAudits
                       where s.SiteAuditID > 0000250 && s.SiteAuditID < 0000300
                       join ac in db.Accounts on s.AccountID equals ac.AccountID
                       join si in db.Sites on s.SiteID equals si.SiteID
                       join au in db.Audits on s.AuditID equals au.AuditID
                       select new
                       {
                         _siteauditid = s.SiteAuditID,
                         _account = ac.AccountName + "-" + si.SiteName,
                         _datedue = s.DateDue,
                         _audit = au.AuditTitle
                         
                       }).ToList();


            grd_unscheduledaudits.DataSource = res;

Is there a special way my columns should link to my query's result columns ?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Mar 2014
1 answer
135 views
Hello,

I had redundancy checking code in UserAddingRow to ensure that no row is added with duplicate key values.
However, I'm trying to add the same checking into RowChanging to ensure that no values can be changed saved into the data source that would create that invalid situation.

I am finding that RowChanging is not getting fired (breakpoint on first line in method isn't reached), and am not sure if I'm thusly doing this incorrectly.

Thanks,

Vijay
Ralitsa
Telerik team
 answered on 19 Mar 2014
1 answer
148 views
Hi,

I've tried searching for this in the documentation and forums but it may be lack of searching skills I could not find any good walkthrough.

I'm trying to achieve a design that is similar to the Zune application in Windows. The Metro theme helps me achieve most of it but the Window behaviours such as dragging the form by holding it from an empty section, and also working on a wysiwyg type of design environment doesn't seem possible.

Can someone shed more light on how this can be achieved with a few pointers?

Thanks,
George
Telerik team
 answered on 19 Mar 2014
2 answers
201 views
I have desktop alert with 2 controls
1) RadGridView (shown)
2) Panel with text area and some buttons. (hidden)

In radgridview, when i click on command button in a row, i need to show that panel with some additional info inside the text area.

So when i clicked, i have such code:
AlertControl.FixedSize = new Size(ALERT_WIDTH, _height);
_textBox.Clear();
_textBox.Text = txtMessage;

_textBox.Visible =
_btnCollapse.Enabled =
_btnNotify.Enabled =
_panelWithButtons.Visible = true;

This code works fine only when i use Hide(), this code, Show(). Have flickering here.
Without hide/show i see pretty strange thing, gridview disappear, textarea shown at top of control and height not changed (visually).

So how to invalidate without flickering, or what i can do at all here ?
George
Telerik team
 answered on 19 Mar 2014
6 answers
115 views
Hi I'm having a problem when I want change the DataSource of the control.

I want to filter in my collection depending on the first selected item, for example.

I have 3 DataTables: 1 - All People, 2 - Men, 3 - Women.
First will be charged with Table 1 - All and and depending on the first selection I make, I want to update the DataSource with 2 - Men or 3 - Women.

I encounter problems when I try to change it. I'm doing at the event SelectionChanged, I note that have selected an item and the text ends with the delimiter character, then analyze and select the text which will be my new table and to modify the datasource throws ArgumentOutOfRangeException.

private void rACBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
    if (this.rACBox.Items.Count == 1 && this.rACBox.Text.EndsWith("$"))
    {
       if(this.IsMen(this.rACBox.Items[0].Value.ToString())
       {
           rACBox.AutoCompleteDataSource = new BindingSource(this.Men);
       }
       else
       {
           rACBox.AutoCompleteDataSource = new BindingSource(this.Women);
       }
    }
}

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