I have a from with a number of RadButton elements each of which contains a square Image.
When the application is maximized I want all of the images to remain square when the elements are resized.
Can I re-adjust the sizes after the RadButton elements are resized?
If not, can I lock the aspect ratio of the Images so that resizing the RadButton elements does not distort them?
I am having an issue with the filter option crashing with radgridview.
To reproduce, create a radgridview as I describe below.
Run the program
Quickly click around in the cells of the table a few times, making sure to drag your mouse a bit so to select a few rows on some of the clicks.
Then quickly click the filter. (sometimes takes a few tries)
I get the following error
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.WinControls.UI.GridRowBehavior.DoMultiFullRowSelect(GridCellElement currentCell, Point currentLocation)
at Telerik.WinControls.UI.GridRowBehavior.DoMouseSelection(GridCellElement currentCell, Point currentLocation)
at Telerik.WinControls.UI.GridRowBehavior.ProcessMouseSelection(Point mousePosition, GridCellElement currentCell)
at Telerik.WinControls.UI.GridRowBehavior.OnMouseMove(MouseEventArgs e)
at Telerik.WinControls.UI.BaseGridBehavior.OnMouseMove(MouseEventArgs e)
at Telerik.WinControls.UI.RadGridView.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Telerik.WinControls.RadControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at BeaconQuerySource.Program.Main(String[] args)
To create the grid do the following.
Make a RadGridView with the following options (not sure if all are important but the filter and multiselect are)
this.gridConnectedSessions.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
this.gridConnectedSessions.MasterTemplate.EnableAlternatingRowColor = true;
this.gridConnectedSessions.MasterTemplate.EnableFiltering = true;
this.gridConnectedSessions.MasterTemplate.MultiSelect = true;
(leave the rest as the default options)
Add 3 columns to the grid
Add 5 rows of data to the grid (I used the following)
radGridView1.Rows.Add("test1","test1","test1");
radGridView1.Rows.Add("test2", "test2", "test2");
radGridView1.Rows.Add("test3", "test3", "test3");
radGridView1.Rows.Add("test4", "test4", "test4");
radGridView1.Rows.Add("test5", "test5", "test5");
Any help would be appreciated, thank you.
This is a question specifically for WinForms but the question is the same as below:
http://www.telerik.com/forums/radgridview-scroll-position-reset-after-rebind
Basically, what object and parameters do I have to access within the RadGridView to get my scroll position, so that I can reset it to that position after a rebind.
Hello Telerik,
I tried to translate the control into german.
How can I prevent the behavior, which is shown in the picture. (Wordwrap and cut off).
Greetings
PS: Yes, we used also font scaling.
Hi,
In my code I'm adding appointments to a radScheduler like this:
Dim app As New Appointment
app = New Appointment(Convert.ToDateTime(dr("StartTime")), Convert.ToDateTime(dr("EndTime")))
app.ToolTipText = "Some text"
How can I set a delay time for the tooltip, i.e. how long the tooltip text is displayed?
Regards,
Pirjo
How do I prevent a ToolTabStrip from being disposed when it has no child panels? I'd like to allow users to redock child panels into a ToolTabStrip even if there are no child panels left.
At the moment I am getting an error "Changing children collection of an already disposed element" when the redocking is attempted.
Thanks,
-Lou
Hello.
After a few tries, I came to a method that dynamically changes shades depending on the amount of characters MaskedEditBox:
public
partial
class
RadForm6 : Telerik.WinControls.UI.RadForm
{
public
RadForm6()
{
InitializeComponent();
this
.radMaskedEditBox1.TextChanged += radMaskedEditBox1_TextChanged;
this
.radMaskedEditBox1.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals;
this
.radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Standard;
this
.radMaskedEditBox1.Mask =
"000,000,000-0099"
;
this
.radMaskedEditBox1.PromptChar =
' '
;
}
string
initialValue =
string
.Empty;
private
void
radMaskedEditBox1_TextChanged(
object
sender, EventArgs e)
{
if
((radMaskedEditBox1.Value +
""
).Length <= 11 &&
this
.radMaskedEditBox1.Mask !=
"000,000,000-0099"
)
{
this
.radMaskedEditBox1.TextChanged -= radMaskedEditBox1_TextChanged;
initialValue =
this
.radMaskedEditBox1.Value +
""
;
this
.radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Standard;
this
.radMaskedEditBox1.Mask =
"000,000,000-0099"
;
this
.radMaskedEditBox1.PromptChar =
' '
;
this
.radMaskedEditBox1.Value = initialValue;
this
.radMaskedEditBox1.TextChanged += radMaskedEditBox1_TextChanged;
}
else
if
((radMaskedEditBox1.Value +
""
).Length >= 12 &&
this
.radMaskedEditBox1.Mask !=
"00,000,000/0000-00"
)
{
this
.radMaskedEditBox1.TextChanged -= radMaskedEditBox1_TextChanged;
initialValue =
this
.radMaskedEditBox1.Value +
""
;
this
.radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Standard;
this
.radMaskedEditBox1.Mask =
"00,000,000/0000-00"
;
//this.radMaskedEditBox1.PromptChar = ' ';
this
.radMaskedEditBox1.Value = initialValue;
this
.radMaskedEditBox1.TextChanged += radMaskedEditBox1_TextChanged;
}
}
}
I hope it helps.
Regards,
Felipe
Is it possible to set the displayed text of an appointment to be right justified? I am using the scheduler control somewhat differently, with only one appointment displayed for each day, and the text of the appointment is simply a number that tells the user the number of openings on that day. Clicking on the appointment displays further details in other controls. For the text, I am setting the Summary property of the appointment (although I could do something different if necessary).
Numbers are typically right justified, and I would like to do this in the displayed text of the appointment.