Hello,
I'd like the number of characters in the form title to be reduced when I reduce my form.
example with eclipse: (Width form: 1000)
projet_xxxxx - c:/mon_projet/srv/fichier/caracteristique/grid/form_caraterisque.cls - Progress Developper Studio
and after reduction of Form (width form 700)
projet_xxxxx - c:/mon_projet/srv/fichier/caracteristique/grid/form_caraterisque.cls - Progress ...
the title and ...
best regard.
After performing an ExportToImage using the RadBarCodeView, I'd like to delete the image from the harddrive.
But it always says that the file is in use and cannot be deleted.
I tried setting the RadBarCodeView1.value = Nothing (trying to make it release the image file) but that doesn't work either.
Any idea's on how to release that image file?
Hello everyone :)
I've got a new project that includes a RadListView that I have placed on a WinForm with ViewType = IconsView
I'd like to display a thumbnail along with some HTML text - but I'm struggling getting the data I need from the object being formatted.
Here's my VisualItemFormatting method:
Private Sub rlvScanForms_VisualItemFormatting(sender As Object, e As Telerik.WinControls.UI.ListViewVisualItemEventArgs) Handles rlvScanForms.VisualItemFormatting
myViewElement.Items(0).Tag holds a class that contains the text I'd like to display along with the correct icon size (these are documents of various sizes so I'd like the icons to have the same width/height ratio.
myViewElement.Items(0).Tag is clearly WRONG...it's there and not Nothing but it's the 0 index of all Items in the RadListView and it's in my code as a place holder so I could build the rest of the UI class.
Does anyone know how I can get the index of the ListViewItem that's being "formatted" by VisualItemFormatting? Of not the index from the RadListView's Item collection, maybe the actual ListViewItem object itself?
Any help would be appreciated.
Thank
Hi,
I am using Telerik Winforms for an MVVM application.
I have created a small Winform example about how we are using MVVM to handle events with default Winform applications <Attach example of MVVM application >. Most notable about this example is that we are using RelayCommands to help with the separation of concerns between our view and viewmodel on the click event as outlined in this microsoft devblogs. Using Command Binding in Windows Forms apps to go Cross-Platform - .NET Blog
We would like to avoid using event listeners (+=) in our view for events, such as click, as it does not follow the MVVM pattern. In WPF, they have event binding built in and the microsoft blog post describes how we can perform something similar with RelayCommand
. Both ways follow the MVVM design pattern. I would like to know if there was a built in Telerik way to perform event binding?
Thanks
I need to add a RadioButton column to my grid and I adapted the code in this demo to do it:
https://docs.telerik.com/devtools/winforms/knowledge-base/creating-a-radradiobuttoncellelement
The difference is I need a single radio button on each row and they need to be mutually exclusive of one another. This part is now working.
Using some sample credit card data, I have 3 challenges that I can't figure out:
1. How can I start the attached project and set the button for the credit card need selected when the form loads?
2. How can I retrieve the selected credit card id value (if any)?
3. I also seem to have a visual bug whereby when I scroll the grid up and down sometimes the button deselects and sometimes it seems to select a second option.
Could you please examine the attached project and let me know what I'm missing?
Thanks
Carl
Hi All,
I have a requirement to convert the mouse position in thepicture box control to the actual pixel position within the image. This must work when image layout is set to zoom, and handle when the image is zoomed in / out and panned within the control. If the mouse is moved outside of teh image but is still within the picture box then the X/Y coordinates would be set to -1, -1.
Is there any helper functions or sample code I can use to achieve this?I have a simple solution but this does not handle when the image is zoomed / panned.
Many thanks
Toby
I regret to say that my experience with Telerik UI for WinForms has been extremely disappointing. I purchased this product expecting high-quality controls and performance for my applications, but it has failed to meet even basic expectations.
Severe Performance Problems:
The application built with Telerik UI for WinForms suffers from severe slowness, especially when working with large datasets or complex controls like grids. Virtualization and optimization options provided by Telerik are either ineffective or insufficient for real-world use cases.
Poor User Experience:
The slow responsiveness of Telerik controls has led to constant client complaints. This directly impacts my business as my clients are frustrated with the application's usability.
No Solutions from Telerik:
Despite searching extensively in forums and documentation, there are no practical solutions to the performance issues. Even technical support responses lack clarity and effectiveness.
Waste of Money:
Considering the price of the Telerik license, the performance and value provided are far below expectations. My clients are losing faith in my software, and I am unable to justify renewing or continuing with Telerik products.
I strongly advise others to reconsider investing in Telerik UI for WinForms if performance and user experience are critical for your applications. The cost does not match the value provided. I will not be renewing my license and am exploring alternative UI frameworks like DevExpress or Syncfusion.
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