Hello,
I'm trying to use RadTimePicker but i have a problem if a user selected a time, no way to clear the timepicker after a lot of search i found that this control has a clear button buildin, i made the button it visible and set it text once i run the application (Windows Application) it doesn't show at all.
I tried by code and by Edit UI Elements.
((Telerik.WinControls.UI.RadTextBoxElement)(RadTimePicker1.TimePickerElement.Children[2].Children[0])).ClearButton.Visibility = ElementVisibility.Visible;
((Telerik.WinControls.UI.RadTextBoxElement)(RadTimePicker1.TimePickerElement.Children[2].Children[0])).ClearButton.Text = "Clear";
((Telerik.WinControls.UI.RadTextBoxElement)(RadTimePicker1.TimePickerElement.Children[2].Children[0])).ShowClearButton = true;
Could you please advice.
Thank you
Hi,
I have a simple grid with 1 field in the master template, and one field in the child template. I want to use the load on demand, the solution works fine without await/async:
Private
Async
Sub
RadGridView1_RowSourceNeeded(sender
As
Object
, e
As
GridViewRowSourceNeededEventArgs)
Handles
RadGridView1.RowSourceNeeded
'Add 3 sub rows
Dim
row1
As
GridViewRowInfo = e.Template.Rows.NewRow
row1.Cells(0).Value =
"Test 1"
e.SourceCollection.Add(row1)
Dim
row2
As
GridViewRowInfo = e.Template.Rows.NewRow
row2.Cells(0).Value =
"Test 2"
e.SourceCollection.Add(row2)
Dim
row3
As
GridViewRowInfo = e.Template.Rows.NewRow
row3.Cells(0).Value =
"Test 3"
e.SourceCollection.Add(row3)
End
Sub
However, when I use await with the event, the parent row does not auto expand, and the behavior become weird when trying to select child row there is a lot of scrolling and flickering:
Private
Async
Sub
RadGridView1_RowSourceNeededAsync(sender
As
Object
, e
As
GridViewRowSourceNeededEventArgs)
Handles
RadGridView1.RowSourceNeeded
'Simulate Await
Await Task.Delay(1000)
Dim
row1
As
GridViewRowInfo = e.Template.Rows.NewRow
row1.Cells(0).Value =
"Test 1"
e.SourceCollection.Add(row1)
Dim
row2
As
GridViewRowInfo = e.Template.Rows.NewRow
row2.Cells(0).Value =
"Test 2"
e.SourceCollection.Add(row2)
Dim
row3
As
GridViewRowInfo = e.Template.Rows.NewRow
row3.Cells(0).Value =
"Test 3"
e.SourceCollection.Add(row3)
End
Sub
Many Thanks
Sameh
Hi,
Is there any way to add new control (radbutton for instance) in the SearchRow? next to the gear button for example?
Many thanks
Sameh.
I have a WinForms Window with gridview in it And When this window opens, the following Exception appears
Exception: Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll ("Could not load file or assembly 'Telerik.WinControls.XmlSerializers, Version=2017.3.912.40, Culture=neutral' or one of its dependencies. The system cannot find the file specified."). Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll ("Could not load file or assembly 'Telerik.WinControls.XmlSerializers, Version=2017.3.912.40, Culture=neutral, PublicKeyToken=a4675be94ecbc7b2' or one of its dependencies. The system cannot find the file specified.")
Whether The App is in the Debug mode or Release mode
How to solve this problem
Thank you very much in advance.
hi,
i am new in programming
i want to fill raddropdownlist manually using entity framework (DataSource,displaymember,valuemember) whats the code for that
also i want to know when i made update using linq how i pass raddropdownlist value member to id table by where id=id whats the code i write i tried search in google but nothing found i need help please
I'm using a winforms radvirtualgrid to display pages of data.
I allow the user to apply search strings and filters.
When data needs refreshing, I first run code to perform a total count of records on the database, then similar to pull a page of 100 records..
If I have several pages of data, zoom to the last page, then the correct number of pages is told to me in the paging panel.
If I then cause a search that retrieves less data then my code range checks the grid.pageindex against grid.totalpages and adjusts the page inded downwards.
But I've found that if Im viewing the final page of data, and a new search returns no data, then my range check fails and the pageindex is not changed in the display on the paging panel. i.e line 8 of the following code snip does nothing. I've also tried setting pageindex to zero (fails in the code), and turning paging on and off on the grid in the hope it refreshes.
I'm guessing it's something to do with there being no data. Is this a bug please, or can I do anything to reset the value to zero?
01.
Tables =
new
dsUser.MemberSelectionDataTable[TotalFilteredMembers / Grid.PageSize + 1];
02.
Grid.ColumnCount = _columnNames.Count;
03.
Grid.RowCount = totalFilteredMembers;
04.
05.
if
(Grid.PageIndex >= Grid.TotalPages)
06.
Grid.MasterViewInfo.MoveToLastPage();
07.
08.
if
(totalFilteredMembers == 0)
09.
{
10.
Grid.MasterViewInfo.MoveToFirstPage();
11.
}
Hi,
I'm working on a project that utilizes a few RichTextEditor . When I initially start the application and have a window open with 3 RichTextEditor memory usage is 62mb.
This is fine, but when I open a window that has another RichTextEditor in it memory jumps from 62mb to 132mb (this window has two textboxes and a RichTextEditor). When closing this window memory drops only 10mb so memory is at 121mb.
If I open and close the window 5 times in a row memory usage stays at 205mb. In my application this window will be opened frequently. I have tried explicitly disposing the RichTextEditor, but doesn't seem that GC is picking it up at least not quickly (I left the application running for about an hr and it didn't drop much about 5mb).
I understand themes are loaded as static resources so once a window loads it shouldn't have to load theme resources again?
Note this is an MDI window that is docked on the RadDock. Any direction you may have would be greatly appreciated.
Thanks,
Jacob
I have a picturebox1 and radtextbox1 radbutton1
I show pictures in picturebox1 from file
I need to click radbutton1 to add image from picturebox1 ,and text from radtextbox1 above it and resize image to 8.27 inches width , 11.69 height stretch
I could add the item but the big images appear so big
I used this code in radbutton1 click event :
Image image = pictureBox1.Image;
RadButtonElement item = new RadButtonElement();
item.Image = image;
item.Text = radtextbox1.Text;
radCarousel1.Items.Add(item);
How do I disable context menus "EditHeader" and "EditFooter", so that they don't show up?
How do I remove (rather than disable) context menu item "Hyperlink..."?
I want to create a new RadDocument and serialize it to byte array. And I want to set default font to something else than "Verdana". Let's use "Comic Sans MS" size 24 for instance. What should I do between "new RadDocument()" and "RtfFormatProvider.Export" (also "XamlFormatProvider.Export") so that word "Verdana" is not found in serialized byte array?
Also, when I want to deserialize this byte array into RadDocument are there some extra steps I should do to prevent Verdana from somehow creeping back in (unless the user explicitly changes some text to Verdana)?