Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
194 views
Rad Controls for Ajax Q1

When using a asp.net checkboxlist control inside of a rad panel bar the text for the checkboxlist items does not appear when using some skins. Please see below example in which skin 'Hay' causes the item text not to appear. Changing the skin to web20 solves the issue but i need to use 'Hay'! Any help will be greatly appreciated

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%

@ Register Src="ProductDetails.ascx" TagName="ProductDetails" TagPrefix="uc1" %>

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<

html xmlns="http://www.w3.org/1999/xhtml">

<

head runat="server">

 

</

head>

<

body>

<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server" />

<div>

</div>

<telerik:RadPanelBar runat="server" ID="RadPanelBar1" Skin="Hay" Height="300px">

<Items>

<telerik:RadPanelItem Expanded="True" Text="ASP.NET controls">

<ItemTemplate>

<asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatColumns="2"

RepeatDirection="Horizontal" Width="92px">

<asp:ListItem>Monday</asp:ListItem>

<asp:ListItem>Tuesday</asp:ListItem>

<asp:ListItem>Wednesday</asp:ListItem>

<asp:ListItem>Thursday</asp:ListItem>

<asp:ListItem>Friday</asp:ListItem>

<asp:ListItem></asp:ListItem>

</asp:CheckBoxList>

</ItemTemplate>

</telerik:RadPanelItem>

<telerik:RadPanelItem Text="WinForms controls">

<Items>

<telerik:RadPanelItem Text="RadMenustrip">

</telerik:RadPanelItem>

<telerik:RadPanelItem Text="RadTabStrip">

</telerik:RadPanelItem>

<telerik:RadPanelItem Text="RadToolStrip">

</telerik:RadPanelItem>

</Items>

</telerik:RadPanelItem>

<telerik:RadPanelItem Text="Other projects">

<Items>

<telerik:RadPanelItem Text="SiteFinity">

</telerik:RadPanelItem>

<telerik:RadPanelItem Text="Reporting">

</telerik:RadPanelItem>

<telerik:RadPanelItem Text="RadAjax">

</telerik:RadPanelItem>

</Items>

</telerik:RadPanelItem>

</Items>

</telerik:RadPanelBar>

</form>

</

body>

</

html>

Dean Killam
Top achievements
Rank 1
 answered on 12 Aug 2008
2 answers
104 views
I have installed 2008 Q2 ASP.NET AJAX. In my toolbox I am referencing a location that is not the default install location. In design mode all the controls look fine with the styles, images and skins displayed. In runtime however I lose the styles, images and skins and I get a javascript error: 'sys; is undefined

Can anyone point me in the right direction here? Is it an install issue, where I point my javascript or image location? In the old version I created a virtual directory for the RadControls folder but in this version I thought everything was embedded.

Thanks
Henry Derstine
Top achievements
Rank 1
 answered on 12 Aug 2008
1 answer
111 views
Hello.

I have a RadGrid with an edit item template. In this template, I put a user control. In this user control i have a RadComboBox.
When i click on edit in my RadGrid, the selected value of the RadComboBox is always the first.

Here, the page_load of the user control :
protected void Page_Load(object sender, EventArgs e) 
        { 
            if (RCBFrequencesUserControl.Items.Count == 0) 
            { 
                RCBFrequencesUserControl.DataSource = Params.GetFrequence(webUtility.getConnectedUser()); 
 
                RCBFrequencesUserControl.DataTextField = "libelle"; 
                RCBFrequencesUserControl.DataValueField = "idfrequence"; 
                RCBFrequencesUserControl.DataBind(); 
                RCBFrequences.SelectedValue = "134"; 
                 
            } 
        } 

The selected value is 134, but on the radgrid edit item template, the selected value is always the first.

I have try  it on a simple page, it works.

Thanks.

Princy
Top achievements
Rank 2
 answered on 12 Aug 2008
0 answers
100 views

I have two ContentPlaceHolders on my page. first Have a TreeView on it and Second have a DataList on it.

I Populate my TreeView on Demand (and Expand property of each node has been set to ServerSideCallBack)

Now i want if user clicks on any of the Leaf node (In my case it's at Level 4) the Data List on Second Content Place Holder Should be Refreshed (only on the click of Leaf node.)

I can't set the TreeView's AutoPostBack Property to TRUE Because i  dont want any postbacks when user expand the Nodes or click the nodes.

Any Suggesions

Rishi
Top achievements
Rank 1
 asked on 12 Aug 2008
3 answers
469 views
Hi,

I'm trying to open a RadWindow Server-Side. I'm using RadAjax.
I succeed in opening the RadWindow Once but then It never opens again.
I need to do it server-side because I have to do some code before the Window opens. How can I achieve this ?

Default.aspx :

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
<!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>Page sans titre</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div>
  <telerik:RadWindowManager ID="RadWindowManager1" runat="server" />
  <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
      <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
   <asp:Label ID="Label1" runat="server" />  
  </telerik:RadAjaxPanel>
    </div>
    </form>
</body>
</html>

Default.ascx.cs :

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Telerik.Web.UI;

public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
  CreateRadWindow();
    }
 protected void Button1_Click(object sender, EventArgs e)
 {
  Label1.Text = DateTime.Now.ToString();
 }
 private void CreateRadWindow()
 {
  RadWindow RadWindow1 = new RadWindow();
  RadWindow1.ID = "RadWindow1";
  RadWindow1.Behaviors = WindowBehaviors.Close | WindowBehaviors.Maximize | WindowBehaviors.Move | WindowBehaviors.Resize;
  RadWindow1.Title = "Title";
  RadWindow1.NavigateUrl = "http://www.google.com/";
  RadWindow1.Skin = "Vista";
  RadWindow1.OpenerElementID = Button1.ClientID;
  RadWindow1.ReloadOnShow = true;
  RadWindow1.Height = new Unit(480, UnitType.Pixel);
  RadWindow1.Width = new Unit(640, UnitType.Pixel);
  RadWindow1.Modal = true;
  RadWindow1.DestroyOnClose = true;
  RadWindowManager1.Windows.Add(RadWindow1);
 }
}

Glen
Top achievements
Rank 1
 answered on 12 Aug 2008
1 answer
284 views
I need to provide a solution where my users can choose from letter templates and have them filled with database information, and then edit them, save them, or print them if they need to.  I would like to provide a library of letter templates to my users in rtf or whatever format they need to be in in order to accomplish my goal, with the following added features:

1. I need all the letters to print and save with 1" margins

2. I need to be able to insert an image at the top of the letters.  It can be restricted to a  certain size, but ideally the image would go in to the background and the text would be printed over it.  

3. Ineed to be able to save the letters locally as rtf, or doc, or pdf files.

4. I need to be able to print them right from the browser editing window.

The majority of these letters will not need to be edited, but I must provide my users the option to edit them if they want to.  Essentially, I am trying to provide an online tool for producing a set of business letters.  

Will RadEditor accomplish this?  If so, can someone explain how exactly?  i have been using devexpress's controls for some time, but it looks like their editor cannot accomplish what I need.  I have also been looking at richercontrols' textbox, but I cannot get straight information on the margins issue.  
Rumen
Telerik team
 answered on 12 Aug 2008
1 answer
140 views
I need to work only in htmlmode by default and I want to be able to insert "html code snippets" into the html mode and actually see the code. 

I would like to know if its possible to enable the toolbar in html mode?
Rumen
Telerik team
 answered on 12 Aug 2008
2 answers
114 views
Hi

When adding a RadWindow to a page in aspx where can set the ReloadOnShow property to True to force it to reload. However for the RadEditor we add the dialog definitions in the code behind as follows:



Dim dlgEditRule As New DialogDefinition("Dialogs/dlgEditRule.ascx", New DialogParameters()) 



With dlgEditRule

.Modal =

True

.VisibleTitlebar =

True

.VisibleStatusbar =

False

.Title =

"<font size=""2""><b>Edit Rules</b></font>"

.Width = Unit.Pixel(576)

.Height = Unit.Pixel(500)

End With


.AddDialogDefinition(

"TP_EditRule", dlgEditRule)






In the code behind we don't have the option to set the ReloadOnShow property, is there a way to do this?

Thanks
David

Rumen
Telerik team
 answered on 12 Aug 2008
1 answer
132 views
Hi,

I was trying to use a custom skin for my RadMenu Ajax control.
Initially i was having problems. But i got it working when i did

<

link href="/Menu.test.css" rel="stylesheet" type="text/css" />

in the master page.

is there any other way that the control can refer the correct skin based on the Skin value specified in the control.

Regards

Sujith

Paul
Telerik team
 answered on 12 Aug 2008
2 answers
164 views
Hi,

I am trying to change the backcolor and forecolor on mouseover and mouseout events. But it throws javascript error for LinkElement.
I had done the same for RadMenu for ASP.Net and its working fine. But this is not working for AJAX Menu.

The error shown is Item.LinkElement is null or not an object

Note:- Why am not using css for this is coz i will be knowing the colors only at runtime.

<script language="javascript" type="text/javascript">
    var oldItemForeColor = "";
    var oldItemBGColor = "";
         
    function clientMouseOver(sender, eventArgs) 
    { 
        var linkElement = eventArgs.Item.LinkElement; 
         
        oldItemForeColor = linkElement.style.color;
        oldItemBGColor = linkElement.style.backgroundColor; 
         
        linkElement.style.color = "<%= MenuBackColor%>";
        linkElement.style.backgroundColor = "<%= MenuForeColor%>";
    } 
     
    function clientMouseOut(sender, eventArgs) 
    {  
        var linkElement = eventArgs.Item.LinkElement; 
         
        linkElement.style.color = oldItemForeColor;
        linkElement.style.backgroundColor = oldItemBGColor;
    }
</script>

Please help.

Thanks & Regards

Sujith

VS
Top achievements
Rank 1
 answered on 12 Aug 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?