Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
We are rendering the sliders dynamically in datalist as follow:

<asp:DataList ID="dlIndicator" runat="server" CellPadding="0" CellSpacing="4" RepeatColumns="3" RepeatDirection="Horizontal"> 
            <ItemTemplate> 
                <table cellpadding="0" cellspacing="2" border="0"> 
                    <tr><td>&nbsp;</td><td><%#Eval("Name")%></td><td>&nbsp;</td></tr> 
                    <tr> 
                        <td valign="top"> 
                            <asp:CheckBox ID="chkIndicator" runat="server" /><asp:HiddenField ID="hdnIndicatorDomain" 
                                runat="server" Value='<%#Eval("IndicatorID")%>' /><asp:HiddenField ID="hdnIndicatorValue" runat="server"  Value='<%#Eval("Value_")%>'/> 
                        </td> 
                        <td> 
                            <telerik:RadSlider ID="rslIndicator" runat="server" MinimumValue="0" MaximumValue="100" 
                                Value="50" OnClientValueChange="HandleValueChange" OnClientLoaded="HandleValueChange" 
                                Skin="Vista" SmallChange="5" Width="100px" /> 
                        </td> 
                        <td> 
                            <asp:Label ID="lblIndicator" runat="server"></asp:Label>% 
                        </td> 
                    </tr> 
                </table> 
            </ItemTemplate> 
        </asp:DataList> 

<script type="text/javascript" defer="defer"> 
                function HandleValueChange(sender, eventArgs) 
                { 
                    var spnid = sender.get_id().replace("rslIndicator","lblIndicator") 
                    document.getElementById(spnid).innerHTML = sender.get_value(); 
                } 
    </script> 
 


The issue is.. the sliders working fine in IE7.. but not in IE8.
In IE8, when we drag handle in one slider, it automatically drags handles on other sliders.

We are using telerik version : 2008.03.1314.35
Tsvetie
Telerik team
 answered on 07 Oct 2009
4 answers
89 views
Hi Telerik!
I have a page with a multiview.  The views are loaded using Ajax.  The editor is located in the second view.  In Firefox, when I click on "View 2", I am unable to type in the editor 50% of the time.  None of the buttons and dropdowns work either.  The editor will stop working completely if I switch between "View 1" and "View 2" a couple of times.

Below is the code sample that can reproduce the problem.  I am using Firefox 3.0.11 and version 2009.1.527.35 of Telerik.Web.UI.dll.

 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="telerik.aspx.cs" Inherits="OFF_LIMIT.telerik" %>  
<%@ Register TagPrefix="telerik" 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></title>  
</head>  
<body>  
  <form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server" />  
      
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
    <ContentTemplate>  
      <p>  
        <asp:LinkButton ID="button1" runat="server" Text="View 1" /> >  
        <asp:LinkButton ID="button2" runat="server" Text="View 2" />  
      </p>  
        
      <asp:MultiView ID="multiview" runat="server" ActiveViewIndex="0">  
        <asp:View ID="view1" runat="server">  
          view 1  
        </asp:View>  
        <asp:View ID="view2" runat="server">  
          <telerik:RadEditor ID="m_editor" runat="server" />  
        </asp:View>  
      </asp:MultiView>  
    </ContentTemplate>  
  </asp:UpdatePanel>  
  </form>  
</body>  
</html>  
 
<script runat="server">  
  protected override void OnInit(EventArgs e)  
  {  
    base.OnInit(e);  
    button1.Command += new CommandEventHandler(OnCommand);  
    button2.Command += new CommandEventHandler(OnCommand);  
  }  
 
  void OnCommand(object sender, CommandEventArgs e)  
  {  
    LinkButton button = sender as LinkButton;  
 
    if (button.ID == button1.ID)  
      multiview.ActiveViewIndex = 0;  
    else if (button.ID == button2.ID)  
      multiview.ActiveViewIndex = 1;  
  }  
</script> 
Rumen
Telerik team
 answered on 07 Oct 2009
1 answer
103 views
Hello,

When entering a ";" character in the basic "contains" filter for a text column causes an "IndexOutOfRange" exception.
Below is the stack trace:

System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

We have been able to duplicate this issue on the RadGrid demo.
Is there a work around? Or, some way to remove this character from a user's filtering.

Thanks,
Jon
Shinu
Top achievements
Rank 2
 answered on 07 Oct 2009
1 answer
197 views
We are getting this warning in the Event Viewer on a Production application (a server without a Telerik installation).

The server was unable to add the virtual root '/telerik/RadControlsQ2_2007_NET2' for the directory 'C:\Program Files\Telerik\RadControls for ASP.NET Q2 2007\NET2' due to the following error: The system cannot find the path specified.


The application has crashed a few times and an IIS reset brings the application back up.  Any ideas on how to remove this warning without an installation of Telerik on the server?
T. Tsonev
Telerik team
 answered on 07 Oct 2009
1 answer
154 views
I have a column in my grid that every cell contains a textbox.
I add an event for these textboxes that every time I press Enter key, then next text box focused (jQuery). I set a break point  in my script and everything was OK. But when I press enter key filtering button is pressed. How can I turn it off?
Princy
Top achievements
Rank 2
 answered on 07 Oct 2009
1 answer
180 views
Does the listbox support client-side databinding?  I would like to create a list of items from the server-side and populate the listbox in the callback function of a page method call.  Is this possible?  I could not find anything in the documentation or demos for doing something like this.

David
Vesko
Top achievements
Rank 2
 answered on 07 Oct 2009
1 answer
427 views
hi,

i want to get the lable inside a panelbar
i have tried the following but the value is null.

var

 

lblEmail = document.getElementById('pnlbarRegn.FindItemByValue("AccountHolderInformation").FindControl("lblEmail").ClientID >');

 


the client code looks like the follwoing

my panel bar name is pnlbarRegn

<

 

telerik:RadPanelItem Enabled="false" Text="Step 3: Account Holder Information" runat="server"

 

 

Font-Underline="false" FocusedCssClass="">

 

 

<Items>

 

 

<telerik:RadPanelItem runat="server" Value="AccountHolderInformation">

 

 

<ItemTemplate>

 

 

<table width="100%" border="0" cellspacing="0" cellpadding="2">

 

 

 

<tr>

 

 

<td align="right">

 

Email

 

</td>

 

 

<td align="left">

 

 

<telerik:RadTextBox ID="txtEmail" runat="server" Skin="" CssClass="text" MaxLength="255"

 

 

AutoPostBack="false" onfocus="Text1_focus()">

 

 

</telerik:RadTextBox><asp:RequiredFieldValidator ID="rfvEmail" runat="server" Display="Dynamic"

 

 

ControlToValidate="txtEmail" ErrorMessage="E-mail is required" Text="E-mail Required" ValidationGroup="accountHolderInfo" />

 

 

<asp:RegularExpressionValidator ID="regEmail" runat="server" ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="Enter Valid Email"

 

 

ValidationGroup="accountHolderInfo" ValidationExpression ="^[\w\.\-]+@[a-zA-Z0-9\-]+(\.[a-zA-Z0-9\-]{1,})*(\.[a-zA-Z]{2,3}){1,2}$"></asp:RegularExpressionValidator>

 

 

<asp:Label ID="lblEmail" runat="server" Visible="false" ForeColor = "Red" ></asp:Label>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

 

</ItemTemplate>

 

 

</telerik:RadPanelItem>

 

could any one help me in this regard?

Thanks,
Bharath
Paul
Telerik team
 answered on 07 Oct 2009
3 answers
197 views
Have a grid whit following column:
<telerik:GridBoundColumn DataField="ArticleCode" UniqueName="ArticleCode" HeaderText="ArtikelID" ReadOnly="true" DataType="System.String"></telerik:GridBoundColumn> 

In this column I insert values tha look like "001", "002" etc

But when I export it to Excel it formats the column to Integer values so it only displays 1,2 etc

How do I make the Excel sheet accept the value as a string and not an Integer?

protected void ButtonExportToExcel_Click(object sender, EventArgs e)  
{  
   RadGridMembers.ExportSettings.ExportOnlyData = false;  
   RadGridMembers.ExportSettings.IgnorePaging = true;  
   RadGridMembers.ExportSettings.OpenInNewWindow = true;  
 
   RadGridMembers.Page.Response.ClearHeaders();  
   RadGridMembers.Page.Response.Cache.SetCacheability(HttpCacheability.Private);  
 
   RadGridMembers.MasterTableView.ExportToExcel();  
} 
Daniel
Telerik team
 answered on 07 Oct 2009
1 answer
112 views
I've a web form. In this I have TimeTicker in update panel.. if i scroll   down it. the scroll position is not same. It's at the begining of the page. My requirement is I want to set the scroll position to the same position where it was before.

Princy
Top achievements
Rank 2
 answered on 07 Oct 2009
1 answer
101 views
 Hi , 
 In CreatUserWizard . when we want using a asp control  
 using this metod:

string Firstname = ((TextBox)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("txtfirstname")).Text.ToString();
 
 but if in form using a radcontrol got a control casting error  , 
 
 what Can i Do ?
 

 

Princy
Top achievements
Rank 2
 answered on 07 Oct 2009
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?