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

It is possible to change Time Zone Label? By default it appears "Local" but i want to change to another string. In Scheduler picture attached, it is possible to see where is that "Local" label.
Ivan Todorov
Telerik team
 answered on 23 Dec 2011
1 answer
106 views
Hi,

I have the list of data on grid view with template fields.
I want to select the child rows if count is not equal to 0.
Whenever i populate the data, those child rows with count is 0 will be Hidden and IsSelected = false.
And those child rows with count is not 0 will be Visible and IsSelected = true.
My problem is the first child row to select is selected forever and unable to click.

private void raddgvHistory_ViewCellFormatting(object sender, CellFormattingEventArgs e)
    {
      GridDetailViewCellElement cell = e.CellElement as GridDetailViewCellElement;
      if (cell != null)
      {
        if (cell.PageViewElement != null)
        {
          bool IsSelected = false;
 
          for (int iRow = 0; iRow < cell.PageViewElement.Items.Count; iRow++)
          {
            GridViewInfo viewInfo = cell.PageViewElement.Items[iRow].Tag as GridViewInfo;
            if (viewInfo.ChildRows.Count == 0)
            {
              cell.PageViewElement.Items[iRow].IsSelected = false;
              cell.PageViewElement.Items[iRow].Visibility = ElementVisibility.Hidden;
            }
            else
            {
              if (!IsSelected)
                IsSelected = cell.PageViewElement.Items[iRow].IsSelected = true;
 
              cell.PageViewElement.Items[iRow].Visibility = ElementVisibility.Visible;
            }
          }
        }
      }
 
    }

Correct me if there are some problem with my code.
Currently using Q2
Jack
Telerik team
 answered on 23 Dec 2011
3 answers
186 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
101 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
104 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
408 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
253 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
241 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
111 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
317 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
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
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?