I am sure this is a setting somewhere, but I can't find it for my life. In some cases, we have where Grid columns exceed the width of the visible grid. When that happens, the grid data is centered in the visible area. How can we prevent that?
Any help would be great appreciated.
TIA
I've got a radgridview consisting of approximately 280 rows and 100 columns (some non-visible), made by autogenerating columns based on a dynamic temp-table in the datasource. After opening the query I'm setting for approximately 15 rows the Ispinned property to true:
radGridView...:Rows[i]:PinPosition = Telerik.WinControls.UI.PinnedRowPosition:TOP.
Based on the information the profiler provides, this takes around 7 seconds per call. This is way to slow since the program has to recreate the dynamictemp-table and associated information by querying the database each 30s.
The pinning of the rows is already encapsulated by a beginupdate on the grid table element. Setting certain properties to false of the grid didn't result in a speed up.
What did make the pinning of the rows faster was when the query had less rows.
How could this be faster? Is it possible to pin the rows while the query is retrieving its results or before instead of after?
Hi
I have a GridView with a relational hierarchy of two levels connected via two manual relations and two templates.
gridViewRelation1.ChildColumnNames.Add("AktivitaetVorgang");
gridViewRelation1.ChildTemplate = this.templateFremdeAktivitaetVorgaenge;
gridViewRelation1.ParentTemplate = this.radGridPsz.MasterTemplate;
gridViewRelation1.RelationName = "relationAktivitaetVorgang";
gridViewRelation2.ChildColumnNames.Add("VorgangHandlungsBedarf");
gridViewRelation2.ChildTemplate = this.templateFremdeVorgangHandlungsbedarfe;
gridViewRelation2.ParentTemplate = this.templateFremdeAktivitaetVorgaenge;
gridViewRelation2.RelationName = "relationVorgangHandlungsbedarfe";
this.radGridPsz.Relations.AddRange(new Telerik.WinControls.UI.GridViewRelation[] {
gridViewRelation1,
gridViewRelation2});
The template of the second level is added to the Maintemplate, the template of the third level is added to the template of the second level.
Everything is working fine at first.
But if I save the layout of the grid and reload it after closing and opening the application again (via radGrid.SaveLayout and radGrid.LoadLayout), there are no rows in the third level, although the datasource is the same, and they were there in the beginning.
The rows of the second level do not have childRows although the templates and relations are still there
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?
We set AllowDeleteRow = true, but this doesn't seem to do anything.
What is the default capability for deleting rows/records in the GridView?
Is there a default 'delete'-button or context menu we can show, or do we need to implement it oursleves? The documentation is quite lacking here...
We want to switch the gridview to german.
This article suggests we have to provide our own translations: Localization - UI for WinForms Documentation - Telerik UI for WinForms
We actually would prefer not to do that...
Are there any default translations we can use? If so, how would we integrate them?
If not; where exactly does the provider class reside in our application, and where do we need to set the CurrentProvider?
I've been looking at the release notes and i can see that a selection checkbox has been added since we last updated which is great. I can also see as per the release notes that there is a "New mode for selecting rows only via the selection checkboxes". Does anyone know how to configure this?
Cheers!
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
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