Telerik Forums
UI for WinForms Forum
5 answers
390 views
Hi,

Is it possible to remove the up and down buttons from RadSpinEditor?
I would like to use it as a kind of Numeric TextBox with built in validation and range checking.

Thanks,
Brad

Nikolay
Telerik team
 answered on 25 Jul 2011
8 answers
438 views

I'm having problems getting self-referencing data to display in my RadTreeView.  I'm using the Q1 2007 release in VS Team Suite SP1 on Vista 32bit.

I'm trying to bind the tree to a DataSet which holds the following Xml data:
<Toc>
  <Node>
    <Title>Main Title</Title>
    <Target>d03.xml</Target>
    <id>1</id>
    <parentId>-1</parentId>
  </Node>
  <Node>
    <Title>Child Title</Title>
    <Target>d0300000.xml</Target>
    <id>2</id>
    <parentId>1</parentId>
  </Node>
</Toc>

When using the Property Builder and selecting the DataSet as the DataSource, "Toc" as the DataMember, and Toc.Title as the DisplayMember then I get no items at all shown in the resulting WinForm.

When setting properties in code as below I get the title of the two nodes; however, no graphics or parent/child relationship are shown.

dataSet1 = new DataSet();
dataSet1.ReadXml("d03_toc.xml");
radTreeView1.DataSource = dataSet1;
radTreeView1.DataMember = "Toc";
radTreeView1.DisplayMember = "Toc.Title";
radTreeView1.ValueMember = "Toc.id";
radTreeView1.ParentIDMember = "Toc.parentId";

It's completely unclear in the help file if or how I'm supposed to use the Property Builder to create any nodes when using a bound data source.  Is this part of my problem?

I'd certainly appreciate a pointer as to where I've gone wrong.

Julian Benkov
Telerik team
 answered on 25 Jul 2011
5 answers
191 views
Hi,

        My client has a requirement to have a 3rd Y axis, since the Rad Chart tool does not have this feature we planned of having a background chart to display the Y axis based on that we are trying to plot the series on the Foreground Graph.

We have  tried to handle this by using Prepaint Event of the chart Control..

The problem we are facing is that The Prepaint of the foreground is executed more than once when my mouse cursor is on the plot area.

Things are fine till this execution is correctly done , But some times the prepaint is executed more than once beacuse of the mouseover.

so ,
1. can some one please give us an overview of the complete Cycle of the Chart ploting
2. explain When and How the prepaint event is triggered and if there is a code where we can stop triggering this event that would also be useful.
Am Using C#.Net 2005.


-- Any Links or any Documents on this can be of great use to us.
-- Prepaint Event is what we are stuck with and This event is fired when i call mouseMove function also...

Thank u in Advance !! 
 
jayanth
Top achievements
Rank 1
 answered on 22 Jul 2011
1 answer
107 views
Hi there,

I have an application that needs to be built and the Outlook style of application is the closest I can get to explaining how our UI will work.
So far we will have the following:
  1. A RibbonBar
  2. A PageView for Navigating between subsections of the application (exactly like Outlook switches between mail and calender)
  3. A SplitContainer to split the left side navigation from the actual content on the right

Where I get confused is:
I'm assuming the content that appears in the right side window (in Outlook's case this would be the mail items view, or the calender day view) should be built using separate windows. If that's correct do we load those windows as controls into the right side of the split container? (what is the norm when it comes to this kind of scenario?)
When we switch from Mail to Calender, how do we change the RibbonBar to be specific to that feature as is done in Outlook?

Thanks
Jacques
Nikolay
Telerik team
 answered on 22 Jul 2011
3 answers
151 views
Hi,

           I have added menu items and submenu items to the start icon in the radribbion bar .But  the width and hegiht is not proper for submenuitems.

Please refer the screenshots

I  am getting as in screen (submenuheight) but i want it as shown in screen(sample).

How can i do it any propery .


Thanks
Hema
Jack
Telerik team
 answered on 22 Jul 2011
1 answer
96 views
Hi,

We are trying to upgrade our project to the 2011 version, but having serious issues.
1. The VS extension fails with "Value cannot be null \n Parameter name: path1"
2. When using the upgrade tool the references are replaced correctly but there are problems with the way the grid displays:
columns' order is wrong, localization causes mismatch between data and headers!

Is there any code changes we must do in order to upgrade successfully?
Can we apply these changes automatically for our grids? Maybe the VS extension does that?

Thanks,
Hadar

Erjan Gavalji
Telerik team
 answered on 22 Jul 2011
1 answer
203 views
I used the standard Windows Forms Property grid until now and am really happy about the new control, as the visual impression is now much more consistent.

One thought on boolean properties though: Would be nice if double click on the Text would toggle the value as it does in the Visual Studio Property Grid. Also the text (True/False) should be read-only for boolean properties.

Regards
Erwin
Ivan Petrov
Telerik team
 answered on 21 Jul 2011
1 answer
237 views
Hello!

I found the following problem with the latest (v.2011.2 11.712) RadDropDownList:

The drop-down list is bound to the BindingSource. When I assign the binding source's DataSource to a list, the drop-down list control shows the first item but the SelectedItem and SelectedValue fields are still set to null as well as the SelectedIndex is set to -1. In the earlier version the fields were set to the corresponding values. If I assign the drop-down list's DataSource to a list directly, it works well.
using System;
using System.Collections.Generic;
using System.Windows.Forms;
  
namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
  
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
  
            List<Data> list = new List<Data>();
            list.Add(new Data() { Value = "A" });
            list.Add(new Data() { Value = "B" });
            list.Add(new Data() { Value = "C" });
  
            radDropDownList1.ValueMember = radDropDownList1.DisplayMember = "Value";
            radDropDownList1.DataSource = bindingSource;
            bindingSource.DataSource = list;
        }
    }
  
    public class Data
    {
        public string Value { get; set; }
    }
}

This is very upsetting issue, because a lot of already tested code places becomes unstable unexpectedly. 

Thank you.
Peter
Telerik team
 answered on 21 Jul 2011
4 answers
104 views
how can i select all text when i click the text on CommandBarDropDownList1 ?

thanks for your help..
ricric
Top achievements
Rank 1
 answered on 21 Jul 2011
1 answer
340 views
I am building an application where users r coming from database in combobox on combobox1_Enter event.
I am also populating from another table rights for the particular user as per
selectedvaluechanged event of the same comboobx in datagridview.The problem comes when I reselect
same user error is"object not set to an instance of an object" this does not happen if I click buton for
populating usersrights in gridview when i select value in combobox.Can anybody help me with this?
here is the code:
private void UsersCombox_Enter(object sender, EventArgs e)
        {
            ds = null;
            UsersCombox.SelectedIndex = -1;
            SqlConnection mycon = new SqlConnection("Data source=DOTNET1;integrated security=true;initial catalog=examcollectiondata");
            SqlDataAdapter adap = new SqlDataAdapter("select * from createuserTbl", mycon);
            ds = new DataSet();
            adap.Fill(ds, "createusertbl");
            UsersCombox.DataSource = ds;

            UsersCombox.ValueMember = "CreateUserTbl.UserName";

            ds.AcceptChanges();


            ds.GetChanges();
            UsersCombox.Refresh();
        }

private void UsersCombox_SelectedValueChanged(object sender, EventArgs e)
        {
           //error when reselecting value in combobox
            SqlConnection mycon = new SqlConnection("data source=dotnet1;initial catalog=ExamCollectionData;integrated security=true");
//error comes in the line below
            SqlDataAdapter adap = new SqlDataAdapter("select DiffForms,selectdata,insertdata,updatedata,deletedata,viewreports from useraccesstbl where users='" + UsersCombox.SelectedValue.ToString() + "'", mycon);

            DataSet ds = new DataSet();
            adap.Fill(ds, "useraccesstbl");

            dataGridView1.DataSource = ds;
            dataGridView1.DataMember = "useraccesstbl";
Peter
Telerik team
 answered on 21 Jul 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?