Telerik Forums
UI for WinForms Forum
9 answers
409 views

Hello,

I want to focus specific filter in a radgridview. I tried beginEdit event but i don't want to select text, just focus.

GridView.MasterGridViewInfo.TableFilteringRow.Cells[index].BeginEdit();

 

Focus() on the CellElement doesn't work.

How i can do that ?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Oct 2019
1 answer
291 views

Hello Admins,

 

I'm using one of my form's BorderStyle prperty to none.

When this form is shown no border is displayed.

I want to show only border,

Is it possible to hide only titlebar of the form

or

How to Show the Border/Edges of the form Like in Fluent Theme

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Oct 2019
4 answers
204 views

I noticed that it was possible to embed custom fonts whilst looking at the webcam firstlook demo source code. I'm rewriting a poorly working web cam module, replacing the old code with your new webcam control.

So I found https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/custom-fonts and generated the following code

/// <summary>
/// Add all fonts to [root]\Properties as embedded resources
/// </summary>
public static class FontFactory
{            
  private static FontFamily ReadFontFromManifest(string fontFileName, string fontName)
  {
    #region Code
    try
    {
      var names = Assembly.GetExecutingAssembly().GetManifestResourceNames();
      var root = Assembly.GetExecutingAssembly().GetName().Name;
      var fontStream = Assembly.GetExecutingAssembly().GetManifestResourceStream($@"{root}.Properties.{fontFileName}");
 
      if (fontStream == null) return null;
 
      ThemeResolutionService.LoadFont(fontStream);
      return ThemeResolutionService.GetCustomFont(fontName);
    }
    catch (Exception err)
    {
      Log4Net.Log.Error(err);
      throw;
    }
    #endregion
  }// function
 
  public static FontFamily Font_Awesome_5_Free_Solid
    => ReadFontFromManifest("Font-Awesome-5-Free-Solid-900.otf", Font_Awsome_5_Free_Solid_FontName);
 
  public static string Font_Awsome_5_Free_Solid_FontName
    => "Font Awesome 5 Free Solid";
}

 

I tested the code and it does seem to return a font family. But I want to ask a question about your first look please.

I was trying to find in the firstlook solution any code that matched the suggestion for embedding fonts shown in your documentation, but couldn't. The only mention of the awsome font above was in your form1.cs file for the webcam demo. So is it already part of your component source? When I removed the call to my font factory the closebutton.textelement.customfont still showed what appeared to be "Font Awesome 5 Free Solid";

Thanks. Just trying to understand what to expect :)

Czeshirecat
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 16 Oct 2019
17 answers
402 views

Hello Admins.

Currently I'm using radMenu for displaying and changing the theme at Run time.

Its working fine, but I want to Display the List like in Demo Forms.(Theme Name + its Color Bar).

How can i achieve this UI behavior .

I have check the demo application but unable to find any help.

 

Thank you

Kashif
Top achievements
Rank 1
 answered on 15 Oct 2019
3 answers
256 views
Hi support,

I use grouping in my RadGrid with summary rows.

Is it possible to keep the summary row only at the bottom of the grid and not in the grouping?
I only want the total of the data and I don't want to see the subtotal.

Regards,
Nadia
Nadya | Tech Support Engineer
Telerik team
 answered on 15 Oct 2019
5 answers
333 views

Hi,

I am reading an RTF string from a database and displaying it in a radRichTextEditor. Many of these are multi-line instructions, including many bullet point lists. In order to format this more nicely I wrote the following snippet

 

private void ConfigureDocumentEditor(RadRichTextEditor editor)
        {
            var docEditor = new Telerik.WinForms.Documents.Model.RadDocumentEditor(editor.Document);
             
            editor.Document.Selection.SelectAll();
            docEditor.ChangeFontSize(8);
            docEditor.ChangeParagraphLineSpacing(0.25);
            editor.Document.Selection.Clear();
            editor.IsReadOnly = true;
        }

 

I also set the LayoutMode to "Flow". The problem that I'm running into is that in some instances the data in the DB is just one long string. When I set ChangeParagraphLineSpacing to a value >= 1.0 the word wrap works nicely. When ChangeParagraphLineSpacing  < 1.0 it looks like the attached image. Is there any way to change the spacing so that it applies to paragraph breaks and lists but not the line spacing caused by word wrapping?

 

Thanks

 

Vladislav
Telerik team
 answered on 15 Oct 2019
2 answers
190 views
Is it possible to split DateTime column value with FormatString as {0:MM/dd/yyyy} \Newline {0:hh:mm:ss}?
Zurab
Top achievements
Rank 1
 answered on 15 Oct 2019
1 answer
113 views

HI, 

When the data is loading directly on form load, Sorting and Filtering is functioning well. When it's through threading, sorting and filtering options not working.

VB.Net | Sql Server

Telerik Winforms

01.Dim thread_Data As Thread
02.Private Sub RadFrmFupReport_Load(sender As Object, e As EventArgs) Handles Me.Load
03.        RadFrmFupReport.CheckForIllegalCrossThreadCalls = False
04.        Thread.CurrentThread.CurrentCulture = New Globalization.CultureInfo("en-US", False)
05.        thread_Data = New Thread(AddressOf LoadData)
06.        thread_Data.Start()
07.End Sub
08. 
09.Private Sub LoadData()
10.        Ta_Dt_Fup.Fill(Me.DS_Genius.dt_FUP)
11.        Vw_FUP_GroupTableAdapter.Fill(Me.DS_Genius.vw_FUP_Group)
12.        radGrdFup.DataSource = DS_Genius.vw_FUP_Group
13.
End Sub

If "LoadData" function called directly in form load event, taking 4-5 seconds to load the form. So used thread.  

Please help. Thanks in advance

Arun

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Oct 2019
3 answers
62 views

Hello all... 

plz help me i dont know whats wrong with my code ... i tried to follow the example given but my grid can not show like the example 

 

this the code i write : 

            Using conn As New OleDbConnection(str)
                conn.Open()

                'Fill GridDetail
                daDetail = New OleDbDataAdapter("Select TrProjectDtl.*, MstDetail.NamaDetail, MstBagian.NamaBagian " &
                                                "FROM (TrProjectDtl INNER JOIN MstBagian ON TrProjectDtl.KodeBagian = MstBagian.KodeBagian) INNER JOIN MstDetail ON TrProjectDtl.KodeDetail = MstDetail.KodeDetail " &
                                                "WHERE KodeProject='" & GridHeader.Rows(i).Cells(0).Value.ToString() & "' ORDER BY TrProjectDtl.KodeBagian, TrProjectDtl.KodeDetail", conn)

                dsDetail = New DataSet
                dsDetail.Clear()
                daDetail.Fill(dsDetail, "TrDetail")
                daDetail.Dispose()

                Me.GridDetail.TableElement.BeginUpdate()

                GridDetail.DataSource = (dsDetail.Tables("TrDetail"))

                GridDetail.MasterTemplate.AutoExpandGroups = True
                GridDetail.MasterTemplate.EnableFiltering = True
                GridDetail.ShowGroupPanel = True
                GridDetail.EnableHotTracking = True


                Me.GridDetail.TableElement.EndUpdate(False)

                'GridDetail.TableElement.CellSpacing = -1
                'GridDetail.TableElement.TableHeaderHeight = 35
                'GridDetail.TableElement.GroupHeaderHeight = 30
                'GridDetail.TableElement.RowHeight = 25

                'Me.GridDetail.GroupDescriptors.Clear()
                Me.GridDetail.GroupDescriptors.Add(New GridGroupByExpression("KodeBagian as KodeBagian format ""{0}: {1}"" Group By KodeBagian"))

                'GridHasil.BestFitColumns()

                conn.Close()

 

 

Dimitar
Telerik team
 answered on 11 Oct 2019
4 answers
75 views

Hello

is there an event that is fired when the user selects the current selectedItem ?

The "SelectedIndexChanged" is fired only if the index has changed, which is normal, but I would need an event that is fired when the user selects an item in the list even if the index does not change

 

Thanks in advance

Pierre-Jean

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 10 Oct 2019
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
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
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?