I am using a RadTextBox for a simple messaging form, and if the user leaves a field blank, I use a CustomValidator to set the control IsValid=true. This is great and it uses the invalid style (pink background) and little icon and brings the user's attention to the field.
protected void valMissingFields_ServerValidate(object source, ServerValidateEventArgs args) { txtMessageSubject.Text = txtMessageSubject.Text.Trim(); txtMessageBody.Text = txtMessageBody.Text.Trim(); txtMessageSubject.Invalid = (txtMessageSubject.Text == ""); txtMessageBody.Invalid = (txtMessageBody.Text == ""); args.IsValid = (!txtMessageSubject.Invalid && !txtMessageBody.Invalid); }
I thought the InvalidStyleDuration would make it go away after a few seconds (3000 ms = 3 seconds):
<table cellspacing="0" cellpadding="0" style="width:100%;">
<tr valign="top">
<td style="width:90px;">
Message:
</td>
<td>
<telerik:RadTextBox ID="txtMessageBody" runat="server"
Width="100%" MaxLength="1000" TextMode="MultiLine" Rows="25"
InvalidStyleDuration="3000"
EnableEmbeddedSkins="false" Skin="MyCustomSkin"></telerik:RadTextBox><br />
</td>
<td style="width:20px; text-align:right;">
<span class="required">*</span>
</td>
</tr>
</table>
But it does not.
Instead, the user is stuck typing into the text box with bright red bold lettering.
Am I misunderstanding how this works?
As a workaround, I thought I'd use the OnClientEvents for OnValueChanging to make it switch the Invalid indication off, but apparently that event only fires when focus moves away from the control.
I'm using the RadSpreadsheet component and saving it's content following this instructions here:
Telerik RadControls Access the Spreadsheet workbook on the server - Telerik UI for ASP.NET AJAX
So, my code behind is like this:
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsCallback && Request.Params["__CALLBACKID"] == RadSpreadsheet1.UniqueID)
{
Workbook workbook = Telerik.Web.Spreadsheet.Workbook.FromJson(Request.Params["__CALLBACKPARAM"]);
SaveWorkBook(workbook);
}
}
With this code I'm able to save the spreadsheet just fine. But it's not saving the images I add using the Insert Image button (from telerik component). The images are simply not being passed through.
How can I work around that? Thank you!
Greetings,
I am currently working on an ASP.NET WebForms application, which uses a Telerik RadTreeView.
The treeview uses has the tri state checkboxes active and gets populated server side. We first create a tree of stations (around 2500), which can contain other stations. After that, we populate the tree with datapoints by iterating over all stations and adding the datapoints with the Node.Add() Method.
So the structure is as follows:
Station
- Station 1
- Station 2
- Station 4
- DataPoint
- DataPoint
- Station 5
The checkboxes are used to show if any datapoint is already selected in the treeview and to select additional datapoints for a grouping.
There are multiple groups which can be switched between to see a different selection in the tree.
Therefore, it is necessary to add every datapoint that was already selected (and saved) to show the tri-state checkboxes correctly on page load.
After that a load on demand is possible.
What I tried so far:
Loading the stations and inserting the datapoints (20k objects) after adding the root node to the RadTreeView
Building the station tree is fast, but addings the nodes the the RadTreeView Control takes a long time
So my question is, is there a faster way to load about 20k objects into the tree, so on the change of grouping no new datapoints need to be loaded?
Or am I thinking this very wrong currently? Thank you in advance!
RadWindow is showing a tooltip with its ID in it. See attached image. How can I disable this?
Hi, my grid has many columns and some of them have very long header texts.
I already set <Resizing AllowColumnResize="true" AllowResizeToFit="true" ResizeGridOnColumnResize="true" />
However the header text are still clipped.
I would like to set the long header text to be shown as whole instead of clipped.
Please help! Thanks!