Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
94 views
Hi,

May i know if styling like putting image to appointment background is achievable for version 2008 Q1?


Regards.
ekc ekc
Top achievements
Rank 1
 answered on 21 Apr 2010
4 answers
292 views
Hi Guys,

Is there anyway to display radcalendar similar with calendar format in microsoft outlook. if yes, how we can achieve that. Please advise. thank you
Mark de Torres
Top achievements
Rank 1
 answered on 21 Apr 2010
2 answers
304 views
I'm confused about default loading image RadAjaxLoadingPanel uses.

If you look at the demo http://demos.telerik.com/aspnet-ajax/ajax/examples/loadingpanel/loadingimages/defaultcs.aspx, it displays a default loading image without specifying any image inside the RadAjaxLoadingPanel. If you look at my codes below, no image is displayed. What did I miss?  

<%@ Page Language="C#" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<script runat="server"
 
    protected void button1_Click(object sender, EventArgs e) 
    { 
        label1.Text = DateTime.Now.ToString(); 
    } 
</script> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"
        <div> 
            <telerik:RadScriptManager ID="scriptmanager" runat="server"
            </telerik:RadScriptManager> 
            <telerik:RadAjaxLoadingPanel ID="loadingpanel" runat="server" > 
                
            </telerik:RadAjaxLoadingPanel> 
            <telerik:RadAjaxPanel ID="ajaxpanel" runat="server" LoadingPanelID="loadingpanel"
                <asp:Button ID="button1" runat="server" Text="click me" OnClick="button1_Click" /> 
                <asp:Label ID="label1" runat="server" /> 
            </telerik:RadAjaxPanel> 
        </div> 
    </form> 
</body> 
</html> 
 


Chen Jun Ying
Top achievements
Rank 1
 answered on 21 Apr 2010
3 answers
154 views
I got a weird problem with filexplorer. After uploading files with a long filename the files are stored without a problem on the server (filename is correct) but when you try to view those files with fileexplorer the filenames are truncated at the second occuring blank in the filename. The full length of the path and filename is approx. 140 characters.

e.g.
Z:\Websites\xxxxxxx.xxxxxxxx.xx\html\clients\xxxxx\an xxxxxxxx\Regalbeschriftungen\Regalb Buch RGM 7430+7431+7432.doc
works without a problem

Z:\Websites\xxxxxxx.xxxxxxxx.xx\html\clients\xxxxx\an xxxxxxxx\Regalbeschriftungen\Regalbeschriftung Buch RGM 7430+7431+7432.doc
shows as "Regalbeschriftung Buch"

any ideas ?
Harry
Top achievements
Rank 1
 answered on 20 Apr 2010
2 answers
113 views
Hi , maybe this explanation will be better.

I am using RadAjaxManager for the purpose of callback...
I have one WebForm1.aspx page, inside that there is two WebUserControl (WebUserControl1.ascx, WebUserControl2.ascx).
Also, in WebForm1.aspx page I have three buttons (btnCallBack) which does the callbacks. The Button1 will perform a callback only to update the WebUserControl1.ascx. The Button2 will perform a callback only to update the WebUserControl2.ascx. Finally, The Button0 will perform a callback to update both of the WebUserControl.
 
Both WebUserControl have nothing in it, only a System.Threading.Thread.Sleep() call in their respective Page_Load.
WebUserControl1.ascx is having a Thread.Sleep(2000) and  WebUserControl2.ascx is having a Thread.Sleep(8000).

Now when i click Button0, I can see two AjaxLoadingPanel over each WebUserControl. Since each WebUserControl have a different sleep time, I would expect that the AjaxLoadingPanel of WebUserControl1 disapear before the AjaxLoadingPanel of WebUserControl2. Therefore, both AjaxLoadingPanel disapear at the same time. 

Now when i click Button1, and then click immediatly  Button2, AjaxLoadingPanel will appear for WebUserControl1 but not for WebUserControl2. The AjaxLoadingPanel for WebUserControl2 will appears only after the AjaxLoadingPanel for WebUserControl1  dissappear. Why?

I have attached a exemple of my RadAjaxManager. Is there any client-side code or server-side code to achieve what I would expect.
Thanks,




chofra03
Top achievements
Rank 1
 answered on 20 Apr 2010
5 answers
374 views

Dear Telerik Team,

I'm new to the RadTabStrip and I'm trying to use it by the on demand approach.

I did follow some of the example in your web site and I'm using UserControl to display deferent content.

 

How I can load and show the first UserControl for the first time the page appears. Because my current situation is I have to click one tab first in order to load the related UserControl.


Thanks.

Code Behind File:
    Dim IsNewPageView As Boolean = False
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Me.Page.IsPostBack Then
            ViewState("sequence") = 0
        End If
    End Sub

    Protected Sub RadTabStrip1_TabClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTabStripEventArgs) Handles RadTabStrip1.TabClick
        e.Tab.PageViewID = AddPageView(e.Tab.Text)
        e.Tab.PageView.Selected = True
    End Sub

    Private Function AddPageView(ByVal PageViewID As String) As String
        Dim PageView As RadPageView = New RadPageView
        PageView.ID = PageViewID
        IsNewPageView = True
        Me.RadMultiPage1.PageViews.Add(PageView)
        Me.RadMultiPage1.SelectedIndex = Me.RadMultiPage1.PageViews.Count - 1
        Return PageViewID
    End Function

 

    Protected Sub RadMultiPage1_PageViewCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMultiPageEventArgs) Handles RadMultiPage1.PageViewCreated
        Dim Sequence As Integer = 0
        If IsNewPageView Then
            Sequence = Convert.ToInt32(ViewState("sequence")) + 1
            ViewState("sequence") = Convert.ToString(Sequence)
        Else
            Sequence = e.PageView.MultiPage.PageViews.Count
        End If

        Select Case e.PageView.ID.Trim.ToUpper
            Case "Permanent".ToUpper
                Dim userControlName As String = "Permnent.ascx"
                Dim userControl As Control = Page.LoadControl(userControlName)
                userControl.ID = e.PageView.ID & "_Permnent"
                e.PageView.Controls.Add(userControl)
            Case "Standby".ToUpper
                Dim userControlName As String = "Standby.ascx"
                Dim userControl As Control = Page.LoadControl(userControlName)
                userControl.ID = e.PageView.ID & "_Standby"
                e.PageView.Controls.Add(userControl)
        End Select
    End Sub

ASPX File (Java Script:)
<script type="text/javascript">
    function onTabSelecting(sender, args)
    {
        if (args.get_tab().get_pageView())
        {
            if (args.get_tab().get_pageView().get_id())
            {
                args.get_tab().set_postBack(false);
            }
        }
    }             
</script>

Andrew Gale
Top achievements
Rank 1
 answered on 20 Apr 2010
2 answers
131 views

Has anyone been able to get the Editor working well in MVC-2? Was it worth the effort?

I have a fairly complex applicational use for the editor, involving Rich Text, Images, Multimedia content, etc., but the Web site is written on MVC-2.
 
This would be a new customer for Telerik. I just need to show them that it wouldn't be any worse than using CKEditor, and can be a better solution.
Fred Chateau
Top achievements
Rank 1
 answered on 20 Apr 2010
2 answers
144 views
Greetings,

XHTML Strict does not allow the "target" attribute inside of an anchor. Instead, I have used rel="external" combined with some javascript when trying to open links in a new window. I would like to modify the default link manager to do this. So, instead of being able to select a "target" in the link manager, I would like to choose a value for "rel".

I was able to successfully customize the link manager by route of the ExternalDialogsPath property in the radEditor so that the drop down menu values are correct. However, I am unable to figure out how to override the callback function when the anchor is pasted back into the editor. When inserting an anchor into the radEditor, I would like to change the default of "target":
var myCallbackFunction = function(sender, args) {  
      editor.pasteHtml(String.format("<a href={0} target='{1}' class='{2}'>{3}</a> ", args.href, args.target, args.className, args.name)); 
      //---------------------------------------------^ 
 
to "rel":
var myCallbackFunction = function(sender, args) {  
      editor.pasteHtml(String.format("<a href={0} rel='{1}' class='{2}'>{3}</a> ", args.href, args.target, args.className, args.name)); 
      //-------------------------------------------^ 

I am sure I am overlooking something simple but cannot find a solution online.

Thank you in advance for any help.
Darren
Darren
Top achievements
Rank 1
 answered on 20 Apr 2010
2 answers
316 views

Consider the following definition for a column of a RadGrid:

 

<

 

 

telerik:GridDateTimeColumn DataField="p.AmendEffDate" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}" HeaderStyle-Width="100px" FooterStyle-Width="100px" ItemStyle-Width="100px" HeaderText="Amend Date" SortExpression="p.AmendEffDate" UniqueName="AmendEffDate" PickerType="DatePicker" ></telerik:GridDateTimeColumn>

 

 



It works wonderfully except that when in edit mode, the editing cell size overlaps other cells. Like the cell wants to be larger but since it is only 100px, it just overlaps the neighboring cell. There is no EditStyle-Width property or anything. I'm pretty sure it is doing this because the cell wants to include the Time in the data. However, in this case, there is no time data. How do I resolve this issue? I need the cell to be 100px. No larger.
Matt Campbell
Top achievements
Rank 1
 answered on 20 Apr 2010
6 answers
279 views
Hello
I'm using for first time RadGrid with ObjectDataSource. I have read docs and seen samples but nothing that can help my issue. While SelectMethod is fired, UpdateMethod  is never fired. Also Updating event of ObjectDataSource and UpdateCommand of RagGrid are not fired. Simply it does not works. The same behaviour for InsertMethod.

Does anyone can suggest me a solution?
This is the code I used:

<asp:ObjectDataSource ID="objDataSourceGridSAL" runat="server" TypeName="xxx.ElencoTipologieInformazioni.Lavori_SAL_Controller"
                                        DataObjectTypeName="xxx.ElencoTipologieInformazioni.Lavori_SAL_Info"
                                        SelectMethod="FB_GetLavoriSAL" UpdateMethod="FB_UpdateLavoriSAL" OldValuesParameterFormatString="original_{0}">
                                        <SelectParameters>
                                            <asp:Parameter Name="pintCodOpera" Type="Int32" />
                                            <asp:Parameter Name="pintCodLavoro" Type="Int32" />
                                        </SelectParameters>
                                        <UpdateParameters>
                                            <asp:Parameter Name="CodOpera" Type="Int32" />
                                            <asp:Parameter Name="CodLavoro" Type="Int32" />
                                            <asp:Parameter Name="Codice" Type="Int32" />
                                            <asp:Parameter Name="Percentuale" Type="Int32" />
                                            <asp:Parameter Name="DataRilevamento" Type="DateTime" />
                                            <asp:Parameter Name="Note" Type="String"  />
                                            <asp:Parameter Name="NoteTestoSemplice" Type="String" />
                                        </UpdateParameters>
                                    </asp:ObjectDataSource>
                                    <telerik:RadGrid runat="server" ID="RadGridSchedaLavori_SAL" DataSourceID="objDataSourceGridSAL"
                                        ShowFooter="True" AllowPaging="True" AllowFilteringByColumn="True"
                                        AutoGenerateColumns="False" AutoGenerateEditColumn="false" Skin="Office2007"
                                        GridLines="None" ShowGroupPanel="true" >
                                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                        <MasterTableView  DataSourceID="objDataSourceGridSAL" TableLayout="Fixed" ShowGroupFooter="true" GroupsDefaultExpanded="true"
                                            AllowSorting="true" CommandItemDisplay="Bottom" OverrideDataSourceControlSorting="true"
                                            DataKeyNames="CodOpera,CodLavoro,Codice" PageSize="3" AllowAutomaticUpdates="true">
                                            <NoRecordsTemplate>Nessun record presente!</NoRecordsTemplate>
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="CodOpera" Visible="false" DataType="System.Int32"
                                                    UniqueName="CodOpera" ReadOnly="true">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="CodLavoro" Visible="false" DataType="System.Int32"
                                                    UniqueName="CodLavoro" ReadOnly="true">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Codice" Visible="false" DataType="System.Int32"
                                                    UniqueName="Codice" ReadOnly="true">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Percentuale" Visible="true" DataType="System.Int32" HeaderText="Percentuale"
                                                    UniqueName="Percentuale" ReadOnly="true">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridDateTimeColumn DataField="DataRilevamento" HeaderStyle-Width="40" HeaderText="Data Rilevamento"
                                                     DataType="System.DateTime" UniqueName="DataRilevamento" DataFormatString="{0:dd/MM/yyyy}">
                                                </telerik:GridDateTimeColumn>
                                                 <telerik:GridBoundColumn DataField="Note" Visible="true" DataType="System.String" HeaderText="Note"
                                                    UniqueName="Note" ReadOnly="false">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="NoteTestoSemplice" Visible="true" DataType="System.String" HeaderText="Note testo semlice"
                                                    UniqueName="NoteTestoSemplice" ReadOnly="false">
                                                </telerik:GridBoundColumn>
                                                
                                                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" />
                                            </Columns>
                                            <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                Font-Underline="False" HorizontalAlign="Left" VerticalAlign="Middle" Wrap="True" />
                                            <PagerStyle />
                                        </MasterTableView>
                                        <ClientSettings>
                                            <Selecting AllowRowSelect="true" />
                                        </ClientSettings>
                                        <GroupingSettings ShowUnGroupButton="false" CaseSensitive="false" />
                                        <SortingSettings EnableSkinSortStyles="true" />
                                    </telerik:RadGrid>
 
Thank you
Avinash Thakur
Top achievements
Rank 1
 answered on 20 Apr 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?