Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
64 views
hi guys
i wanna add telerik component in all page in one folder not in web config
because when i load it in web config Website speed comes down.

can help me plz?
tnx
Slav
Telerik team
 answered on 03 May 2012
4 answers
691 views
Sounds simple, but, I'm trying to avoid the double border. Meaning, I can easily set the WeekendDayStyle.BorderWidth = 1, BorderColor=Black and BorderStyle = Solid, but, what happens is that all the days in the middle of the calendar control now have double borders because it's putting a border on the cell next to it also.

Is there a way to get a single border around each cell? So, in effect, it would need to know if a cell next to it already has a border?
Daniel
Telerik team
 answered on 03 May 2012
5 answers
528 views

Hello Experts,
I am using Radgrid  - which as Add a new record.

i am using this code to implement Add New Record:
-----------------------------------------

    <CommandItemTemplate > 
      <asp:Button ID="btnInsertRecord" Text="Insert Record"  Runat="server" CommandName="InitInsert"  Height = "25" Width="100" Font-Bold="true" ></asp:Button> 

    </CommandItemTemplate>

-----------------------------------

In the Add mode - The grid columns are  displayed in vertical format(one below the other), can we make it to display in Horizontal format....

If possible please give me sample code...

Thanks

Shinu
Top achievements
Rank 2
 answered on 03 May 2012
4 answers
84 views
I have a RadComboBox that gets the data from a wcf-webservice.

In OnClientItemDataBound i change the text to be able to show multicolumn data and it works fine.
Now I wants to be able to select multiple items and I don“t know how to do that.

My idea is
I've tried to add a checkbox in OnClientItemDataBound  and I get the checkbox in the dropdown.
var item = e.get_item()
item.set_text('<p class="rcbItemKey"><input type="checkbox">' + item.get_value() + '</p><p class="rcbItemData">'+ item.get_text() + '</p>');

In OnClientBlur I'm will loop through all the items in the dropdown and for each item check if the checkbox is selected.  If it is checked I will add the value of the item to SelecteValue as a ;-separated list.

How do I find the checkbox in OnClientBlur?
Any other idea on how to solve it?
Another problem is that if I select 2 items in the dropdown and close the dropdown and the wants to open it again, the values should be selected.  Is it possible to solve?
Ivana
Telerik team
 answered on 03 May 2012
6 answers
304 views
I'm wondering if there is something I can do to make the line chart go a lot faster.  I have a couple thousand points I want to plot and use the code below.  It takes almost 15 seconds to make the graph.  When I cut the number of points to plot to 200, it takes less than a second.  Here is the code I'm using

ChartSeries chartSeries = new ChartSeries("Altitude", ChartSeriesType.Line);

chartSeries.Appearance.ShowLabels =

false;

incrementCount = 1;

for (int i = 0; i < listData.Count; i = i + incrementCount)

{

chartSeries.AddItem(

new ChartSeriesItem(listData[i].x, listData[i].y));

}

RadChart2.AddChartSeries(chartSeries);

RadChart2.ChartTitle.TextBlock.Text = title;

RadChart2.PlotArea.XAxis.AxisLabel.TextBlock.Text =

"Distance (Miles)";

RadChart2.PlotArea.XAxis.AxisLabel.Visible =

true;

RadChart2.PlotArea.XAxis.IsZeroBased =

true;

RadChart2.PlotArea.YAxis.AxisLabel.TextBlock.Text = yAxisLabel;

RadChart2.PlotArea.YAxis.AxisLabel.Visible =

true;

RadChart2.PlotArea.YAxis.IsZeroBased =

false;

Ves
Telerik team
 answered on 03 May 2012
0 answers
87 views
hi

That is an security problem "Enabled = false"

It is still possible to use Firebug, or another tool, to tamper with the submitted value, and to remove the "disabled" HTML attribute to change the value. Any suggestion to solve this? This can be easly be hack the data by changing the value.

From louisth
Tan
Top achievements
Rank 1
 asked on 03 May 2012
9 answers
464 views

Here is my situation, I have a UserControl that has a simple Image, Label and a RadToolTipManager that gets the tooltip info via a WebService for both the Image and the Label. This UserControl is used on a RadGrid that goes inside an asp:UpdatePanel on a page Default.aspx. Inside the UpdatePanel I also have a RadTreeView that updates the content of the Grid on the onNodeClick event and the Default.aspx implements a MasterPage that has the asp:ScriptManager.

Great, so the on the Load of the Default.aspx page I load the TreeView and force the onNodeClick of the RootNode so the Grid is populated too. Until this point all works fine, the control displays the information fine and the RadToolTipManager shows the tooltip info from the WebService also fine.

 

The problem comes when I click on a different Node from the TreeView to and I reload the Grid contents causing the error:

ā€œCannot unregister UpdatePanel with ID 'RadToolTipManager1RTMPanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.

Parameter name: updatePanelā€

 

This error occur on the Grid.DataBind() line on the Default.aspx page.

 I have a simple solution that replicates the problem but can't upload the files here, so will put some snippets below...

I already tried to use ScriptManagerProxy on both the Default.apsx and the Control.ascx, also tried to use the RadAjaxPanel instead of the UpdatePanel or using RadAjaxManager and RadAjaxManagerProxy and follow both (the only ones I could find) treads Compatibility with .NET 3.5 UpdatePanel? and RadAjaxManager initialized too late in the page life cycle but nothing changed.

My last try was to Register the RadToolTipManager programmatically on the control by getting the ScriptManager Instance but if I do that I get the error on the first page load instead.

 

Well, I am quite stuck with this situation now, and because of business requirements the ToolTip on this particular page is really important for the App. Anyone has any ideas on how to fix this?

Site.Master:

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="AjaxRadTooltipError.Site" %> 
<!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">  
    <title></title>  
    <asp:ContentPlaceHolder ID="head" runat="server">  
    </asp:ContentPlaceHolder> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" ScriptMode="Release">  
            <Services></Services>  
            <Scripts></Scripts>      
        </asp:ScriptManager> 
        <div> 
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">  
              
            </asp:ContentPlaceHolder> 
        </div> 
    </form> 
</body> 
</html> 

Default.aspx:

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AjaxRadTooltipError.Default" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register src="Control.ascx" tagname="Control" tagprefix="uc1" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">  
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">  
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
        <ContentTemplate> 
            <telerik:RadTreeView ID="RadTreeView1" runat="server" OnNodeClick="RadTreeView1_NodeClick">  
            </telerik:RadTreeView> 
            <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false">  
                <MasterTableView> 
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px" /> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px" /> 
                    </ExpandCollapseColumn> 
                    <Columns> 
                        <telerik:GridTemplateColumn AllowFiltering="false" Resizable="true" HeaderText="Name" UniqueName="ItemName" ItemStyle-Width="300px">  
                            <ItemTemplate> 
                                <uc1:Control ID="Control1" runat="server" /> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                    </Columns> 
                </MasterTableView> 
            </telerik:RadGrid> 
        </ContentTemplate> 
    </asp:UpdatePanel> 
</asp:Content> 

Default.aspx.cs:

protected void Page_Load(object sender, EventArgs e) {  
    if (!IsPostBack)  
        LoadTreeView();  
}  
 
protected void LoadTreeView() {  
    RadTreeNode Node = new RadTreeNode();  
    Node.Text = "Root Node";  
    Node.Value = "0";  
 
    for (int count = 1; count <= 10; count++) {  
        RadTreeNode SubNode = new RadTreeNode();  
        SubNode.Text = "Node " + count.ToString();  
        SubNode.Value = count.ToString();  
        Node.Nodes.Add(SubNode);  
    }  
    RadTreeView1_NodeClick(thisnew RadTreeNodeEventArgs(Node));  
    RadTreeView1.Nodes.Add(Node);  
}  
protected void RadTreeView1_NodeClick(object sender, RadTreeNodeEventArgs e) {  
    List<string> myDummyList = new List<string>();  
    for (int count = 0; count <= 2 + Convert.ToInt32(e.Node.Value); count++) {  
        myDummyList.Add(count.ToString());  
    }  
 
    RadGrid1.DataSource = myDummyList;  
    RadGrid1.DataBind(); // Error happens here!  

Control.ascx:

 

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Control.ascx.cs" Inherits="AjaxRadTooltipError.Control" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:Panel ID="Panel1" runat="server">  
    <asp:Image ID="Image1" runat="server" ImageUrl="~/ObjectItem_Page.gif" /> 
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> 
</asp:Panel> 
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server">  
    <WebServiceSettings Path="~/Service_GetInfo.asmx" Method="GetResourceToolTip" /> 
    <TargetControls> 
        <telerik:ToolTipTargetControl TargetControlID="Image1" /> 
        <telerik:ToolTipTargetControl TargetControlID="Label1" /> 
    </TargetControls> 
</telerik:RadToolTipManager> 


Cheers,
Claiton Lovato

 

 

 

Svetlina Anati
Telerik team
 answered on 03 May 2012
1 answer
124 views

I setup a basic masterpage and added a RadFormDecorator with decoratedcontrols="all".  I then create a new webform from the masterpage and run the web project but labels are not styled.  Other web controls are styled.

What am I missing? here is the simple master page:

You can notice the label within (<div id="header"> ) is not styled.

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title>Untitled Document</title>
  <style type="text/css">
    html, body
    {
      height: 100%;
    }
      
    #container
    {
      min-height: 100%;
      margin-bottom: -20px;
      position: relative;
    }
      
    #footer
    {
      height: 20px;
      position: relative;
    }
      
    .clearfooter
    {
      height: 20px;
      clear: both;
    }
  </style>
</head>
<body leftmargin="0" topmargin="0">
  <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All"
    Skin="Office2010Black" />
  <div id="container">
    <form runat="server" id="frmMasterPage">
    <telerik:RadScriptManager ID="rsmMasterPage" runat="server">
    </telerik:RadScriptManager>
    <div id="header"><asp:Label runat="server" ID="lblHeader" Text="This is the header"></asp:Label></div>
    <div id="nav">
      <telerik:RadMenu ID="RadMenu1" runat="server">
        <Items>
          <telerik:RadMenuItem runat="server" Text="Reporting">
          </telerik:RadMenuItem>
          <telerik:RadMenuItem runat="server" Text="Maintenance">
          </telerik:RadMenuItem>
          <telerik:RadMenuItem runat="server" Text="Administration">
          </telerik:RadMenuItem>
        </Items>
      </telerik:RadMenu>
    </div>
    <div id="content"><asp:ContentPlaceHolder ID="cphContent" runat="server"></asp:ContentPlaceHolder></div>
    <div class="clearfooter">
    </div>
    </form>
  </div>
</body>
</html>

Bozhidar
Telerik team
 answered on 03 May 2012
1 answer
62 views
We have a rad upload control which shows the full upload message in IE9 - see the attachment fullbutton.jpg.

When in IE8, or IE9 with comp on, the button looks like what's in attachment halfbutton.jpg. There is no upload text, and all you can see is the paper clip.

I've tried setting EnableFileInputSkinning to both true and false, plus tried css class settings for rubrowse and rubutton and such that I've found on the web, all to no avail. 

The upload control is being used in a user control, and is part of the content of a radwindow.  Here is a code sample - I didn't include the whole page. 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Overlay="true">
    <Windows>
        <telerik:RadWindow ID="RadWindow1" runat="server" Animation="Fade" Behavior="None" VisibleOnPageLoad="false"
            Behaviors="Close" Modal="true"
            Width="490" Height="565" DestroyOnClose="true" VisibleStatusbar="false" KeepInScreenBounds="true" >
            <ContentTemplate>   
 
...
      
                                           <script type="text/javascript">
                                                    try {
                                                        Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function () { return false; }
                                                    } catch (e) { }
                                                </script>
                                                <telerik:RadAsyncUpload ID="fuDocument" runat="server" MaxFileInputsCount="1"
                                                    ReadOnlyFileInputs="true" OnClientFileUploaded="triggerRefresh" OnClientFileUploadRemoving="triggerCancel" MaxFileSize="4194304"
                                                    OnClientFileSelected="triggerSelected" OnClientValidationFailed="fileValidationFailed" Localization-Select="">                                                   
                                                </telerik:RadAsyncUpload>
...
 
      </ContentTemplate>
         </telerik:RadWindow>
         
Can you tell me what could be causing this?
Peter Filipov
Telerik team
 answered on 03 May 2012
3 answers
71 views
I had a radcombobox that set up to filter="Contains", it works fine. but it only search the "text" of those RadComboBoxItem in combobox, is there an easy way to enable it so that it tried to search both "text" and "value" of the RadComboBoxItem in comboxbo? or possible include those in the attributes in RadComboBoxItem?

Thanks.
Dimitar Terziev
Telerik team
 answered on 03 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?