Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
299 views
I want users to be able to type a telephone number into a masked text box.  This could be a mobile or a landline, so the format can be slightly different.  How can I set the mask so that only numbers 0-9 can be entered as well as a space  but the format isnt really important

ie 

020 123 456
07968 111 333
Daniel
Telerik team
 answered on 27 Nov 2008
10 answers
213 views
I'm experiencing a problem with the latest version of RadGrid that I haven't come across before.   I'm using 2008.3.1105.35 RadGrid with SQL Server 2005.  I bind it to a stored procedure using SQLDataSource on the ASPX page (nothing in code-behind).  Whenever I try to filter something, unless I type it exactly as it appears in the grid, I get no results back.

For example, I have column called first name.  In it is sample data such as 'Alex', 'Alexander', and 'Al'.  If I try to filter for 'alex', I get nothing.  If I filter for 'Alex', I get the Alexes back.  Any ideas??

Thank you,
Alex Tushinsky
Sebastian
Telerik team
 answered on 27 Nov 2008
1 answer
180 views
How do i get only a vertical scrollbar in the a radgrid where paging is disabled?
The problem is when i set

ClientSettings-Scrolling-AllowScroll

="true"

 


i get both the scroll bars while i require only the vertical scrollbar and not the horizontal scrollbar
Dimo
Telerik team
 answered on 27 Nov 2008
3 answers
169 views
Hi,

I am trying to use a RadTooltipManager for a scheduler application. I add to the targetcontrols collection programmatically in the appointmentcreated event handler, however when the page runs any default tooltips on the page (i.e. my RadCalendar control) shows the RadTooltip even though the AutoTooltipify property is set.

Example code:

UI:

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="cntrlMainPlaceHolder" Runat="Server">  
        <asp:UpdatePanel ID="cntrlTest" UpdateMode="Conditional">  
            <ContentTemplate> 
                <telerik:RadCalendar ID="cntrlDiaryCalendar" AutoPostBack="true" EnableMultiSelect="false" Width="100%" runat="server" /> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
 
        <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">  
            <ContentTemplate> 
                <telerik:RadScheduler runat="server" ID="RadScheduler1" Width="750px" Skin="WebBlue" 
                    EnableEmbeddedSkins="True" TimeZoneOffset="03:00:00" SelectedDate="2008-09-11" 
                    DayStartTime="08:00:00" DayEndTime="18:00:00" 
                    DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" 
                    DisplayDeleteConfirmation="false">  
                <TimelineView UserSelectable="false" />   
                <AppointmentTemplate> 
                    XX  
                </AppointmentTemplate>                     
                </telerik:RadScheduler> 
                <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="300" Height="150" 
                    Skin="WebBlue" Animation="None" Position="BottomRight" Sticky="true" Text="Loading..." AutoTooltipify="false" 
                 > 
                    <TargetControls> 
                        <telerik:ToolTipTargetControl TargetControlID="xx" IsClientID="true" /> 
                    </TargetControls> 
                 </telerik:RadToolTipManager> 
                   <asp:Timer ID="tmrTest" Interval="1" Enabled="true" runat="server" /> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
 
 
</asp:Content> 

Code:

Partial Class Test  
    Inherits System.Web.UI.Page  
 
    Protected Sub RadToolTipManager1_AjaxUpdate(ByVal sender As ObjectByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate  
 
    End Sub 
 
    Protected Sub RadScheduler1_AppointmentCreated(ByVal sender As ObjectByVal e As Telerik.Web.UI.AppointmentCreatedEventArgs) Handles RadScheduler1.AppointmentCreated  
        RadToolTipManager1.TargetControls.Add(e.Appointment.ClientID, True)  
    End Sub 
 
    Protected Sub tmrTest_Tick(ByVal sender As ObjectByVal e As System.EventArgs) Handles tmrTest.Tick  
        tmrTest.Enabled = False 
        getdata()  
    End Sub 
 
    Private Sub getdata()  
        Dim oItems As New List(Of Appointment)  
        oItems.Add(New Appointment(1, "testing"Date.Now))  
        RadScheduler1.DataSource = oItems  
        RadScheduler1.DataBind()  
    End Sub 
End Class 
 
Public Class Appointment  
    Private _id As Integer = 0  
    Private _Subject As String = String.Empty  
    Private _Start As DateTime = Date.Now  
 
    Public ReadOnly Property Id() As Integer 
        Get 
            Return _id  
        End Get 
    End Property 
 
    Public ReadOnly Property Subject() As String 
        Get 
            Return _Subject  
        End Get 
    End Property 
 
    Public ReadOnly Property Start() As DateTime  
        Get 
            Return _Start  
        End Get 
    End Property 
 
    Public ReadOnly Property [End]() As DateTime  
        Get 
            Return Start.AddHours(1)  
        End Get 
    End Property 
 
    Public Sub New(ByVal Id As IntegerByVal Subject As StringByVal Start As DateTime)  
        _id = Id  
        _Subject = Subject  
        _Start = Start  
    End Sub 
 
End Class 

Regards
Svetlina Anati
Telerik team
 answered on 27 Nov 2008
5 answers
143 views
Hi,

I have a AjaxMan on a page but i have ajaxifing a treeview to the tabstrip with multipage but i have a upload control in the which i have tried the condition postback in JS with the ajax manager on request start but to no luck it still just does a part postback

Help

James
Maria Ilieva
Telerik team
 answered on 27 Nov 2008
1 answer
403 views
Hello,
    When using a radgrid in edit mode, clicking the insert button causes the page to validate. Is there a way to turn this off? I have a multi-tab configuration page, and I need to be able to add items to the radgrid using the built in "add new item" functionality, without forcing the rest of the pages to be valid when the item is inserted. I have tried defining a custom edit form setting causesvalidation="false" on the insert button, but that does not work.

<radG:RadGrid ID="rgCampaignTypes"  Skin="MTCDefault_Small_EditInPlace" EnableAJAX="false" EnableAJAXLoadingTemplate="false" runat="server"   
AllowAutomaticDeletes="True" AllowAutomaticInserts="True" Width="100%" PageSize="20" AllowMultiRowSelection="false"   
AllowAutomaticUpdates="True" AllowPaging="True" AutoGenerateColumns="False" ShowStatusBar="False" AllowMultiRowEdit="False">  
<PagerStyle Mode="NextPrevAndNumeric"  /> 
<ClientSettings> 
   <Resizing allowColumnResize="true" />                                              
</ClientSettings> 
<MasterTableView Height="150px" NoMasterRecordsText="No Campaign Types have been defined."   
Width="100%" CommandItemDisplay="Top" HorizontalAlign="NotSet" AutoGenerateColumns="False">                                                     <CommandItemSettings AddNewRecordText="Add New Campaign Type" /> 
<Columns> 
   <radG:GridButtonColumn UniqueName="DeleteColumn" ButtonType="ImageButton" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="45px" HeaderText="Delete" CommandName="Delete" ImageUrl="~/RadControls/Grid/Skins/MTCDefault/Delete-account-16.gif">  
   </radG:GridButtonColumn> 
   <radG:GridEditCommandColumn EditImageUrl="~/RadControls/Grid/Skins/MTCDefault/edit-16.gif" UniqueName="EditCommandColumn" ButtonType="ImageButton"  HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="45px" HeaderText="Edit">  
   </radG:GridEditCommandColumn> 
   <radG:GridBoundColumn UniqueName="CampaignTypeName" DataField="TypeName" HeaderText="Campaign Type"></radG:GridBoundColumn>                                                       <radG:GridBoundColumn UniqueName="CampaignTypeID" DataField="CampaignTypeID" Visible="False" ReadOnly="True">  
   </radG:GridBoundColumn> 
</Columns> 
<EditFormSettings EditFormType="Template">  
<FormTableItemStyle width="100%"></FormTableItemStyle> 
<FormTableStyle GridLines="None" CellSpacing="0" CellPadding="2"></FormTableStyle> 
<FormStyle Width="100%" backColor="white"></FormStyle> 
<EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
<FormTemplate> 
    <asp:Table runat="Server">  
        <asp:TableRow> 
            <asp:TableCell> 
                <asp:TextBox id="txtCampaignTypeName" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.TypeName" ) %>'></asp:TextBox> 
            </asp:TableCell> 
        </asp:TableRow> 
        <asp:TableRow> 
            <asp:TableCell> 
                <asp:button id="btnInsert" text="Insert" CssClass="button" runat="server" CausesValidation="false" commandname="PerformInsert">  
                </asp:button>&nbsp;  
                <asp:button id="btnCancel" text="Cancel" CssClass="button" runat="server" causesvalidation="False"                                                                            commandname="Cancel"></asp:button>   
            </asp:TableCell> 
        </asp:TableRow> 
    </asp:Table> 
</FormTemplate> 
</EditFormSettings> 
</MasterTableView> 
</radG:RadGrid> 


Any ideas?
Yavor
Telerik team
 answered on 27 Nov 2008
5 answers
249 views
Dear Telerik,

I am using a RadDock with an iframe in the ContentTemplate, the src attribute of the iframe is set in the template. Once the dock is moved, the content of the iframe is set to the original src. That means that when our users are navigating in the iframe, if they move the docks afterward, they lose the page they were in.

This bug does not seem to be present in IE but can easily be reproduced in FF.

Please, don't tell me to use a RadWindow instead.

Regards.
Petio Petkov
Telerik team
 answered on 27 Nov 2008
1 answer
167 views
I would like to change the behavior of my RadTreeView to have a height, so it will have scrollbars, but I want the entire page's scrollbar to work.  I don't know why Telerik's controls tend to disable the browser windows scrollbar by default.  I don't know who would want this behavior by default.
Atanas Korchev
Telerik team
 answered on 27 Nov 2008
1 answer
163 views
Greetings.
 
I have seen alot of documentation about the new property MaxDataBindDepth for the menu controls. In the Telerik.Web.UI.dll file I can find the property but in the latest RadMenu.net2.dll I downloaded from this site lacks this functionality. Is this intended?


Sincerly
Simen Overgaard
Atanas Korchev
Telerik team
 answered on 27 Nov 2008
3 answers
257 views
Could you please post fully commented VB code for FileSystemContentProvider? At least info on what the meaning of variables like location, fullPath, selectedUrl, selectedTag, selectedItemTag and similar are. I see many questions here are about ImageBrowser and other FileBrowser controlls and FileSystemContentProvider is not documented at all. If posting the code in forums is not an option, could you please forward it to my email address?

[EDITED]:
Also, expected results for the following functions are not well explained:
-ResolveDirectory
-ResolveRootDirectoryAsTree
-ResolveRootDirectoryAsList


Regards,
Alex
Lini
Telerik team
 answered on 27 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?