Quantcast
Channel: Telerik Forums RSS
Viewing all 99250 articles
Browse latest View live

Setting the side of a shape in a mindmap diagram

$
0
0

I'm programming a diagram with the mindmap-horizontal layout.

But I'm not able to set the side (left or right) of each shape. For example, my app is generating the diagram shown in the 01.PNG attached file, but the correct one would be the 02.PNG.

 

The connectors are ok, but how can I generate the correct position? The diagram has not fixed nodes, they can be 2 or 3 or 100.

 

Thank's in advance

 


Get back a Closed Document

$
0
0

Yeah, turns out it was pretty straightforward to do it.

Just as I imagined, it was a one-liner on the form's Designer.vb

I just added:

Me.dtsDocuments.Controls.Add(Me.dwLoadEmployees)
Me.dtsDocuments.Controls.Add(Me.dwLoadHours)
Me.dtsDocuments.Controls.Add(Me.dwLoadSites)

and the 3 'missing' DocumentWindows returned on the Designer

Telerik UI for WPF RadGridView RowHeight

$
0
0
Hi Chunyang,

RadGridView control for WPF exposes a RowHeight property which can be used to change the size of all rows inside the grid. Give this property a try and let me know if it works on your side. If not can may I ask you to elaborate more on your exact scenario? This way I could better understand you.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.

Export Format Problem

$
0
0

Hi Dess,

      Here I have a maximized radform. The radform is decrease its size from maximum when I click the export button and then click Save from SaveFileDialog.

Look at the gif file below
Jamsheer

Export Format Problem

$
0
0

Hi Dess,
      I have a maximized radform. The form is decreased its size from maximum when I click the export button an then click Save in SaveFileDialog.

Look at the gif file to reffer more.

Thank you
Jamsheer 

Best practice when removing DOM elements that may contain Kendo widgets

$
0
0
Ah, the kendo.destroy method can accept any container as a parameter? For some reason I thought it could only destroy all widgets on the page.I will try that out.

Kendo Grid with Datetime,Number,text field value in same column

$
0
0

Hi Team,

I have requirement where i want editable kendo grid in which i have one column  (Values) in which i want to show the date ,number and text values.depending on the datatye it should change control of that cell accourding to datatype of that value .i'm able to show these value but at the time of editing i facing issue like values are not visible in the cell something like that if i forced column type either to string or datetime,

please suggest some working example 

 

Thanks in advance.

font of Axes label

$
0
0

hi.

i want to change font and color of  Axes label.but when i changed it, change font of the all number in Axes.


show title of Series top on line

$
0
0

hi.

how can i do to insert the title of  Series  on top of line in ScatterLineSeries.

Import multiple ICS calendar files

$
0
0

I'm not sure the exact approach, but I'm looking to design a calendar where it imports multiple iCal files and displays schedule in a single calendar.  Each ics file would represent a different entity, and I would want to use custom colors to block events for each.

 

RadTextBoxControl Click Event Prevents ClearButton

$
0
0

     The RadTextBoxControl has a "ShowClearButton" property where is True, at the far right end there'll be an "X" button inside the textbox to clear the text.

If the textbox's Click event is hooked to a function and the user clicks on the "X" button, then the "X" will do nothing and the Click event is triggered.

 

I believe that when ShowClearButton is True, that portion of the textbox which contains the "X" button should not trigger the Click or DoubleClick events of the textbox.

Export to Excel - maintaining cell color

$
0
0

Thanks for the answers.  Just one more question...

Row objects are presumably exported first before the cell objects, so I can save the row that applies to subsequent cells with the following logic:

            if (e.Element == ExportElement.Row)
            {
                try
                {
                    _row = (sender as GridViewDataControl).ItemContainerGenerator.ContainerFromItem(e.DataContext) as GridViewRow;
                }
                catch
                {
                    _row = null;
                }
            }

Then when a cell reference is passed the following logic is run: 

          if (e.Element == ExportElement.Cell)
            {
                if (_row != null)
                {
                    foreach (GridViewCellBase cell in _row.Cells)
                    {
                        if (cell.Column.UniqueName == column.UniqueName)
                        {
                            if (cell.<get background color here> != <normal cell background color>)
                            {
                                ((GridViewDocumentVisualExportParameters)e.VisualParameters).Style = new Telerik.Windows.Controls.GridView.CellSelectionStyle()
                                {
                                    Fill = new PatternFill(PatternType.Solid, cell.<get background color here>, cell.<get background color here>)
                                };
                            }
                            break;
                        }
                    }
                }

How do I determine the background color for a GridViewCellBase object?

RadGridView RowHeight doesn't work

$
0
0

Hello,

I set RadGridView RowHeight to 100, but it doesn't work, it's still small

How can I set the custom rowheight for each row?

Thanks

Best practice when removing DOM elements that may contain Kendo widgets

$
0
0
Sure, Jesse, do things in your own time and if you have questions on this matter, post them here.

Happy holidays!

--Marin

Column's decimal precision and scale

$
0
0

Hello Stefan,

Thanks for the response.

The HorizontalContentAlignment works but the Placeholder just replaces the underscore with spaces. Please see attached image.

We've also tried setting AutoFillNumberGroupSeparators to false to hide the commas but we still have spaces on the left of the value.

Thanks,

Jan

 

Below is a sample of our code.

<t:GridViewMaskedInputColumn
    DataMemberBinding="{Binding Price}"
    Header="Price"
    Mask="#19.4"
    MaskType="Numeric">
    <t:GridViewMaskedInputColumn.EditorStyle>
        <StyleTargetType="{x:Type t:RadMaskedNumericInput}">
            <SetterProperty="Placeholder"Value=" "/>
            <SetterProperty="HorizontalContentAlignment"Value="Left"/>
            <SetterProperty="AutoFillNumberGroupSeparators"Value="False"/>
        </Style>
    </t:GridViewMaskedInputColumn.EditorStyle>
</t:GridViewMaskedInputColumn>

Kendo Grid with Datetime,Number,text field value in same column

$
0
0

Let me make a suggestion to you.  What you are really saying, if I restate what I believe you to be asking, is that you wish to have a variable format editor based upon content.   In theory you want the user to be able to click on a given element and the correct editor be shown / used.

Have you investigated the usage of a custom Model Editor?  That should give you what you are looking for.  You can then bind to the grid and tell it to use your model editor instead of the normal default editor templates.  That is one of the nice features of MVC....

 

Layout of a specific page

$
0
0

Hello Tanya,
Thanks for the help. But I'm still stuck with this issue...
Follow the code I'm using. The creation of a section for each page of the document is not working. With the folowing code all the sections are created in the same page (In the page two to be more specific). The combination of the two documents It's working perfectilly. Can you explain to me what I'm doing wrong?

01.var document = newRadDocument();
02.document.LayoutMode = DocumentLayoutMode.Paged;
03.IDocumentFormatProvider provider = DocumentFormatProvidersManager.GetProviderByExtension("rtf");
04. 
05.var merger = newRadDocumentMerger(document);
06.var options = newAppendDocumentOptions();
07.options.ConflictingStylesResolutionMode = ConflictingStylesResolutionMode.RenameSourceStyle;
08.options.FirstSourceSectionPropertiesResolutionMode = SectionPropertiesResolutionMode.SourceStartContinuous;
09.var files = newstring[] { "rtf1.rtf", "rtf2.rtf"};
10.foreach(stringfile infiles)
11.{
12.    FileStream stream = File.Open(file, FileMode.Open);
13.    var doc = newRadDocument();
14.    doc = provider.Import(stream);
15.    merger.AppendDocument(doc, options);
16.}
17. 
18.var editor = newRadDocumentEditor(document);
19.editor.ChangeSectionPageSize(PaperTypeConverter.ToSize(PaperTypes.A4));
20.var total = document.GetStatisticsInfo().PagesCount;
21.for(var x = 2; x <= total; x++)
22.{
23.    editor.Document.CaretPosition.MoveToPage(x);
24.    editor.InsertSectionBreak(SectionBreakType.Continuous);
25.    var section = editor.Document.Sections.ElementAt(x - 1);
26.    Padding margin;
27.    if(x % 2 == 0)
28.        margin = newPadding(50, 50, 300, 50);
29.    else
30.        margin = newPadding(300, 50, 50, 50);
31. 
32.    section.PageMargin = newPadding(margin);
33.}
34. 
35.using(Stream stream = File.OpenWrite("final.rtf"))
36.{
37.    provider.Export(editor.Document, stream);
38.}
39.Process.Start("final.rtf");

RadGlyph FileFormatException

$
0
0
I made an attempt to run the Microsoft patch, but it asked me to install .Net 4.7.1 which they don't have.  Their computer also isn't connected to the internet and is in constant use, so I will have to find a time to update it that won't interfere with production.  Long story short, for now I'm just using Telerik WPF controls version 2018.2.620.45, and will see if I can update their PC later and see if that helps, thanks.

Grid Update Not Firing. Getting 400 Error

$
0
0

I still have the issue. My update action does not even fire. You can see from the screenshot. It goes to a POST but not to my update action Editing_Update however my Antiforgery token is in there.

 

 

Unable to hide/remove GridView left border line

$
0
0
I've been trying to use RadGridView to display a relatively simple list of data.  No grouping, sorting or even selecting of cells allowed.  I tried to customize it to not show any borders or grid lines and use my custom background  but I seem to be unable to get rid of a single vertical line along the left side of the grid.

I've tried to do this by turning off all borders and make all of my backgrounds use the dark background color you can see in the image.  (a static resource brush named "GsBackgroundDark")  I tried to set the default styles of all of the element types that the grid apppears to use (GridViewCell, GridViewHeaderCell, etc).  But clearly I'm missing something.

Can you tell me what else I need to do?

I have attached an image showing you what I see.  What am I missing to get rid of that line on the left?

Below is  the XAML I'm using

<Windowx:Class="TestApp.MainWindow"
        mc:Ignorable="d"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:gl="clr-namespace:TestApp"
        xmlns:net="http://schemas.gelsight.com/mobile/net"
        Title="MainWindow"
        >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionarySource="/Colors.xaml"/>
            </ResourceDictionary.MergedDictionaries>
 
            <gl:MainWindowVmx:Key="ViewModel"/>
 
 
            <StyleTargetType="{x:Type tk:GridViewCell}">
                <SetterProperty="Background"Value="{StaticResource GsBackgroundDark}"/>
                <SetterProperty="BorderBrush"Value="Transparent"/>
                <SetterProperty="SelectedBackground"Value="{StaticResource GsBackgroundDark2}"/>
                <SetterProperty="BorderThickness"Value="0"/>
            </Style>
            <StyleTargetType="{x:Type tk:GridViewHeaderCell}">
                <SetterProperty="Background"Value="{StaticResource GsBackgroundDark}"/>
                <SetterProperty="BorderBrush"Value="Transparent"/>
                <SetterProperty="BorderThickness"Value="0"/>
            </Style>
            <StyleTargetType="{x:Type tk:GridViewSearchPanel}">
                <SetterProperty="Background"Value="{StaticResource GsBackgroundDark}"/>
                <SetterProperty="BorderBrush"Value="Transparent"/>
                <SetterProperty="BorderThickness"Value="0"/>
            </Style>
            <StyleTargetType="{x:Type tk:GridViewGroupPanel}">
                <SetterProperty="Background"Value="{StaticResource GsBackgroundDark}"/>
                <SetterProperty="BorderBrush"Value="Transparent"/>
                <SetterProperty="BorderThickness"Value="0"/>
            </Style>
            <StyleTargetType="{x:Type tk:GridViewScrollViewer}">
                <SetterProperty="Background"Value="{StaticResource GsBackgroundDark}"/>
                <SetterProperty="BorderBrush"Value="Transparent"/>
                <SetterProperty="BorderThickness"Value="0"/>
            </Style>
        </ResourceDictionary>
    </Window.Resources>
    <GridDataContext="{StaticResource ViewModel}">
     
        <tk:RadGridView      ItemsSource="{Binding Licenses}"
                        CanUserGroupColumns="False"
                        CanUserSearch="False"
                        Background="{StaticResource GsBackgroundDark}"
                        Foreground="{StaticResource GsForegroundLight}"
                        ColumnsSelectionButtonVisibility="Collapsed"
                        BorderThickness="0"
                        BorderBrush="{StaticResource GsBackgroundDark}"
                        ShowGroupPanel="False"
                        ShowColumnSortIndexes="False"
                        ShowSearchPanel="False"
                        ShowColumnFooters="False"
                        ShowGroupFooters="False"
                        CanUserSelectColumns="False"
                        Padding="0"
                        CanUserResizeColumns="False"
                        CanUserSearchInHiddenColumns="False"
                        DataLoadMode="Asynchronous"
                        Focusable="False"
                        GridLinesVisibility="None"
                        IsFilteringAllowed="False"
                        RowIndicatorVisibility="Collapsed"
                        CanUserSortColumns="False"
                        CanUserReorderColumns="False"
                        AutoGenerateColumns="False"
                        IsHitTestVisible="False"
                        CanUserSelect="False"
                        MaxWidth="500"Style="{DynamicResource RadGridViewStyle1}"  
                        SearchPanelForeground="{StaticResource GsForegroundLight}"
                        SearchPanelBackground="{StaticResource GsBackgroundDark}"
                        ColumnBackground="{StaticResource GsBackgroundDark}"
                        GroupPanelBackground="{StaticResource GsBackgroundDark}"
                        GroupPanelForeground="{StaticResource GsForegroundLight}"
                        AlternateRowBackground="{StaticResource GsBackgroundDark}"
                        >
            <tk:RadGridView.HeaderRowStyle>
                <StyleTargetType="{x:Type tk:GridViewHeaderRow}">
                    <SetterProperty="Background"Value="{StaticResource GsBackgroundDark}"/>
                    <SetterProperty="BorderBrush"Value="Transparent"/>
                    <SetterProperty="Foreground"Value="{StaticResource GsForegroundLight}"/>
                    <SetterProperty="BorderThickness"Value="0"/>
                    <SetterProperty="FontSize"Value="20"/>
                    <SetterProperty="FontWeight"Value="Bold"/>
                </Style>
            </tk:RadGridView.HeaderRowStyle>
            <tk:RadGridView.Columns>
                <tk:GridViewDataColumnHeader="Feature"Width="Auto"DataMemberBinding="{Binding Feature}"/>
                <tk:GridViewDataColumnHeader="Version"Width="Auto"DataMemberBinding="{Binding Version}"/>
                <tk:GridViewDataColumnHeader="Expires"Width="1*"DataMemberBinding="{Binding Expires}"/>
            </tk:RadGridView.Columns>
        </tk:RadGridView>
    </Grid>
</Window>

Viewing all 99250 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>