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 ?
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
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 :)
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
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
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
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()
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