This is a migrated thread and some comments may be shown as answers.

Skins with RadInputManager

3 Answers 99 Views
Input
This is a migrated thread and some comments may be shown as answers.
Eliyahu Goldin
Top achievements
Rank 1
Eliyahu Goldin asked on 27 Nov 2008, 09:30 PM
I have many text boxes in edit form templates in several GridViews. I would like to take advantage of the RadInputManager control. On other hand, I want the text boxes to be styled with one of the telerik built-in skins. The whole advantage of RadInputManager is when I use asp:TextBox controls instead of RadTextBox ones. But I asp:TextBox doesn't get styled with telerik built-in skins.

Is there a way how i can take advantage of the RadInputManager without losing buil-in skins?

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 01 Dec 2008, 10:45 AM
Hi Eliyahu,

Thank you for contacting us and for your question.
You can still use a skin, to style the textboxes.
This is demonstrated in the code snippet below:

.aspx
 <asp:TextBox runat="server" ID="TextBox1">  
            </asp:TextBox> 
              
            <telerik:RadInputManager runat="server" ID="RadInputManager1" 
            
Skin="Office2007">  
            <telerik:NumericTextBoxSetting> 
            <TargetControls> 
            <telerik:TargetInput ControlID="TextBox1" /> 
            </TargetControls> 
            </telerik:NumericTextBoxSetting> 
            </telerik:RadInputManager> 

Give this suggestion a try and let me know how it goes and if any other questions arise.

Regards,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Eliyahu Goldin
Top achievements
Rank 1
answered on 01 Dec 2008, 02:36 PM
No, it didn't help.

Never mind, RadTextBoxes work well so far. I skin them in my theme.
0
ADH
Top achievements
Rank 1
answered on 07 Jan 2009, 04:54 PM
I'm having the same issue, but no grids involved. Instead, I've got a whole-page loading panel which delays the input manager and the textboxes associated with it from loading so that a pretty graphic can display while the rest of the page loads in the background. Here's some sample code, very simplified from what we're actually using:

<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Test.aspx.cs" Inherits="Testing.Test" %> 
 
<%@ 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 id="Head1" runat="server"
   <title>Untitled Page</title> 
</head> 
<body> 
   <form id="form1" runat="server"
      <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
      </telerik:RadScriptManager> 
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest" 
         UpdatePanelsRenderMode="Inline" RequestQueueSize="2"
         <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
               <UpdatedControls> 
                  <telerik:AjaxUpdatedControl ControlID="LoadingPanel" /> 
               </UpdatedControls> 
            </telerik:AjaxSetting> 
         </AjaxSettings> 
      </telerik:RadAjaxManager> 
      <asp:Panel ID="LoadingPanel" runat="server" Height="565px"
         <asp:Panel ID="LoadedPanel" runat="server" Visible="false"
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br /> 
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br /> 
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox><br /> 
            <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox><br /> 
            <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox><br /> 
            <telerik:RadInputManager ID="RadInputManager1" runat="server" Skin="Black"
               <telerik:TextBoxSetting> 
                  <TargetControls> 
                     <telerik:TargetInput ControlID="TextBox1" /> 
                     <telerik:TargetInput ControlID="TextBox2" /> 
                     <telerik:TargetInput ControlID="TextBox3" /> 
                     <telerik:TargetInput ControlID="TextBox4" /> 
                     <telerik:TargetInput ControlID="TextBox5" /> 
                  </TargetControls> 
               </telerik:TextBoxSetting> 
            </telerik:RadInputManager> 
         </asp:Panel> 
      </asp:Panel> 
      <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"
 
         <script language="javascript" type="text/javascript"
            <!-- 
               var strAjaxManager="<%=RadAjaxManager.GetCurrent(Page).ClientID %>"
               setTimeout(function() {$find(strAjaxManager).ajaxRequest("InitialPageLoad");},1000); 
            //--> 
         </script> 
 
      </telerik:RadScriptBlock> 
   </form> 
</body> 
</html> 
 

And the code-behind:
using System; 
using System.Data; 
using System.Configuration; 
using System.Collections; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Web.UI.HtmlControls; 
using Telerik.Web.UI; 
 
namespace Testing 
   public partial class Test : System.Web.UI.Page 
   { 
      protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e) 
      { 
         if (e.Argument == "InitialPageLoad"
         { 
            LoadedPanel.Visible = true
         } 
      } 
   } 
 

Tags
Input
Asked by
Eliyahu Goldin
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Eliyahu Goldin
Top achievements
Rank 1
ADH
Top achievements
Rank 1
Share this question
or