Ive got 2 questions.
1)When I select a page of the grid, then in the OnCellValueNeeded event, if that page has no table of data then I call function "AskForData" which uses an event to run a sql query to read in 100 records to fill the table.
My call to Grid.VirtualGridElement.BestFitColumns(); is the last line of the AskForData() function as I didn't really know where else to put it, it seems to work. But at that moment of time, the cells haven't been formatted. Is there a recommended event I should trap?
2) I've set up my grid to use a hierarchical/child grid for displaying some data using the help document https://docs.telerik.com/devtools/winforms/virtualgrid/hierarchical-virtual-grid/hierarchical-data
Grid.VirtualGridElement.BestFitColumns seems to affect the masterviewinfo but not the child view info. Is there a way of accessing that to get bestfit on child columns?
thanks :)
Hi
In on day view, when I scroll from left to right in day view. The dates are not changing. Is there any possibility to change the resource design like the attached image. Please check & do the needful. Thanks in advance
Hi,
I've been trying to find a way to disable the ability for a user to copy text or any content from a richtexteditor. I want to block any ability for shortcut keys or mouse clicking for copying content. Any help would be appreciated. Thanks!
J
Hey guys, is it possible to create a List of GridViewDataColumn avaliable at design time? Like u do in the GridRelations(attached), I've tried reading your TemplateCollectionEditor(at Telerik.WinControls.UI.Design.dll, same namespace) class, but didn't understand anything.
Here is my class where I want' use it
public
class
ColunaTextoAjuda : IAjuda
{
public
GridViewDataColumn Coluna {
get
;
set
; }
[Browsable(
true
)]
[DefaultValue(
""
)]
[Editor(
"Telerik.WinControls.UI.Design.TextOrHtmlSelector, Telerik.WinControls.UI.Design, Version=2018.1.116.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e"
,
typeof
(UITypeEditor))]
public
string
Texto {
get
;
set
; }
}
I've noticed that Grid.Selection.SelectedRegions returns the dataset row number values whenever a paging-enabled virtual grid page changes. i.e the selection may be on a different page than the one on view.
I'm having problems generating elegant code for moving the regions from page to page so they select from the page of data that's on view, including cases where a full page of data has less rows than the original selection.
The help file isn't very explanatory,
radVirtualGrid1.VirtualGridElement.Selection.BeginSelection(3, 1, radVirtualGrid1.MasterViewInfo, true); radVirtualGrid1.VirtualGridElement.Selection.ExtendCurrentRegion(6, 3);
If I've several individual rows selected then how do I manipulate the grid.selection.selectedregions so that I can assign the whole set of regions? following is the code Im trying but Im having a real struggle understanding what Im doing.
01.
var selectionRegions = Grid.Selection.SelectedRegions;
02.
var offset = Math.Abs(e.NewIndex - Grid.PageIndex);
03.
var multiplier = e.NewIndex > Grid.PageIndex
04.
? PageSize * offset
05.
: -PageSize * offset;
06.
var newRegions = new List<
SelectionRegion
>();
07.
foreach (var region in selectionRegions)
08.
{
09.
var newRegion = new SelectionRegion(region.Top * multiplier, region.Left,
10.
region.Bottom * multiplier, region.Right, region.ViewInfo);
11.
newRegions.Add(newRegion);
12.
}
13.
Grid.Selection.SelectedRegions. <- and here is where everything goes horribly wrong :)
Hi all,
I've implemented a radgridview in my project, and I need one column to search, in this case, a barcode but I have two ways for search it. The barcode and a small code which are related between. So I've implemented a multicolumncombobox and a composite filter to do this. It works, but I have a problem in some cases. When the combobox has a lot of data, the filter which has the property autocompletemode as suggestappend, it is working too slow. For example, I press one key it takes too long time to appear in the column, it appears to be freeze.
Do you know how to improve this? Or there is another control to make this purpose?
Thanks in advance.
Regards,
Hi
I have an issue with the validation of email addresses using when the mask type is set to EMail, it is not allowing the following style of email address "t.harris@working.group" (note this is not the exact email address of obvious reasons), it does work when i append .co.uk or .com on the end.
What are the validation criteria for this EMail validation ?
Do I have to use an edit mask instead ? If so can you give an example which will allow above email address as well as those in more "normal" formats ?
Regards
Toby
Hello All,
Is it possible to validate the text enter as the user types (ie validate on TextChanged) as opposed to validating as focus is changed?
Thanks!!