Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
148 views
Hi,
I'd like to be able to catch the onClientItemClicking event and be able to determine what the previously selected item was. Is this possible? Also, if it is, I would like to fire a server side event based on what the previous selected item was.
Basically, what I am trying to do is to do an automatic "save" on whatever it is that they were working on prior to navigating someplace else.
Thanks ... Ed
Ed Staffin
Top achievements
Rank 1
 answered on 14 Nov 2008
2 answers
151 views
Is there any way to disable a grid from the client-side, using JavaScript?

if not, is there a way to force a grid to refresh from the client?
SultanOfSuede
Top achievements
Rank 1
 answered on 14 Nov 2008
1 answer
124 views
hi,

   i am using radWindow popUp.
when i open popup then it show me the previous contents. i want that when the page load then it show me the blank page and
when all the contents have been render then it should show me that contents.

i have tried these properties of radWindow and manage.

DestroyOnClose = true;
ShowContentDuringLoad = false

i am using this version of telerik controls 2008.2.826.20

Thanks.
Serrin
Top achievements
Rank 1
 answered on 14 Nov 2008
2 answers
244 views
Hi!

Is there a way to capture a keypress in RadEditor, without going to the server?

Thanks,
Victor.
Victor
Top achievements
Rank 1
 answered on 14 Nov 2008
6 answers
257 views
Hi Telerik,

When I create the items programatically, and the Panelbar have a OnItemClick event attached, the event is not fired instead the page is doing a PostBack. But when the items are set declarative the event is fired correctly.

Here is the code for the example:
<%@ Page Language="C#" AutoEventWireup="false" CodeFile="ProgramItem.aspx.cs" Inherits="app_Default" %> 
<%@ Register TagPrefix="radspl" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<!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>Página sin título</title> 
</head> 
<body> 
 <form id="form1" runat="server"
   <asps:ScriptManager ID="SC1" runat="server"></asps:ScriptManager> 
   <radspl:RadAjaxManager ID="RadAMang" runat="server" DefaultLoadingPanelID="panel1"
    <AjaxSettings>     
     <radspl:AjaxSetting AjaxControlID="pRath" > 
      <UpdatedControls> 
         <radspl:AjaxUpdatedControl ControlID="ajaxpanel1" /> 
      </UpdatedControls> 
     </radspl:AjaxSetting> 
    </AjaxSettings> 
   </radspl:RadAjaxManager> 
   <radspl:RadAjaxLoadingPanel ID="panel1" runat="server" Transparency="30" BackColor="#E0E0E0" > 
     <asp:Image ID="image2" runat="server" AlternateText="Actualizando Datos..." BorderWidth="0px" ImageUrl="~/RadControls/Ajax/Skins/Default/loading.gif" />      
   </radspl:RadAjaxLoadingPanel>     
                 <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"
                  <tr><td height="100%" width="25%"
                    <radspl:RadPanelBar runat="server" ID="pRath" Height="100%" Width="100%" ExpandMode="FullExpandedItem" EnableViewState="false" PersistStateInCookie="false" OnItemClick="pRath_ItemClick" > 
                    </radspl:RadPanelBar> 
                  </td> 
                  <td height="100%" width="50%" valign="top" style="text-align:center;"
                    <radspl:RadAjaxPanel ID="ajaxpanel1" runat="server" > 
                    <div runat="server" id="DatosRuta" style="width:90%; height:90%; vertical-align:top; margin-left:auto; margin-right:auto;"
                    <input type="hidden" id="IDRuta" name="IDRuta" runat="server" value="000" /> 
                    <table cellpadding="0" cellspacing="0" width="100%" border="1"
                    <tr> 
                     <td width="30%" align="right" >Nombre:</td> 
                     <td width="70%" align="left" style="padding-left:5px;"
                        <input runat="server" id="TextName" type="text" value=""/></td></tr
                    <tr> 
                      <td align="right">Color</td> 
                      <td align="left" style="padding-left:5px;"
                        <radspl:RadColorPicker runat="server" ID="IDColor" ShowIcon="true" ShowEmptyColor="false" SelectedColor="white" > 
                        </radspl:RadColorPicker> 
                        </td></tr
                    </table></div
                    </radspl:RadAjaxPanel> 
                  </td> 
                  <td height="100%" width="25%" valign="top"
                     <input type="button" id="btnNew" class="formBtnText" value=" Salvar " onclick="RouteSave()" /> 
                  </td> 
                  </tr>                  
                  </table> 
    </form> 
</body> 
</html> 
 
 
    
The Code behind 

public partial class app_Default : System.Web.UI.Page 
   #region Web Form Designer generated code 
   override protected void OnInit(EventArgs e) 
   { 
      InitializeComponent(); 
      base.OnInit(e); 
   } 
 
   private void InitializeComponent() 
   { 
      this.Load += new System.EventHandler(this.Page_Load); 
      this.pRath.ItemClick += new RadPanelBarEventHandler(pRath_ItemClick); 
      this.pRath.ItemCreated += new RadPanelBarEventHandler(pRath_ItemCreated);  
   } 
   #endregion 
 
    protected void Page_Load(object sender, EventArgs e) 
    { 
      if (!Page.IsPostBack) 
      { 
       TextName.Value = "BEFORE POSTBACK"
       LoadPanels();   
      } 
      else 
      { TextName.Value = "AFTER POSTBACK"; } 
    } 
 
   public void pRath_ItemClick(object sender, RadPanelBarEventArgs e) 
   { 
      TextName.Value = "ON ITEMCLICK"
   } 
 
   private void LoadPanels() 
   { 
      RadPanelItem pItem = new RadPanelItem("Root 1");       
      RadPanelItem pItem2 = new RadPanelItem("Panel Item 1"); 
      pItem2.NavigateUrl = string.Empty; 
      pItem.Items.Add(pItem2); 
      pItem.NavigateUrl=""
       
      pRath.Items.Clear(); 
      pRath.Items.Add(pItem); 
      pRath.Items[0].Expanded = true;      
   } 
 
 
   void pRath_ItemCreated(object sender, RadPanelBarEventArgs e) 
   { 
      if (e.Item.Level > 0) 
         e.Item.NavigateUrl = String.Empty; 
   }       
  
The same problem occurs If I create the item from a dataset:
      links = (DataView)dsRST.Select(DataSourceSelectArguments.Empty);
      Panel.Items.Clear();
      Panel.DataTextField = "Name";
      Panel.DataFieldID = "ID";
      Panel.DataFieldParentID = "Parent";
      Panel.DataValueField = "Value";      
      Panel.DataSource = links;
      Panel.DataBind();
      Panel.Items[0].Expanded = true;

Thank you for your help.
 
chrisarauzv
Top achievements
Rank 1
 answered on 14 Nov 2008
1 answer
46 views
Hi,

I was testing my work using https and it seems that the radeditor is performing an http get on something causing my website to prompt for allowing secure and nonsecure items. This is only happening on IE6 and not on IE7 and IE8.

When I used a sniffer, I found this file doing an http get
http 200
host: wwww.telerik.com
url:/help/aspnet-ajax/images/copycode.gif
This only happened once in a while.

thanks
Rumen
Telerik team
 answered on 14 Nov 2008
1 answer
113 views
The iframe's html file created by the editor doesn't have a valid DOCTYPE, so it runs the editable content displays in quirks mode, meaning styles can behave differently compared to the real pages.

Is there an easy fix for this?

Thanks

Matt
Rumen
Telerik team
 answered on 14 Nov 2008
9 answers
296 views
The background image for the toolbar is not set to tile across the screen. On wide-format monitors the background image is not long enough and the horizontal alignment appears to be set to "right" instead of "left". This results in a blank area of the left-hand side of the toolbar where the background image is not tiled. Also, the problem appears with very wide HTML tables of data.

I'd like to request that it be set to left aligned by default and to tile horizontally in the next service pack. We're using the Office2007 skin and haven't tested it with other skins.

Thank you,
Terry
Dimo
Telerik team
 answered on 14 Nov 2008
2 answers
240 views
Hi,
I'm curious if this is possible with RadGrid... (Q2 2008 and VB)

Say I have a sortable databound column "Email" that displays:
email@hotmail.com
hithere@gmail.com
yippie@aol.com

On ItemDataBound I change the text in that column to something like:
Hotmail
Gmail
AOL

Now it seems when sorting the column, it sorts as if the original text is there. How do I get RadGrid to sort on the new "ItemDataBound" text?

Please let me know if I need to clarify.
Thanks,
Joe
Joe
Top achievements
Rank 2
 answered on 14 Nov 2008
1 answer
192 views

I'm attempting to make the root menu items on my menu a bit wider.  I managed to find properties in the CSS that widen the menu, but then the background graphic gets messed up.  What happens is that the graphic ends before the end of the menu item area.  I'm just wondering if there is a way to make each menu item just a bit wider without having to define the width of each one.

Below is the original, then modified CSS for the menuitem.  If I could attach an image, I could show the behavior.  Unfortunately the site I'm working on isn't yet public so I can't send a link without going through a fair amount of work.

Original 

.RadMenu_TopMenu .rmLink       
 {     
 color#000;      
 text-decorationnone;      
 fontnormal 12px/18px "segoe ui",arial,sans-serif;      
 height18px;      
 positionrelative;      
 _float:left;      
 border-right1px solid #d1d5e0;      
 border-left0px solid #d1d5e0;      
 }     
 

 My changes

 

.RadMenu_TopMenu .rmLink   
{  
color#000;   
text-decorationnone;   
fontnormal 12px/18px "segoe ui",arial,sans-serif;   
height18px;   
positionrelative;   
_float:left;   
border-right1px solid #d1d5e0;   
border-left0px solid #d1d5e0;   
padding-right5px;   
padding-left5px;   

 

Peter
Telerik team
 answered on 14 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?