Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 views
Hello.

With version 2008.3.1125.20 of Telerik.Web.UI, when setting AutoPostBack to true and referencing either CalendarView.ViewStartDate or CalendarView.ViewEndDate in a page's Init event handler, the Calendar does not go to the next or previous view.

<asp:ScriptManager ID="ctlScriptManager" runat="server" />
<telerik:RadCalendar ID="ctlCalendar" runat="server" AutoPostBack="true" />

Private Sub Page_Init(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Init
    Dim d As Date = ctlCalendar.CalendarView.ViewStartDate
    Dim d1 As Date = ctlCalendar.CalendarView.ViewEndDate
End Sub

Is there a way to get the current calendar view's start and end date without it malfunctioning in this version?

Cheers.
Maria Ilieva
Telerik team
 answered on 14 Jul 2010
3 answers
101 views
Hello,
I want to avail the functionality to load on demand on the dropdown arrow click and just able to select the entire list item text because list item value is the id that is to be stored in database. AFter going through the documentation i realised that load on demand doesnt allow to select the entire list item text. So is there a trick or tip regarding how to avail this functionality as i dont want to display the text other than what is listed in dropdown. If there is trick that will allow to search on demand than that will be great but i am content if the first part of requirement is achieved.

Inshort
1) Populate combo box on load on demand
2) Allow entire combo box item to be selected. That way i can get id from selected value
3) When in edit mode prefill the combo box will the item that was saved to database.

Any help is greatly appreciated.
mac
Simon
Telerik team
 answered on 14 Jul 2010
6 answers
397 views
Hi Telerik Team

I had difficulty to detect a tag in nested html. e.g.  My current html tag is below

<href="http://google.com" title="test" name="test "><img alt="" src="/dbimg/70/14/NoSP1.gif" /></a

I am trying to popup my custom dialog box and load the existing values from the current "a" tag. somehow, when I use getSelectedElement() or selection.getParentElement(), the return result of tagName is always "IMG", can someone tell me how to achieve this?

Dobromir
Telerik team
 answered on 14 Jul 2010
1 answer
142 views
Is there a way to set the displaymask client side when the value of a RadMaskedTextBox is changed?

Thanks,
Chris
Maria Ilieva
Telerik team
 answered on 14 Jul 2010
3 answers
93 views
I am getting a blue line below Rad Editor in Firefox, I checked the code using firebug but unable to track down from where that line is coming. The editor looked ok in IE. Please check the attached image for the blue line at the bottom of the editor.
Thanks
Rumen
Telerik team
 answered on 14 Jul 2010
4 answers
253 views
Hi All,
I am using load on demand in radcombobox.
The problem is when i type first letter in the combobx then the event is not firing. and when i type second letter then the event fires.
and also when i click on the radcombobx then some time the event fires and some time it is not firing.
what could be the problem>
I am posting the code:

<telerik:RadComboBox ID="cmbFromPortfolio" EnableVirtualScrolling="true" EnableLoadOnDemand="True" ShowMoreResultsBox="false" OnClientSelectedIndexChanged="SamePortfolio" OnClientBlur="FromOperationalDisable" runat="server" EmptyMessage="Please Select" AutoPostBack="true" Height="200px" Width="92%" Enabled="false">  
 </telerik:RadComboBox> 
and the event handler is
cmbFromPortfolio.ItemsRequested += new RadComboBoxItemsRequestedEventHandler(cmbFromPortfolio_ItemsRequested);  
 
// And the Event Handler code is   
 
private void cmbFromPortfolio_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)  
{  
try 
{  
//Code to fill the combobox   
}  
catch(Exception ex)  
{  
//Exception Handling code here  
}  
}  
 

Let me know where is the problem.
Thanks in advance.

Simon
Telerik team
 answered on 14 Jul 2010
1 answer
118 views
I have the following page: radlistview with radslider
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head id="Head1" runat="server">
  
</head>
<body class="BODY">
    <form runat="server" id="mainForm" >
  
      
        <asp:ScriptManager runat="server" ID="ScriptManager1" EnablePartialRendering="true"
 />
    
         
            <telerik:RadListView runat="server" ID="RadListView1" DataSourceID="XmlDAtasource2"
                AllowPaging="True"  PageSize="4"
                >
                <LayoutTemplate>
                    <div id="list">
                       <table><tr><td>  <fieldset runat="server" id="itemPlaceholder" /></td>
                       <td
                             
                   
                  <telerik:RadSlider runat="server" ID="RadSlider1" 
                         Orientation="Vertical" MaximumValue="4" Width="150px" CausesValidation="false"  OnValueChanged="RadSlider1_ValueChanged"  AutoPostBack="true"  />
                         </td></tr></table>
                        
                    </div>
                </LayoutTemplate>
                <ItemTemplate>
                    <fieldset style="float: left; margin: 5px 5px 5px 5px; padding: 2px 2px 2px 2px;
                        background: #eeeeee" class="myClass" >
                        <img id="Img1" src='<%# Xpath("src") %>' width="90" height="120" alt="" runat="server"/>
                       
                    </fieldset>
                </ItemTemplate>
            </telerik:RadListView>       
    
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadSlider1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="RadAjaxLoadingPanel1" />
                 </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadListView1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
  
                    
  <asp:XmlDataSource ID="XmlDAtasource2" runat="server" XPath="books/book" DataFile="~/generated_files/bitems.xml"/>
          
  
        
  
    </form>
</body>
</html>


and the code behind is :
Imports System
  
Imports Telerik.Web.UI
Partial Class Default2
    Inherits System.Web.UI.Page
  
    Protected Sub RadSlider1_ValueChanged(ByVal sender As Object, ByVal e As EventArgs)
          
        RadListView1.Rebind()
    End Sub
  
  
    
End Class


When i run the page i get the following javascript error :

Line: 492
Error: 'Sys.WebForms.PageRequestManager' is null or not an object


And then when i try to press on the slider buttons or slide it i got a javascript error:

Line: 950
Error: Object expected


What am i missing?

I tried to run the demos you have on my pc i received the same javascriot error :  Error: 'Sys.WebForms.PageRequestManager' is null or not an object
Tsvetie
Telerik team
 answered on 14 Jul 2010
1 answer
115 views

 

 

I am using the RadUpload (Upload) to upload images to a Database, as I select the images the file name is return in <%#DataBinder.Eval(Container.DataItem, "FileName")%> and since I am uploading multiple images, I thought it would be a good I idea to display them before summitting them. my problem is I am not picking up the filename in RadBinaryImage.

 

 

 

<

 

 

asp:Repeater ID="repeaterResults" runat="server" Visible="False">

 

 

 

<HeaderTemplate>

 

 

 

<div class="title">Uploaded files in the target folder:</div>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" ImageUrl='<%# Eval("FileName"))%>'

 

 

 

AutoAdjustImageControlSize="false" Height="56px" />

 

 

 

 

</ItemTemplate>

 

 

 

<ItemTemplate>

 

<%

 

#DataBinder.Eval(Container.DataItem, "FileName")%>

 

<%

 

#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>

 

 

 

<br />

 

 

 

</ItemTemplate>

 

 

 

</asp:Repeater>

 

Veli
Telerik team
 answered on 14 Jul 2010
1 answer
131 views

I am new to telerik controls and I just used Dock control on an asp.net 4.0 web page.

If I view the page when my browser is maximized then everything works fine.

But if I resize the browser then dock controls layout gets damage badly.

I am setting the width of dock zone and dock in percentage.

I have also attached the two screen shots with this, one with maximized browser and second after I resized the browser.

I have tried different things but still not able to find one full Prof Solution for this.

Pero
Telerik team
 answered on 14 Jul 2010
1 answer
100 views
Is it possible to have pop up be not modal? There are issues with the telerik modal settings and the css in the master page. It would be a lot easier if the pop up could not be modal and just be a standard pop up window.
Rumen
Telerik team
 answered on 14 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?