| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadInputManagerTest._Default" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <link id="DefaultCSS" runat="server" href="~/style/default.css" type="text/css" rel="stylesheet" /> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadInputManager ID="RadInputManager1" runat="server"> |
| <telerik:TextBoxSetting EmptyMessageCssClass="emptyMessage" BehaviorID="behavior1" EmptyMessage="test"> |
| <TargetControls> |
| <telerik:TargetInput ControlID="TextBox1" /> |
| </TargetControls> |
| </telerik:TextBoxSetting> |
| </telerik:RadInputManager> |
| <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> |
| </div> |
| </form> |
| </body> |
| </html> |
| .emptyMessage |
| { |
| border-bottom: solid 2px red; |
| } |
| <input name="TextBox1" type="text" value="test" id="TextBox1" |
| class="RadInputMgr_Default RadInput_Empty_Default emptyMessage" |
| onmouseover="javascript:$radIE.mouseOver(event);" |
| onmouseout="javascript:$radIE.mouseOut(event);" |
| onkeypress="javascript:$radIE.keyPress(event);" |
| onblur="javascript:$radIE.blur(event);" |
| onfocus="javascript:$radIE.focus(event);" /> |

using Telerik.Web.UI
protected void btnSubmit_Click(object sender, EventArgs e)
{
//Spam check for url=
foreach(Control c in this.Controls)
{
if (c is RadTextBox)
{
// Attempting to reset the text value to test, just for testing to see if I am touching the control
(c as Telerik.Web.UI.).Text = "test";
}
}
}
Is this the right way to loop the form for RadTextBox?
I have created a custom css-style for RadDocks. The only thing I cannot style at the moment is the border around the dropzone when RadDoscks are dragged. I used HighlightedCssClass to get a hatch pattern like this:
<style type="text/css">
.DockZoneSelectie {
background-color: #FFC272 !important;
}
.rdPlaceHolder {
background-color: #FFD7A3 !important;
background: url(images/hatch.gif) repeat;
}
</style>
That works fine, however I cannot control the border around the dropzone, this dropzone is 2 pixels too wide so the border will be clipped when DockZones are next too each other. A screendump can be seen here here. I based my custom style on the default RadDock style but there is no style to be found there that sets the border. Also I used radDock.EnableEmbeddedBaseStylesheet = false; radDock.EnableEmbeddedSkins = false; to disable embedded skins. How do I get access to the border style of the highlighted area when docks are dragged?