Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
259 views

Hi

I am new to Telerik Scheduler. I am trying to create My Calendar web page by using  my own AdvancedFormTemplate and  use Telerik Scheduler  DataSource for data binding , since I need to handle  my own insert, update and delete.   I need to have  several  custom properties such as Location,  appointment Type and IsSuggestedEvent and recourses such as list of other participation appointments for the same event.   In my AdvancedFormTemplate, I need to allow  user to add  other participators  for an  event, which will create the list of other participation appointments.

Should these custom properties and list of participation appointments are all handled as resource?  Do you have any example using own business objects?

 

Thanks in advance

 

 

Peter
Telerik team
 answered on 16 Jul 2010
2 answers
119 views
Hi,

Is it possible to hide the previous next buttons but keep the calendar date selector?

Cheers
Jon
Jonathan Levy
Top achievements
Rank 1
 answered on 16 Jul 2010
6 answers
139 views
Hello Friends -

I am having two problems with Telerik Rad-Windows, please help me where I am going wrong:-

1. Tile Window Property is not working in correct way. I had used the below script -

<asp:ImageButton ID="ImgBtnTile" runat="server" AlternateText="Tile" OnClientClick="GetRadWindowManager().tile();return false;" ImageUrl="~/images/icons/tile.gif"/>

Above code is placed in Master Page and in Content Page I am having the Rad-Windows, but the windows are not properly tiled.
I guessed it should be working exactly same as Tile Windows Vertically/Horizontally property of Windows OS. Please let me know how I can get the functionality correctly done.

2. I am dragging Rad-Windows from a tree-view and dropping it in a div, what I want to do I need to stop overlapping i.e when I dragged one window say RadWindow1 which is showing me http://www.rediffmail.com and I dragged another window say RadWindow2 which is showing me http://www.google.com and when I dropped the second window in div and placed it over the first window then the first or second window will automatically adjust and two windows won't be overlapped. can I have this functionality working?

Please suggest me a possible way to get the above functionality done!

Thanks
Arindam R

Georgi Tunev
Telerik team
 answered on 16 Jul 2010
1 answer
129 views
I have a page with a RadGrid, and a refresh button that calls a rebind method on the server. The grid gets its data through the needDataSource events.

Thw page gets stuck and slows down if the refresh button is repeatedly clicked, is there a way to cancel the current ajax request and initiate a new one, or disable the button until the current ajax is completed.

Andy
Princy
Top achievements
Rank 2
 answered on 16 Jul 2010
1 answer
133 views
Hi,

I have an application that has a master page, from which I open a radwindow (radwindowmanager on master page) 
with more information. Once the client is happy and save the info, a 2nd radwindow (radwindowmanager on 1st radwindow page) opens in the 1st radwindow to confirm the date. When the client selected the date, the 2nd window pass the selected date back to the the 1st radwindow and close the 2nd window.

This all works wonderfull in Opera, IE8 & Chrome, however in Firefox the radwindows open as it should, but once the date is selected, it does not pass the data back to the 1st radwindow, and it does not close either. Also in FireFox the scrollbar for the 1st radwindow is still active where in the other 3 browsers its disabled as the radwindow is modal.

Code in 1st radwindow:
function GetRadWindow() {
    var oWindow = null;
    if (top.radWindow) oWindow = top.radWindow; //Will work in Moz in all cases, including clasic dialog
    else if (top.frameElement.radWindow) oWindow = top.frameElement.radWindow; //IE (and Moz az well)
    return oWindow;
}
function CloseOnReload() {
    GetRadWindow().Close();
}

aspx in 2nd radwindow:
    <script language="javascript" type="text/javascript">
        //<![CDATA[
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)
            return oWindow;
        }
 
        function CloseOnReload() {
            GetRadWindow().Close();
        }
        //]]>
    </script>
 
<body style="background:#bbdbb4;">
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server" />
        <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="Buttons" />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" />
        <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Forest" />
 
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
            <div style="position:absolute; left:0px; top:0px;">
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr><td colspan="2"><asp:Label ID="InjectScript" runat="server" Text="" /></td></tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Date :" Width="100%"></asp:Label>
                        </td>
                        <td>
                            <telerik:RadCalendar ID="RadCalendar1" Runat="server"
                                CultureInfo="English (South Africa)" EnableMultiSelect="False" SelectedDate="" 
                                ViewSelectorText="x" AutoPostBack="True">
                                <SpecialDays>
                                    <telerik:RadCalendarDay Date="2010-05-25" IsSelectable="False" IsDisabled="true">
                                    </telerik:RadCalendarDay>
                                </SpecialDays>
                            </telerik:RadCalendar>
                        </td>
                    </tr>
                </table>
            </div>
        </telerik:RadAjaxPanel>
 
        <div>
            <table width="100%" cellpadding="0" cellspacing="0" border="0" >
                <tr><td colspan="2"> </td></tr>
                <tr>
                    <td ><asp:Label ID="label2" runat="server" Text="Amount :" Width="100%" /></td>
                    <td><asp:TextBox ID="txtAmount" runat="server" /></td>
                </tr>
                <tr>
                    <td> </td>
                    <td> </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <center>
                            <asp:Button ID="cmdSave" runat="server" Text="Save" />
                            <asp:Button ID="cmdCancel" runat="server" Text="Cancel" />
                        </center>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html

code behind in aspx.vb (2nd radwindow):
Protected Sub cmdSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSave.Click
    Dim javaInjection As String = ""
    javaInjection = "<" + "script language='javascript' type='text/javascript'>"
    javaInjection = javaInjection + "window.parent.form1.txtDate.value='" + Me.RadCalendar1.SelectedDate + "';"
    javaInjection = javaInjection + "window.parent.form1.txtAmount.value='" + Me.txtAmount.Text + "';"
    javaInjection = javaInjection + "CloseOnReload();"
    javaInjection = javaInjection + "window.parent.form1.submit();"
    javaInjection = javaInjection + "</" + "script>"
 
    Me.InjectScript.Text = javaInjection
End Sub
 
Protected Sub cmdCancel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdCancel.Click
    Dim javaInjection As String = ""
    javaInjection = "<" + "script language='javascript' type='text/javascript'>"
    javaInjection = javaInjection + "window.parent.form1.txtDate.value='';"
    javaInjection = javaInjection + "window.parent.form1.txtAmount.value='';"
    javaInjection = javaInjection + "Window.parent.form1.frmTask.value='';"
    javaInjection = javaInjection + "CloseOnReload();"
    javaInjection = javaInjection + "</" + "script>"
 
    InjectScript.Text = javaInjection
End Sub

Thanks
Georgi Tunev
Telerik team
 answered on 16 Jul 2010
3 answers
294 views
Hi,
  I found one issue and really appreciate if you help me to find what is wrong.

  There is RadEditor on the page: <telerik:RadEditor ... />
  Initialization is following:
                radEditor.Tools.Clear();
             EditorToolGroup toolBar = new EditorToolGroup();          
...
                toolBar.Tools.Add(new EditorSeparator());
            EditorTool fontsize = new EditorTool("RealFontSize");
            toolBar.Tools.Add(fontsize);
            toolBar.Tools.Add(new EditorTool("Bold"));
            toolBar.Tools.Add(new EditorTool("Italic"));
            toolBar.Tools.Add(new EditorTool("Underline"));
            toolBar.Tools.Add(new EditorSeparator());
            toolBar.Tools.Add(new EditorTool("ForeColor"));
            toolBar.Tools.Add(new EditorTool("BackColor"));
...
                 radEditor.Tools.Add(toolBar);

  Issue is following: under IE8 (in both modes 8 & 7) when enter some text, select the text, choose some font size, click on Bold button - in font size DDL there is 100%, but must be the font size.
  Note that the same for Italic and Underline buttons. The issue is only under IE browser, e.g. FF works properly.

  I attached two screens: first just how it works w/o click on Bold button, other one when click on the button.

  Could you please take a look and update me how I can fix it and what's the main reason of the issue?

Thanks.
Rumen
Telerik team
 answered on 16 Jul 2010
4 answers
154 views
We have a main project that we have upgraded (from a 2008 version to 2009.1.527.20) and all pages underneath that are working fine. However, we have a sub project underneath the main project that has a number of server controls.

Everything is compiling fine, but when we run the page with the server controls on we are getting this error:

 

Server Error in '/_b8a/v2.4' Application.

Could not load file or assembly 'Telerik.Web.UI, Version=2009.1.527.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

 

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2009.1.527.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


It looks like we have to update the Telerik dll in the sub-project but I have already done this. I have replaced the dll's for this specific project and loaded up the sub-project separately in VS to make sure it's fully updated - it is. How can it be possible that I am still getting this error?

I've also checked other support queries for this problem... and have tried many things, such as uninstalling previous versions from GAC and updating the tags in the webconfig file, but still none of this works. What can I do?

ming soller
Top achievements
Rank 1
 answered on 16 Jul 2010
3 answers
64 views
The problem is that RadPane--rpLeft which contain a usercontrol  is all blank when I make a search.The
strange thing is that  I click the RadSplitBar to collapse this pane and then click the RadSplitBar again to expand.
All content in this Pane is there.I don't know what cause this problem. I gusee it maybe the usercontrol in this pane.
Could someone give me some idea? I will appreciate it.

<
telerik:RadSplitter ID="rspSplitter" runat="server" ResizeWithBrowserWindow="true"
            VisibleDuringInit="false" Width="100%" Height="100%">
            <telerik:RadPane ID="rpLeft" runat="server" Width="20%" Scrolling="None" Collapsed="true">
                <uc4:ajaxoperatorleftpart id="AjaxPart1" runat="server" />
                <iframe id="frameMain" src="../../Default.aspx" scrolling="no" frameborder="0" width="100%"
                    height="220"></iframe>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward"  />
            <telerik:RadPane ID="rpRight" runat="server" Scrolling="None" Width="80%">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td valign="top">
                            <div>
                                <table class="table" border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-top: 2px;
                                    margin-bottom: 2px;">
                                    <tr>
                                        <td>
                                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td align="right">
                                                        KeyWords:
                                                    </td>
                                                    <td style="width: 220px;">
                                                        <telerik:RadTextBox ID="rtxtKeyStr" runat="server" EmptyMessage="" Width="220px">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                    <td style="width: 110px;" align="right">
                                                        IsDirectSolution:
                                                    </td>
                                                    <td>
                                                        <asp:RadioButtonList ID="rblDirectSolutionSimple" runat="server" CellPadding="0"
                                                            CellSpacing="0" RepeatDirection="Horizontal" RepeatLayout="Table">
                                                            <asp:ListItem Selected="True" Value="">All</asp:ListItem>
                                                            <asp:ListItem Value="1">Y</asp:ListItem>
                                                            <asp:ListItem Value="0">N</asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                    <td style="width: 80px;">
                                                          
                                                        <asp:ImageButton ID="ibtnSimpleSearch" runat="server" ImageUrl="~/App_Themes/Default/images/search.gif"
                                                            OnClick="ibtnSimpleSearch_Click" Style="height: 22px" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <telerik:RadGrid ID="RadGrid1" runat="server">
                                    <MasterTableView Name="requestList" Width="100%">
                                        <Columns>
                                            <telerik:GridTemplateColumn HeaderText="request" UniqueName="column" SortExpression="ID">
                                                <ItemTemplate>
                                                    <a href="javascript:void(null);" onclick="openRequestInfo('<%#Eval("ID") %>')">
                                                        <%#Eval("ID") %></a>
                                                </ItemTemplate>
                                                <HeaderStyle Width="80" />
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridBoundColumn HeaderText="Name" UniqueName="column1" DataField="UserAccount">
                                                <HeaderStyle Width="80px" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn HeaderText="Department" UniqueName="column2" DataField="Department">
                                                <HeaderStyle Width="90px" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn HeaderText="Contract" UniqueName="column3" DataField="Telephone">
                                                <HeaderStyle Width="80px" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridTemplateColumn HeaderText="Content" UniqueName="column4">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblContent" runat="server" Text='<%#Eval("Content") %>' ToolTip='<%#Eval("Content") %>'></asp:Label
                                                </ItemTemplate>
                                                <HeaderStyle Wrap="false" />
                                                <ItemStyle Wrap="false" />
                                            </telerik:GridTemplateColumn>
                                        </Columns>
                                        <HeaderStyle Wrap="false" />
                                    </MasterTableView>
                                    <ClientSettings>
                                        <Selecting AllowRowSelect="true" />
                                        <Resizing AllowColumnResize="True" EnableRealTimeResize="true" ClipCellContentOnResize="true" />
                                    </ClientSettings>
                                </telerik:RadGrid>
                            </div>
                        </td>
                    </tr>
                </table>
            </telerik:RadPane>
        </telerik:RadSplitter>
Svetlina Anati
Telerik team
 answered on 16 Jul 2010
3 answers
170 views
HI,

I,m using RadWindow as a poupup to set some values in code behind but i want to close popup after setting these values which is not working.
To close RadWindow popup i,m using the following code
 protected void btnMEOK_OnClick(object sender, EventArgs e)
 {
                      int i = txtMENewPassword.Text.Trim().CompareTo(txtMEConfirmNewPassword.Text.Trim());
                    if (i == 0)
                    {
                        m_Password = txtMENewPassword.Text;
                        lblMESetPassowordError.Text = "";
                        // cloase the window
                        ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CloseAndRebind();", true); // Call client method 
                                                                                                                                                                                  in radwindow page
                    }
                    else
                        lblMESetPassowordError.Text = "New password and confirm new password should be same.";
}

JavaScript Code:

 function CloseAndRebind()
         {
                GetRadWindow().Close();
                //GetRadWindow().BrowserWindow.refreshGrid(null);
            }
           
            function GetRadWindow()
            {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz as well)
                   
                return oWindow;
            }
Which is calling "CloseAndRebind()" function from code behind.

please help!

Regards
Ravi
Georgi Tunev
Telerik team
 answered on 16 Jul 2010
1 answer
66 views
Hi,

I designed radgrid with template columns like raddtpicker,radcombobox inside radpanelbar.

when i deployed the project and started browsing the website in IE8 it works fine ,panel also collapse/expand with elastic animation.

But when i browse the same in IE7 /compatibility View in IE8 the combobox,dtpicker takes few seconds to get invoked(to pulldown).also the panel collapsing finds difficult to collapse(its not smooth).

Please help me out its very urgent to decide purchase of the Ajaxtoolkit.

Thanks

Sathya
Georgi Tunev
Telerik team
 answered on 16 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?