I notice that, now that i'm using the new Licensing mechanism, when I build my solution I get lots of new messages.
The main message is:
[Telerik and Kendo UI Licensing]
1> Valid Telerik UI for WinForms license found. Make sure the main application also references Telerik.Licensing when using a class library.
...which is repeated for each project in the solution.
I am not sure if this is just a warning, in which case how can I suppress it? It makes it harder to see where the REAL build warnings are.
If it's not a warning, how do I fix?
Hi, my application is built on .NET 4 and Telerik 2023. However, after the update, I have experienced increased lag when loading radGridView
What should I do?
Hello,
I want to add a custom button to the right side of the BreadCrumb control.
The documentation says it's possible.
How can I do this?
Thanks.
Hi everyone,
I have a website: gatewayabroadeducations.com which has a total of around 280 pages, including blog posts. All these pages are correctly listed in the sitemap, and the sitemap is submitted in Google Search Console.
However, when I search on Google using the operator site:gatewayabroadeducations.com
, I can only see about 29 pages indexed. Most of the blog posts and some other pages are not appearing in the Google search results.
I’ve checked:
The pages are in the sitemap
Pages are not blocked by robots.txt
Pages return a 200 status (not 404 or 301)
Canonical tags seem correct
No manual action in Search Console
I can't figure out why the remaining pages aren’t being indexed. Could this be due to:
Low-quality or duplicate content?
Crawl budget issues?
Internal linking problems?
Something else I might be missing?
Any help or suggestions to diagnose and fix this would be appreciated.
Thanks in advance!
I am trying to install the Telerik.Licensing package from nuget.org, as per your instructions.
No matter which version i try to install, including the current latest stable (1.6.24) i get a 404 error from nuget.telerik.com:
Failed to fetch results from V2 feed at 'https://nuget.telerik.com/nuget/FindPackagesById()?id='Telerik.Licensing'&semVerLevel=2.0.0' with following message : Response status code does not indicate success: 404 (Not Found).
Response status code does not indicate success: 404 (Not Found).
The output in VS does contain a lot of stuff, so it looks like it's trying do do something. This is the contents of the output. For shortness, I have only tried to install the pacjage one a single project:
===> Start of Output:
I have a WinForm application.
error info:Error message: System.Threading.ThreadStateException: "Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked. This exception is only raised if a debugger is attached to the process." Some of the code is as follows: 1.Partial code of class Program.cs: [STAThread] static async Task Main(string[] args) {
RadSplashScreenManager.ContentCreated += RadSplashScreenManager_ContentCreated;
RadSplashScreenSettings f = new RadSplashScreenSettings()...
var services = new ServiceCollection(); ... services.AddTransient<RadFrmMain>(); await using var sp = services.BuildServiceProvider(new ServiceProviderOptions { ValidateScopes = true, ValidateOnBuild = true }); Application.Run(sp.GetRequiredService<RadFrmMain>()); } 2.Partial code inside RadFrmMain.cs: radMenuOpenProject.Name = "radMenuOpenProject"; radMenuOpenProject.Text = "Open Project"; radMenuOpenProject.Click += radMenuOpenProject_Click; private async void radMenuOpenProject_Click(object sender, EventArgs e) { await OpenProjectAsync(); } private async Task OpenProjectAsync() { string? pickedFile = await InvokeOnUiAsync(() => { System.Diagnostics.Debug.Assert( System.Threading.Thread.CurrentThread.GetApartmentState() == System.Threading.ApartmentState.STA, "OpenFileDialog must be called on STA"); var root = string.IsNullOrWhiteSpace(_settings.SqliteRoot) ? "projects_db" : _settings.SqliteRoot; var start = LastPathStore.LoadOr(root); using var ofd = new OpenFileDialog { Title = "Open Project", Filter = "Project files (*.project.json;*.db)|*.project.json;*.db|JSON files (*.project.json)|*.project.json|SQLite (*.db)|*.db|All files (*.*)|*.*", Multiselect = false, InitialDirectory = Directory.Exists(start) ? start : root }; return ofd.ShowDialog(this) == DialogResult.OK ? ofd.FileName : null; //Error message: System.Threading.ThreadStateException: "Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked. This exception is only raised if a debugger is attached to the process." }); } Previously, when using: [STAThread] static void Main() it worked normally, but the project must use static async Task Main(string[] args). How to handle this?
If a user sees a grid that looks like Excel, they expect it to function the same as Excel. I'm not very familiar with Telerik grids, but the OOTB copy/paste functionality doesnt seem to work the identical to Excel.
Our users need to be able to select a single cell and paste a single cell. This seems to work.
They also need to be able to select a single cell and paste its value in many cells. This only seems to paste the value in the last selected cell, not all selected cells.
Before:
After
Select multiple continuous cells from a row and paste to a single cell, and have all copied cells pasted starting at the selected paste location. This seems to work
Select multiple continuous cells from a row and paste to a selection of continuous rows and have all copied cells pasted. This seems to only work on the last row
Before
After
Here are my current grid settings:
DataRadGrid.AllowAddNewRow = false;
DataRadGrid.AllowColumnChooser = false;
DataRadGrid.AllowColumnReorder = false;
DataRadGrid.AllowDeleteRow = false;
DataRadGrid.AllowEditRow = true;
DataRadGrid.AllowMultiColumnSorting = true;
DataRadGrid.AllowRowReorder = false;
DataRadGrid.AllowRowResize = false;
DataRadGrid.BeginEditMode = RadGridViewBeginEditMode.BeginEditOnKeystroke;
DataRadGrid.EnableAlternatingRowColor = true;
DataRadGrid.EnableCustomDrawing = true;
DataRadGrid.EnableFiltering = true;
DataRadGrid.EnableGrouping = false;
DataRadGrid.EnableHotTracking = false;
DataRadGrid.HorizontalScrollState = ScrollState.AlwaysShow;
DataRadGrid.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.None;
DataRadGrid.MasterTemplate.ShowFilteringRow = false;
DataRadGrid.MasterTemplate.ShowHeaderCellButtons = true;
DataRadGrid.MasterView.TableSearchRow.ShowClearButton = true;
DataRadGrid.MultiSelect = true;
DataRadGrid.SelectionMode = GridViewSelectionMode.CellSelect;
DataRadGrid.ShowColumnHeaders = true;
DataRadGrid.VerticalScrollState = ScrollState.AlwaysShow;
DataRadGrid.EnterKeyMode = RadGridViewEnterKeyMode.EnterMovesToNextRow;
Are there settings I can use to mimic Excel, if not, is there boilerplate code to achieve this?
Thanks,
matt
Hi,
Using SaveFileDialog (not RadSaveFileDialog) in Telerik apps is broken.
I'm using the [STAThread] attribute on my Program.cs.
When running my app in Debug mode , I get the following exception when ShowDialog is called :
à System.Windows.Forms.FileDialog.RunDialog(IntPtr hWndOwner)
à System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)
à NDC.WinUI.Helpers.WinDbFileHelper.<ExportDB>d__4.MoveNext()
When trying the same in Release mode, my app simply freezes and does nothing.
Here is my code :
public static async Task<bool> ExportDB(string dbPath)
{
try
{
if(File.Exists(dbPath))
{
List<DriveInfo> usbDrives = DriveInfo.GetDrives().Where(drive => drive.DriveType == DriveType.Removable && drive.IsReady).ToList();
using(SaveFileDialog sfd = new SaveFileDialog()
{
DefaultExt = NdcConstants.SqLiteExtension.ExtensionFilter,
InitialDirectory = usbDrives.Count != 0 ? usbDrives[0].RootDirectory.FullName : Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
Filter = NdcConstants.SqLiteExtension.FriendlyName,
FileName = Path.GetFileName(dbPath),
RestoreDirectory = true
})
{
if(sfd.ShowDialog() == DialogResult.OK)
{
if(File.Exists(sfd.FileName))
{
File.Delete(sfd.FileName);
}
await SqlFileBackup.ProcessOnlineBackup(dbPath, sfd.FileName);
return true;
}
}
}
return false;
}
catch(Exception ex)
{
Interaction.Error(ex);
return false;
}
}
Which is call like this : await WinDbFileHelper.ExportDB(settings.LocalDatabaseFullPath)
Base .Net SDK Dialog class should be able to work even if called inside a Telerik app/form.