Telerik Forums
UI for WinForms Forum
1 answer
172 views
Hi
is there is a way to add spacebetweennodes for a certain nodes only not for all treenodes
for example here i need to have space between parentnodes only not between child nodes :
-Parent
   child
   child


-Parent
   child
   child
  
if there is any solution appreciate to have a help with it.
Svett
Telerik team
 answered on 20 Jul 2011
3 answers
225 views
Hello,

The following code always puts the new tabbed document at the beginning of the other tabbed documents in a TabStrip on my RadDock control:

radDock1.DockWindow(documentWindowMultiTabTest, DockPosition.Fill);

I need the document to open a new tab at the end of all the other tabs, not the beginning.

How can this be achieved?

By the way, when I try to accomplish this with the following code...

documentTabStrip1.Controls.Add(documentWindowMultiTabTest);

the tab does go to the end of the tabs, BUT if the user removes all tabs then adds 1 tab again to a blank RadDoc canvas, the following exception is thrown: "Changing Children collection of an already disposed element".


Thank you very much in advance,

Brook
Nikolay
Telerik team
 answered on 20 Jul 2011
2 answers
145 views
While experimenting with a workaround, I was trying to closely align 3 editors so I could create a PropertyGrid style panel. Using the code below, the controls overlap each, but if I use the MS controls they align perfectly - am I missing something.

        Dim d As New RadTextBox
        d.Size = New System.Drawing.Size(95, 14)
        d.Location = New System.Drawing.Point(300, 200)
        d.Text = "Text One"
        TabItem4.ContentPanel.Controls.Add(d)

        Dim e As New RadDateTimePicker
        e.Size = d.Size
        e.Left = d.Left
        e.Top = d.Bounds.Bottom
        TabItem4.ContentPanel.Controls.Add(e)

        Dim f As New RadMaskedEditBox
        f.Size = d.Size
        f.Left = d.Left
        f.Top = e.Bounds.Bottom
        f.Text = "Text Two"
        TabItem4.ContentPanel.Controls.Add(f)

Any suggestions?

Thanks.
Nikolay
Telerik team
 answered on 19 Jul 2011
8 answers
371 views
I have need for a RichTextBox with spell check abilities.
Do you have any plans on adding this to WinForms?
Thanks.
Nikolay
Telerik team
 answered on 19 Jul 2011
3 answers
199 views
I have been trying to follow the code for loading data into a radgrid using an xml file with hierarchical data with no luck.  I have a similar file to the sample invoices / parts code located throughout the telerik codes samples and I can't get "table[0]" to bind with table[2].  The one thing I don't see in any of the samples is the properties that need to be set on the grid after in is placed on a winform (not sure if this is really the problem.  Below is the code for my function:

private void uiTSSearchTitleScan_Click(object sender, EventArgs e)
{
    DAOLoginService.DAOLoginService LoginServices = new DAOLoginService.DAOLoginService();
    DAODataService.DAODataService DataServices = new DAODataService.DAODataService();
    try
    {
        // create the objects needed for the process
        XmlDocument Document = new XmlDocument();
        XmlNode Result = null;
        XmlDocument doc = new XmlDocument();
        XslCompiledTransform xslt = new XslCompiledTransform();
        DataSet xmlDataSet = new DataSet();
 
        //Set Variable Values
        string UserCompany = "xxxx";
        string UserName = "xxxxx";
        string UserPassword = "xxxx";
        string sLotBlkUnit = "xxx";
 
        Result = Document.DocumentElement;
        Token = LoginServices.Login(UserCompany, UserName, UserPassword);
        Result = DataServices.GetSubdivisionList(Token, this.uiCboCounty.SelectedValue.ToString(), this.uiTxtSearchFor.Text, "P", sLotBlkUnit, "", "", "", "", "", "");
 
        XmlNode ResultNodes = Document.ImportNode(Result, true);
 
        Document.AppendChild(ResultNodes);
 
        //=============================================
        // save the original data response from titlescan to xml
        //=============================================
        Document.Save("_GetSubdivisionList.xml");
 
        //=============================================
        // need to reformat the xml file to friendly tags so
        // we do it here
        //=============================================
        doc.Load(@"_GetSubdivisionList.xml");
        xslt.Load("GetSubdivisionLotList.xsl");
        xslt.Transform("_GetSubdivisionList.xml", "GetSubdivisionList.xml");
        xmlDataSet.ReadXml("GetSubdivisionList.xml");
 
        //=============================================
        //clear grid from last lookup if applicable
        //=============================================
        this.uiGrdSearchResults.MasterTemplate.Templates.Clear();
        this.uiGrdSearchResults.Relations.Clear();
        
        //=============================================
        // setup the grid and load using the xml data provided
        //=============================================
        GridViewTemplate LotTemplate1 = new GridViewTemplate();
        this.uiGrdSearchResults.MasterTemplate.Templates.Add(LotTemplate1);
        GridViewRelation relation = new GridViewRelation(this.uiGrdSearchResults.MasterTemplate);
        relation.ChildTemplate = LotTemplate1;
        relation.RelationName = "Subdivisions_LotBlockUnits";
        relation.ParentColumnNames.Add("Subdivision_Id");
        relation.ChildColumnNames.Add("LotBlockUnits_Id");
        uiGrdSearchResults.Relations.Add(relation);
 
        if (xmlDataSet.Tables.Count == 0)
        {
            MessageBox.Show("No records found that match the criteria entered.","No Records!",MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
        }
        else
        {
            this.uiGrdSearchResults.DataSource = xmlDataSet.Tables[0];
            LotTemplate1.DataSource = xmlDataSet.Tables[2];
            this.uiGrdSearchResults.MasterTemplate.BestFitColumns();
            this.uiGrdSearchResults.MasterTemplate.Templates[0].BestFitColumns();
        }
    }
    catch (Exception ex)
    {
        if (Convert.ToString(Token) == "00000000-0000-0000-0000-000000000000")
        {
            MessageBox.Show("Login Failed. Token returned was \n" + Token);
        }
        else
        {
            MessageBox.Show(ex.Message);
        }
    }
    finally
    {
        if (Convert.ToString(Token) != "00000000-0000-0000-0000-000000000000")
        {
            LoginServices.Logout(Token);
        }
    }
 
}


The grid will display table[0] correctly with an arrow indicating the child template but when clicking on the arrow the position indicates the child is open but the data does not display.  I have replace table[0] with table[2] as the mastergrid and the data does display as the master data.

Below is a sample of the XML file data

  <?xml version="1.0" encoding="utf-8" ?>
- <Subdivisions>
- <Subdivision>
  <CountyCode>M</CountyCode>
  <Name>CHERRYWOOD VILLAGE CONDO 89-203 POST W/BLKS</Name>
  <Number>CHERRY100</Number>
  <DefinitionFlag>Y</DefinitionFlag>
  <UnitFlag>N</UnitFlag>
  <Comments>UNIT IS LT, BLDG IS BLK EXAMPLE:UNIT 101 BLDG 9500 IS LT 101 BLK 9500 UNIT 9502 BLDG 100 IS LT 950+++</Comments>
- <LotBlockUnits>
- <LotBlockUnit>
  <SubdivisionNumber>CHERRY100</SubdivisionNumber>
  <OpenFlag>Y</OpenFlag>
  <Block>100</Block>
  <StartLot>9502</StartLot>
  <EndLot />
  <StartUnit />
  <EndUnit />
  <StartDate />
  <EndDate />
  <UnitComments />
  </LotBlockUnit>
- <LotBlockUnit>
  <SubdivisionNumber>CHERRY100</SubdivisionNumber>
  <OpenFlag>Y</OpenFlag>
  <Block>100</Block>
  <StartLot>9504</StartLot>
  <EndLot />
  <StartUnit />
  <EndUnit />
  <StartDate />
  <EndDate />
  <UnitComments />
  </LotBlockUnit>
- <LotBlockUnit>
  <SubdivisionNumber>CHERRY100</SubdivisionNumber>
  <OpenFlag>Y</OpenFlag>
  <Block>100</Block>
  <StartLot>9506</StartLot>
  <EndLot />
  <StartUnit />
  <EndUnit />
  <StartDate />
  <EndDate />
  <UnitComments />
  </LotBlockUnit>
- <LotBlockUnit>
  <SubdivisionNumber>CHERRY100</SubdivisionNumber>
  <OpenFlag>Y</OpenFlag>
  <Block>100</Block>
  <StartLot>9508</StartLot>
  <EndLot />
  <StartUnit />
  <EndUnit />
  <StartDate />
  <EndDate />
  <UnitComments />
  </LotBlockUnit>
- <LotBlockUnit>
  <SubdivisionNumber>CHERRY100</SubdivisionNumber>
  <OpenFlag>Y</OpenFlag>
  <Block>100</Block>
  <StartLot>9510</StartLot>
  <EndLot />
  <StartUnit />
  <EndUnit />
  <StartDate />
  <EndDate />
  <UnitComments />
  </LotBlockUnit>
- <LotBlockUnit>
  <SubdivisionNumber>CHERRY100</SubdivisionNumber>
  <OpenFlag>Y</OpenFlag>
  <Block>100</Block>
  <StartLot>9512</StartLot>
  <EndLot />
  <StartUnit />
  <EndUnit />
  <StartDate />
  <EndDate />
  <UnitComments />
  </LotBlockUnit>
-</LotBlockUnits>
  </Subdivision>
  </Subdivisions>

Help!

Doug
Nikolay
Telerik team
 answered on 19 Jul 2011
1 answer
109 views
Hey,
I have created a Chart with a Datatable-Binding. So now I have only one y-Axis. The values are in the same area so i dont need a second y-Axis. But are there only one y-axis if the values are completly diffrent or is then a second y-Axis?
Thanks for your support
Evgenia
Telerik team
 answered on 19 Jul 2011
3 answers
302 views
How can I get a close button in the tabs for document windows in RadDock? Similar to how Firefox has implemented them. I was able to do it in RadPageView by doing something like the following, just not sure where it goes in the tree for a DocumentWindow.

RadButtonElement radB = new RadButtonElement();
radB.MaxSize = new Size(15, 15);
radB.Click += new EventHandler(control.CloseTabButtonClicked);
radB.Font =
  new System.Drawing.Font("Verdana", 7, FontStyle.Regular, GraphicsUnit.Point, ((Byte)0));
radB.Text = "X";
radB.TextElement.Location = new Point(1, 0);
radB.Margin = new Padding(0);
radB.TextAlignment = ContentAlignment.TopLeft;
radB.Alignment = ContentAlignment.MiddleRight;
tabItem.Children[2].Margin = new Padding(0, 0, 20, 0);
tabItem.Children.Add(radB));
Stefan
Telerik team
 answered on 19 Jul 2011
1 answer
71 views
Hi
i am dynamically setting the resources(may be multiple).
when i am double cliking on scheduler new appointment window is opening, that time i want to know from which resource i am creating appointment

Thanks
Hema
Ivan Todorov
Telerik team
 answered on 19 Jul 2011
3 answers
79 views
Hi, I have a problem.
Let's see the picture.
How can I solve this problem. Can anyone help me, thank so much.
Nikolay
Telerik team
 answered on 19 Jul 2011
3 answers
143 views
Hi,

I am using the radpageview in strip mode ,i have problem while applying office colors the pageview doesnt change the colors why is it so ,can anyone explain me why the colors are not applied .



Thanks
Hema
Boryana
Telerik team
 answered on 19 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
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?