Telerik Forums
UI for WinForms Forum
2 answers
236 views
Hi, 
Please refer the the image to understand the scenario:

Image  t01.png: I have 3 tiles [red colspan=2 rowspan=2] [green 1, 1] [ping 1 1]
Image t02.png: I right click on the red tile to change the size from large to small (colspan 1, rowspan 1)
image t03.png: After resize, the is a need to refresh RadPanorama you may notice the text under the red tile
image t04.png: when trying to move the green tile, the Panorama control auto refresh and remove the text.
image t05.png: I manually arranged the tiles, then I need to make the red tile Large (colspan 2, rowspan 2)
image t06.png: After red tile size change, layout is corrupt, HOW CAN WE REARRANGE TILES, without implementing our own logic, which is complex as I think
image t07.png: trying to reposition.
image t08.png: that's what I expected.


Code used to resize:

Private Sub RadMenuItem1_Click(sender As Object, e As EventArgs) Handles RadMenuItem1.Click
       'Small
 
       'RadPanorama1.SuspendUpdate()
       tileBig.ColSpan = 1
       tileBig.RowSpan = 1
       tileBig.Size = New Size(200, 200)
       'RadPanorama1.ResumeUpdate()
       RadPanorama1.Refresh()
       'ReArrange()
   End Sub


Private Sub RadMenuItem3_Click(sender As Object, e As EventArgs) Handles RadMenuItem3.Click
       'Large
       tileBig.ColSpan = 2
       tileBig.RowSpan = 2
 
       ' tileBig.Size = New Size(400, 400)
 
       RadPanorama1.Refresh()
       'ReArrange()
   End Sub


Please advise.














Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Nov 2014
3 answers
201 views
ToolWindow tool = new ToolWindow();
                       tool.Text = form.Text;
 
                       this.radDock1.FloatWindow(tool, new Rectangle(new Point(this.DesktopBounds.X + this.DesktopBounds.Width / 2 - formWidth / 2,
                       this.DesktopBounds.Y + this.DesktopBounds.Height / 2 - formHeight / 2), new Size(formWidth, formHeight)));
      
                       form.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                       form.TopLevel = false;
                       form.Dock = DockStyle.Fill;
                       form.Show();
                       foreach(DockWindow dock in this.radDock1.DockWindows)
                       {
                           if(GesHelper.Equals(dock.Name, tool.Name))
                           {
                               dock.Controls.Add(form);
                               dock.CloseAction = DockWindowCloseAction.CloseAndDispose;
                               break;
                           }
                       }
But the MdiChildActivate is not fired, am i missing something on it?
Dimitar
Telerik team
 answered on 18 Nov 2014
1 answer
367 views
Hi,

I am at a loss of how to add images to specific columns in listview from an imagelist. 

For  example in the following column structure  :    Column A, Column B, Column C
I would like to populate "Column A" with a string, "Column B" with an image from my imagelist, "Column C" with a string.

I am not sure if this is possible, could anyone provide me with an example of how to achieve this ?

Many thanks in advance !

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Nov 2014
1 answer
68 views
     Hello, how can i set a child template in Load on Demand as Self Referencing or is this possible? i attached an image i created as a workaround. It is nicer to show this as Load on Demand.  Thanks in advance.
Dimitar
Telerik team
 answered on 17 Nov 2014
1 answer
194 views
I cannot find the wrap text or multiline property of a RadMultiColumnComboBox control?  I mean the control itself...not its radgridview or drop down.....rather the displayed text of the control?  I have strings of 250 characters that display fine in the drop down, but then they center on a single line in the control's display (see attached png.
Dimitar
Telerik team
 answered on 17 Nov 2014
4 answers
129 views
Hello,

when i am using RadGridView with Office2010Black theme, and loading some data into, i got vertical scrollbar painted wrong. See the screenshot attached.

My grid initialization section:

private DataTable dataTable;
 
public Form1()
{
    InitializeComponent();
 
    radGridView1.AutoSizeRows = false;
    radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
    radGridView1.RowFormatting += radGridView1_RowFormatting;
    radGridView1.ReadOnly = true;
    radGridView1.ShowRowHeaderColumn = false;
    radGridView1.VerticalScrollState = ScrollState.AlwaysShow;
 
    radGridView1.ThemeName = "Office2010Black";
 
    dataTable = new DataTable();
    dataTable.Columns.Add("number", typeof(int));
    dataTable.Columns.Add("descriptions", typeof(string));
 
    radGridView1.DataSource = dataTable;
 
}
 
void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e)
{
    e.RowElement.RowInfo.Height = 120;
}

When loading data, i have (according to requirements) to disable the Grid control first, and enable it as soon as data loaded.
Here is an example:

private void radButton1_Click(object sender, EventArgs e)
     {
         radGridView1.Enabled = false;
 
         Random rnd = new Random((int)DateTime.Now.Ticks);
 
         dataTable.Clear();

         for (int i = 0; i < rnd.Next(1000); i++)
         {
             DataRow row = dataTable.NewRow();
             row[0] = i + 1;
             row[1] = "description" + i.ToString();
             dataTable.Rows.Add(row);
         }
 
         radGridView1.Enabled = true;
     }

After doing so, i have wrong painting behavior of the vertical scrollbar (it is only so in Office 2010 black theme!!), as it shown on the screenshot. See second image, as it should be expected.

In addition, i have experinced that the scroller thumb does not update it's height immediately, according to the added rows count.
It will only redraw itself when user is dragging it or resizing control.

I have tried: radGridView1.Invalidate(), but it does not help.

So far workarounds are:
1) decorating code with BeginUpdate/EndUpdate does partially fix the problem, scrollbar thumb does not change it's size
2) do not disable grid when loading data - works fine for me and even updates scrollbar thumb size, but i need to disable grid before doing data loading due to application requirements.


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Nov 2014
14 answers
395 views

Hello,

I am new to Telerik WinControl. I’m using version 2012.3.1017.40.

I was looking for a control for displaying a chart-diagram in a Windows Forms application. I found the controls “RadChart” and “RadChartView”. Because of the advice of use the control “RadChartView” in your documentation I was making first experiences with this control the last days. As I can see so far, this control seems to be a powerful tool. Having created, configured this control and bound data to it I am looking for the possibility to print out the content of this control. In the documentation I have read that RadChartView does not support the functionality to export its content to a file. I would like to get to know if it is possible to print out the content of a “RadChartView” control anyway.

Karim el Safadi

Dimitar
Telerik team
 answered on 17 Nov 2014
4 answers
260 views
When a RadLabel enters the disabled state the fore color changes to gray. However, when the RadLabel is re-enabled the fore color does not return to it's former glory, rather it stays gray forever.

I can't seem to override this behavior even with a custom theme.

Edit: I tried setting the forecolor in radLabel1_EnabledChanged, but it never fired. The problem seems to be that when a RadLabel parent's Enabled flag is set to true, the RadLabel itself is never notified of the event.

If I manually set ".Enabled = true;" for every label on my form, they restore their original ForeColors as expected.

The RadLabel is in a SplitPanel which is in a RadSplitContainer, where the RadSplitContainer is the control being disabled / enabled.
George
Telerik team
 answered on 14 Nov 2014
11 answers
2.7K+ views

Hi,

I am working on the hierarchical grid and displaying data using self references.

My requirement is when i refresh the grid then the selectd row should be selected and the scroll bar
position should be at the same location but now when i refresh the scroll bar is moved to top of the grid.

could you please help me on the above requirement?

Thanks & Regards
Muralidhar Dasari

Code Snippet for refresh:- 
using (radGridView1.DeferRefresh())
  {
    this.radGridView1.TableElement.Update(GridUINotifyAction.DataChanged);
    this.radGridView1.TableElement.Update(GridUINotifyAction.StateChanged);
}
George
Telerik team
 answered on 14 Nov 2014
1 answer
165 views
We are looking to alter one of the standard themes, changing some of the details as well as the colours. Once complete, it will be necessary to make other themes that are the same but based on different colours.

I'm well aware of the usage of Visual Builder, so creating an initial theme is not a problem. I also have code that finds a theme in the currently loaded application, extracts all the images and alters the colours. I believe I can then create a clone of the theme and replace the images with the re-coloured versions, assuming the following code works

foreach (Telerik.WinControls.StyleRepository repository in theme.Repositories)
{
    if (repository.ItemType == "Image")
    {
        foreach (Telerik.WinControls.PropertySetting setting in repository.Settings)
        {
            if (setting.Name == "Image")
            {
                Bitmap bmp = GetBitMap(repository.Key);
                setting.Value = bmp
            }
        }
    }
}

What I'm stuck with, is how to save the altered theme back to a tssp file.

Any help would be appreciated. 

Thanks
Jason
George
Telerik team
 answered on 14 Nov 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)
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?