Hello everyone, I have successfully changed the scroll bar color of the RadRichTextEditor control. However, no matter how I try to set and modify the color of the button on the scrollbar, it remains white. How can I achieve this? Thank you.
Using the expression editor in a gridview, I'm trying to determine how much time in minutes has passed between a column that only has time and NOW()
Column: arrived_time (time)
something along the line of: DATEDIFFMINUTE(arrived_time, NOW()) >= 15
since arrived_time is time only, it seems to fail when compared to NOW().
Is there a way to add today()+arrived_time to get a proper datetime value?
End goal is if more than 15 minutes has passed since arrived_time then change RowBackColor
Hi,
I want to drag and drop row in same grid like reorder the row. Is it possible to without create custom control ?
Actually we have file names in each row, user want to merge the file based on drag and drop, So user from which place to which place drop the row, we will merge that two file and refresh in grid. So for this we want drag and drop function.
I tried RadGridView.AllowRowReorder property to true , but still cant drag and drop the row. This is page load code for bind data in grid.
Hi folks. There seems to be a lot of questions about this and every answer I could find pointed me at some web solution. This is Winforms and nothing I've seen so far has been in line with my current issue - so here goes!
WinForms .Net 4.7.2 VB
A simple grid (See gridPIC.png)
3 Columns:
Export property settings:
When using ExportFormat = SpreadStreamExportFormat.Csv you can see the integer shows 111, the 2 decimal data shows 222.22 and the four decimal data shows 333.3333 as expected. (See csvPIC.png)
But when using ExportFormat = SpreadStreamExportFormat.Xlsx the results are incorrect (*See ExcelPic.png)
I was expecting that the export file would include the format information. I thought perhaps because I'd set spreadStreamExport.ExportVisualSettings = False that this was the cause but I can flip that to True and the output is identical.
The DATA that gets into Excel IS CORRECT. It's just not formatting the cells as expected.
Is there any way for spreadStreamExport to output the proper Decimal formatting?
If yes, can you point me at a sample? C# is just fine if you folks aren't vb.net users.
Thank you all!
Curtis
I have abound gridview that i have added a checkbox column to as the first column.
i cannot check any checkboxes in any row, only able to check the headercheckbox which selects all checkboxes of every row.
Dim checkboxcolumn As New GridViewCheckBoxColumn
checkboxcolumn.DataType = GetType(Integer)
checkboxcolumn.Name = "SelectedColumn"
checkboxcolumn.FieldName = "Select"
checkboxcolumn.HeaderText = "Select?"
GV_Assets.MasterTemplate.Columns.Add(checkboxcolumn)
checkboxcolumn.EnableHeaderCheckBox = True
Objective: get the icon of a file (word,excel,pdf,...)
In L4G, I use the ExtractAssociatedIconA function to obtain a handle for an icon stored as a resource in a file or an icon stored in the executable file associated with a file.
And I associate it with a button using the SendMessageA function.
Example code:
DEFINE VARIABLE FILENAME AS CHARACTER NO-UNDO.
DEFINE VARIABLE IconInd AS INTEGER NO-UNDO.
DEFINE VARIABLE hIcon AS INTEGER NO-UNDO.
DEFINE VARIABLE iOldIcon AS INTEGER NO-UNDO.
DO WITH FRAME {&FRAME-NAME}:
IF NUM-ENTRIES(RowObject.com_cha:SCREEN-VALUE,CHR(9)) > 0 THEN
DO i = 1 TO NUM-ENTRIES(RowObject.com_cha:SCREEN-VALUE,CHR(9)):
VIEW hbutton[i] hfillin[i].
hbutton[i]:SELECTABLE = TRUE.
ASSIGN DisplayName = ENTRY(i,RowObject.com_cha:SCREEN-VALUE,CHR(9)).
IF Filename <> "" THEN
DO:
RUN ExtractAssociatedIconA(INPUT 0,INPUT-OUTPUT NomFich,INPUT-OUTPUT IconInd,OUTPUT hIcon).
RUN SendMessageA( hButton[i]:HWND, {&BM_SETIMAGE}, {&IMAGE_ICON}, 0, OUTPUT iOldIcon).
RUN SendMessageA( hButton[i]:HWND, {&BM_SETIMAGE}, {&IMAGE_ICON}, hIcon, OUTPUT iOldIcon).
END.
I want to do the same thing with a RadGridView? I've added an ima column as type GridViewImageColumn and in the :
METHOD PRIVATE VOID GridLien_CellFormatting I'd like to put the image
RUN SendMessageA( e:CellElement:?????? {&BM_SETIMAGE}, {&IMAGE_ICON}, hIcon, OUTPUT iOldIcon).
Can you help me?
Thank you
radDDL.DropDownListElement.TextBox.Fill.BackColor = Color.Red;
How to convert PDF pages to images in .NET Framework app? I've scoured the site, and it seems you recommend something like this:
RadPdfViewer pdfViewer = new RadPdfViewer();
pdfViewer.DocumentLoaded += (sender, e) =>
{
if (sender is RadPdfViewerElement pdfViewerElement)
{
for (int i = 1; i <= pdfViewerElement.Document.Pages.Count; i++)
{
Image pageImage = pdfViewerElement.ExportPage(i, 1, true, ImageFormat.Jpeg);
// Use pageImage
}
}
};
pdfViewer.LoadDocument(pdfPath);
pdfViewer.LoadElementTree();
Application.DoEvents();
Is this really the best way for .NET Framework apps? There is an example that uses PdfProcessing instead of PdfViewer, but requires the assembly Telerik.Documents.Fixed.FormatProviders.Image.Skia, which I don't have available in my Visual Studio with latest update of Telerik UI for WinForms 2024.3.806.462. Nor is it available on nuget, or I don't know how to find it.
Hi everyone,
I’m currently using RadRichTextEditor to print logs. I have the following scenario:
How can I change the font color for different lines in RadRichTextEditor?
Thank you!