Telerik Forums
UI for WinForms Forum
3 answers
156 views
If my users can't print schedules, they will not use my product. Any advice would be helpful.

BTW - is there a list of the new features for 2011Q1?
Thanks

Later
Art
Ivan Todorov
Telerik team
 answered on 23 Dec 2011
1 answer
82 views
Custom control for telerik grid view in winforms

 In my Windows forms control library:

for MyGrid.cs (where MyGrid.cs is a component class)

public MyGrid : ` Telerik.WinControls.UI.RadGridView`

I build and i have MyGrid.dll & i have added that in my visual studio toolbox (also referenced that dll in my consuming winform app).

Consuming winform app:

1. In Form1.cs, i drag and drop that MyGrid  & i write this code:

>     MyGrid1.DataSource=ds.Table[0]; //Dataset

The grid doesn't get bound with records, whereas when i check ds `row count it has 150 records`. The grid however shows me green and white color (ie. alternating row color), but doesn't bind the data.

This is the code that consuming winform uses

       DataSet ds  = null;
       string connectionString = "Data Source=test;Initial Catalog=DBname;Integrated Security=True";
        string sql = " SELECT ID,FirstName from table1 ";
        SqlConnection connection = null;            

         connnection = new SqlConnection(connectionString);
         SqlDataAdapter dataadapter = new SqlDataAdapter(sql, connection);
         ds= new System.Data.DataSet();
         connection.Open();
         dataadapter.Fill(ds, "Table1");
         MyGrid1.DataSource = ds.Tables[0];

where MyGrid1 is the custom control that is being dragged and dropped from toolbox.

Custom control code:
                
  
            this.EnableAlternatingRowColor = true;
            this.TableElement.AlternatingRowColor  = System.Drawing.Color.Green;            
            this.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
            this.AutoGenerateColumns = true;

The telerik grid is not binding the data, however when i click on the cell, it shows me the value. Any thoughts?
Jack
Telerik team
 answered on 23 Dec 2011
3 answers
72 views
I'm trying to display multiple images in a subitem that would look something like this:

<text><image> <text><image>

Example:
5<image>; 1<image>; +14<image>

Is this do-able?

This post seems to have disappeared.
Ivan Todorov
Telerik team
 answered on 23 Dec 2011
1 answer
353 views
Hi,
I'm trying to set a transparent background to a RadLabel and I can't find a way to do so. I have an older project that uses 2010 Q2 controls and the transparent background there works fine.

My form has a gradient background, so any solid background color of the label will look awful. I'm sure there must be a way to make it work, otherwise the label is not useful in any case that the background is not plain solid.

Thanks for any help.
Sharon.
Ivan Petrov
Telerik team
 answered on 23 Dec 2011
2 answers
210 views
Hi,

I have built a VSTO project for Office using the RadTreeView and Windows7 theme from Q1 2010 SP2 (not the latest I know). I have inherited from the Telerik tree so I can implement some WinAPI interfaces but I am using the RadTree base class for all my UI and setting it's theme to Windows 7 via the properties pane in VS.
Up until today I've been deploying my project succesfully via msi to all sorts of Windows/Office configurations, everything installs and runs perfectly and the tree looks excellent and performs exactly as I want.
However I've just tried to install on Windows 7 x64 running Office 2010 x64. My project loads correctly as always but when the constructor for the tree is called I get the following error on InitializeComponent() -

System.ArgumentException: Specified resource does not exist in the provided assembly.
   at Telerik.WinControls.ThemeResolutionService.LoadPackageResource(ResourceParams resourceParams, Boolean throwOnError)

Exactly the same dll works fine against Office 2010 x32 on a Windows 7 x64 OS. And indeed on every Windows Vista/XP Office2010/2007 combination I've tried so far. Only the 64 bit Windows / 64 bit Office combination gives me this.

I can't debug it, if I debug it loads fine. If I load the same dll without debugging I always get the error. Could it be something to do with timing, the order the assemblies are loaded etc? Why is the theme not available only in these circumstances?

Any ideas would be hugely appreciated, seems very strange to me,

Thanks in advance for any replies...
Peter
Telerik team
 answered on 23 Dec 2011
12 answers
172 views

Hi
I am facing this message once I run my project(see the attached Pic error1), rather than it takes around 5min and more just to initializing for opening at the first time

    Further more it is very slow in developing and some times the system give me an error in manifest memory when I try to add any thing new or modify an existing control  ,

 

Error   1          Problem generating manifest. Insufficient memory to continue the execution of the program.           

Moreover sometimes when I add new things it did not appear in the running stage even thought it is their in the design?


Sometimes also I need to close the project and open it a gain just to see the modification I added otherwise it will not be shown at the same time

Am using telerik winforms wpf Q3 2010 in Visual Studio 2008

Thanks in advance

 

Jack
Telerik team
 answered on 23 Dec 2011
1 answer
78 views
Hi!... I had a datagrid which i had i column "File Name". In File Name column i had a  to z value....
Im using 2011 Q2 control and VB.NET 2010
I use datasource to bind the value to my datagrid. I able to sort the value from assending to desending....
The datagrid also show me correctly from a - z become z - a.

after sorting i will use... the code  below to get the value:

Dim FileN as String = ""
For i = 0 to RadGridView1.rowcount - 1
 FileN = RadGridView1.Rows(i).Cells(0).Value
  msgbox(FileN)
Next

after desending it i can't the get  "z" as the first value... it still give me the value "a".
May i know how to do that? it's need urgently because i change the current .net datagrid to telerik gridView for user.
Thank You!

Regards
Johnny


Stefan
Telerik team
 answered on 23 Dec 2011
1 answer
257 views
Hi,
I have a radgrid with the data loaded:

 

OleDbDataReader reader = cmd.ExecuteReader();

radGridView1.DataSource = reader;

After editing a row, before the MasterTemplate_CellEndEdit fires (where I would manually update the changes in the table) I get the errormsg shown in the picture. Any clues?

Karl


Julian Benkov
Telerik team
 answered on 23 Dec 2011
1 answer
69 views
Hi,

I have an access db with say 20 tables and a radDropDownList showing them. On the event SelectedIndexChanged of the radDropDownList I would like to reconstruct radGrid layout so that the radGrid now reflects the selected table and its data.

It would be like simulating ms Access but not needing access installed and being able to make a few minor data changes.

Does anyone have something like this they care to share?

Thanks,

Karl
Ivan Petrov
Telerik team
 answered on 23 Dec 2011
1 answer
322 views
I have a GridView in which the child is loaded manually via a RowSourceNeeded event.  I am using the ChildViewExpanded event to detect that the child is being collapsed (!IsExpanded).  As part of the collapse, I would like to delete all of the child rows, thus forcing another RowSourceNeeded event (Data refresh) when the child view is expanded.  I have tried the following and many others without success.

private void radGridViewDatabases_ChildViewExpanded(object sender, ChildViewExpandedEventArgs e)
        {
            if (e.IsExpanded)
            {
                e.ChildRow.Height = Math.Min(90 + (e.ChildViewInfo.ChildRows.Count * 18), 500);
            }
            else
            {
                if (e.ChildViewInfo.HasChildRows())
                {
                    foreach (GridViewRowInfo oGridViewInfo in e.ChildViewInfo.Rows)
                    {
                        oGridViewInfo.Delete();
                    }
                }
            }

            return;
        }

Any ideas?

Thanks in advance


Julian Benkov
Telerik team
 answered on 23 Dec 2011
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
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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?