Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
Hi,



I'm using RadScheduler with TimelineView, i have ExactTimeRendering and it
shows the appointments like it should.

Since i have the slots with 12hours, i want to adjust an extra hour, but when i
resize it always adjust an extra 12hours.

I know this functionality it isn't supported, so if someone has the knowledge i would appreacete some help on this requisite:
. like when resize radgrid columns that shows how many pixels, in radschedule when i resize a task shows the exact date time where i am resizing, forcing the task to be aligned where the mouse is, not to nearest 12h point.
. On update, it does it based on the date where i dragged. (this is the easiest part if the other is made)

Thanks in advance,

JJ

Bozhidar
Telerik team
 answered on 26 Jan 2015
2 answers
48 views
Hello,

     I have placed my controls under AjaxPanel and having AjaxLoadingPanel which as been targeted by this AjaxPanel. Whenever there is an Autopostback event my focus on present control will be lost.

    Please help me  get-back focus to respective control under present scenario.

Regards,
Gautham
LMMC
Top achievements
Rank 1
 answered on 24 Jan 2015
1 answer
49 views
I am using q3 2014 release and i have used a rad editor in it .
when i write a long line in rad editor it automaticlly shows me this line as

"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

beacause i have fixed the size of editor.but when i get its html it gives me the same line as :

"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

i want the html content to be same as shown in the editor but i dont want to make any changes in editor size.

Secondly,
Is there any way to get an image of the content that i am able to see in rad editor content area only???????
Ianko
Telerik team
 answered on 24 Jan 2015
1 answer
89 views
I am using Telerik 2014.2.618 version. I am using Rad Editor on a page with NewLineMode propert set to P.
When the user enters some content and press enter key, a P tag is created. However, when a user enters some content and presses down arrow key, a new P tag is not generated. This is creating invalid html and causing rendering issues for us. 
Ianko
Telerik team
 answered on 24 Jan 2015
9 answers
813 views

Hello,

I face a issue with pagesize change event of RadGrid. This event is called two times when a user clicks on "Change" link.
I have set  AllowPaging="True", AllowCustomPaging="True", PagerStyle-Mode="NextPrevNumericAndAdvanced"  
properties of Radgrid related to paging.

In code I have following events...

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load      
    
If Not Page.IsPostBack Then        
        BindGrid()
    
End If
End Sub 

Private Sub BindGrid()  
    '''' grid binding code here using datasource as datatable
    dt = .....
    If dt.Rows.Count > 0 Then
        rGridSubscriptions.VirtualItemCount = dt.Rows(0).Item("total_rows")
    Else
        rGridSubscriptions.VirtualItemCount = 0
    End If
End Sub

Private Sub
rGridSubscriptions_PageSizeChanged(ByVal source As Object, ByVal e As Telerik.Web.UI.GridPageSizeChangedEventArgs) Handles rGridSubscriptions.PageSizeChanged    
    ViewState(
"maxRows") = e.NewPageSize
    BindGrid()
End Sub

This PageSizeChanged is called twice when "Change" link is clicked and hence Bindgrid is called twice. I am using Telerik's Q2 2008 version.
Please if anyone can solve this issue it would be of greate help.

Thanks in advance
Sups

Pavlina
Telerik team
 answered on 23 Jan 2015
1 answer
143 views
I am attempting to load user controls inside a PlaceHolder using a RadMenu. Ajax manager is updating both the menu and the placeholder. When I click on the menu item nothing happens. Initially, when the page loads the homeview.ascx user control does load, but it is not updated on menuitem click.

 ASPX Page

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                        <AjaxSettings>
                            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="MainNav" />
                                    <telerik:AjaxUpdatedControl ControlID="BodyContent" LoadingPanelID="RadAjaxLoadingPanel1" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                        </AjaxSettings>
                    </telerik:RadAjaxManager>
                <!-- Main Menu -->
                    <div class="menu-wrapper" style="border-top: solid 40px #b1ddab;">
                        <telerik:RadMenu runat="server" ID="MainNav" EnableEmbeddedSkins="false" OnItemClick="MainNav_OnItemClick" CssClass="desktop_nav_menu" >
                            <Items>
                                <telerik:RadMenuItem Text="<%$ Resources:Main, MasterHome %>" />
                                <telerik:RadMenuItem Text="<%$ Resources:Main, MasterTraining %>" />
                                <telerik:RadMenuItem Text="<%$ Resources:Main, MasterSupport %>" />
                            </Items>
                        </telerik:RadMenu>
                    </div>             
                <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>
                <asp:PlaceHolder ID="BodyContent" runat="server">
                      
                </asp:PlaceHolder>


Code Behind

protected void Page_Load(object sender, EventArgs e)
    {
        this.LoadView();
    }
 
private string LoadedControlName
    {
        get
        {
            return (this.ViewState[ViewStateKeys.LoadedControlName] as string) ?? defaultContentControl;
        }
        set
        {
            this.ViewState[ViewStateKeys.LoadedControlName] = value;
        }
    }
 
private void LoadView()
    {
        this.LoadView(this.LoadedControlName);
    }
 
    private void LoadView(string viewName)
    {
        Control control = this.LoadControl(string.Concat(SitePaths.Views, viewName));
        control.ID = viewName;
        this.LoadedControlName = viewName;
        this.BodyContent.Controls.Clear();
        this.BodyContent.Controls.Add(control);
    }
 
    public void MainNav_OnItemClick(object sender, RadMenuEventArgs e)
    {
        RadMenuItem currentItem = e.Item;
        string currentItemText = currentItem.Text;
        string controlPath = string.Empty;
        switch (currentItemText)
        {
            case ("Home"):
                controlPath = DefaultViews.Home;
                break;
            case ("Training"):
                controlPath = DefaultViews.Training;
                break;
            case ("Support"):
                controlPath = DefaultViews.Support;
                break;
            default:
                break;
        }
        if (!String.IsNullOrEmpty(controlPath))
        {
            this.LoadView(controlPath);
        }
    }

View Constants

public class SitePaths
{
    public const string Views = "~/Views/";
}
 
public class ViewStateKeys
{
    public const string LoadedControlName = "LoadedControlName";
}
  
public class DefaultViews
{
    public const string Home = "HomeView.ascx";
    public const string Training = "TrainingView.ascx";
    public const string Support = "SupportView.ascx";
}

Ashley
Top achievements
Rank 1
 answered on 23 Jan 2015
1 answer
151 views
I have a RadGrid with an EditForm containing a RadEditor. The EditForm is shown in a popup and is set to modal.  When I press the 'Toggle Full screen' button, the Editor is 'behind' the modal.  So the area is greyed out and you cannot push any button available in the editor.

Can someone please help me to fix this?

<telerik:RadGrid ID="grdTicketHistory" runat="server" Width="100%" AutoGenerateColumns="false" Skin="Silk" OnNeedDataSource="grdTicketHistory_NeedDataSource" OnItemDataBound="grdTicketHistory_ItemDataBound" OnPreRender="grdTicketHistory_PreRender"
OnUpdateCommand="grdTicketHistory_UpdateCommand" OnDeleteCommand="grdTicketHistory_DeleteCommand" OnInsertCommand="grdTicketHistory_InsertCommand">
                            <MasterTableView AllowSorting="true" Width="100%" EditMode="PopUp" AllowPaging="true" PageSize="10" AllowFilteringByColumn="true" DataKeyNames="TicketLogID"
                                CommandItemDisplay="Top" ShowHeader="false" >
                                <Columns>
                                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" ItemStyle-Width="30px"></telerik:GridEditCommandColumn>
                                    <telerik:GridButtonColumn UniqueName="DeleteCommandColumn" Text="Delete" CommandName="Delete" ButtonType="ImageButton"
                                        ConfirmText="Are you sure you want to delete this record?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" />
                                </Columns>
                                <DetailItemTemplate>
                                    <asp:Table ID="tblDetailItemTemplate" runat="server" Width="100%">
                                        <asp:TableRow>
                                                    <asp:TableRow>
                                                        <asp:TableCell>
                                                            <telerik:RadEditor runat="server" ID="txtLogText" Enabled="false" EditModes="Preview" Height="250px" ></telerik:RadEditor>   
                                                        </asp:TableCell>
                                                    </asp:TableRow>
                                                </asp:Table>
                                            </asp:TableCell>
                                        </asp:TableRow>
                                    </asp:Table>                                       
                                </DetailItemTemplate>
                                <EditFormSettings EditFormType="Template" >
                                    <PopUpSettings Modal="true" Width="1000px" ZIndex="3000" />
                                    <FormTemplate>                                       
                                        <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" style="border-collapse: collapse;">
                                            <tr>
                                                            <td colspan="2">
                                                                <telerik:RadEditor runat="server" ID="txtLogText" TabIndex="10" ToolsFile="~/xml/ToolsFile.xml"  NewLineMode="Br" OnClientLoad="OnClientLoadRadEditor"></telerik:RadEditor>           
                                                                <asp:CustomValidator id="valLogText" runat="server" ControlToValidate="txtLogText" ErrorMessage="- Text is mandatory" ToolTip="Text is mandatory"> <img src="/cmit/Images/warning.gif" style="border:0" alt=""/></asp:CustomValidator>
                                                            </td>
                                            </tr>
                                            <tr>
                                                <td align="right" style="white-space:normal" colspan="2">
                                                    <asp:Button ID="btnUpdate" TabIndex="11" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></asp:Button
                                                    <asp:Button ID="btnCancel" TabIndex="12" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button>
                                                </td>
                                            </tr>
                                        </table>
                                         
                                    </FormTemplate>
                                    <EditColumn ButtonType="ImageButton" />
                                </EditFormSettings>
                            </MasterTableView>
                        </telerik:RadGrid>
                   
    



Ianko
Telerik team
 answered on 23 Jan 2015
1 answer
85 views
Hi,

Does the ticker control support multiple lines?  I have a datatable that returns 5 rows.  I want the ticker to produce 5 lines as well, i.e. not overwrite the orginal one 5 times?

Is this possible?

Thanks

Andy.
Slav
Telerik team
 answered on 23 Jan 2015
6 answers
233 views
I have this RadWindow in a parent page:

<script type="text/javascript">
 function ShowWindow() {
 var oWnd = window.radopen('Window1.aspx', 'window1');
}        
</script>
 
<body>
  <form id="form1" runat="server">
    <div>
      <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
      </telerik:RadScriptManager>
      <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
          </telerik:RadWindowManager>
...........

This is how I open the RadWindow from code behind of the parent page:
...
else
   {
      Session["fatherMessageID"] = id;
      string script = "<script language='javascript' type='text/javascript'>Sys.Application.add_load(ShowWindow);</script>";
      ClientScript.RegisterStartupScript(this.GetType(), "showWindow", script);
    }

This is how I close the RadWindow from inside the RadWindow:
<script type="text/javascript">
        function GetRadWindow() {
            var oWnd = null;
            if (window.radWindow) oWnd = window.radWindow;
            else if (window.frameElement.radWindow) oWnd = window.frameElement.radWindow;
            return oWnd;
        }
        function CloseWindow() {
            var oWnd = GetRadWindow();
            oWnd.close()
        }
    </script>

Calling the script from a button inside the RadWindow:
string script = "<script language='javascript' type='text/javascript'>Sys.Application.add_load(CloseWindow);</script>";
ClientScript.RegisterStartupScript(this.GetType(), "CloseWindow", script);

The problem I am experiencing is that the RadWindow after being opened and closed the first time, keeps reopening later on on page load and on click of any controls on the parent page.
How can I resolve this problem?

Thanks for supporting
Felice
Felice
Top achievements
Rank 1
 answered on 23 Jan 2015
2 answers
151 views
This may be premature.  This may or may not be an Ajax problem, but here goes.

I have identical code deployed to 2 web servers (dev and production).  There are 2 main problems as far as I can tell, both Internet Explorer related.  On one site the app works perfectly in all browsers including IE.  In the other it works perfectly in Chrome and Firefox but not IE. 

The page has a master page containing a RadScriptManager,  RadCodeBlock,   RadStyleSheetManager,  RadSkinManager, and and asp:Repeater populated with Asp:Link buttons.
The page itself contains a RadInputManager,  RadWindowManager,  RadToolTipManager, 2  RadCodeBlocks, and the  RadGrid itself.

Problem 1 is that in IE, the asp:Repeater is disabled.  The set of links is populated and displays correctly but they simply don't work.

Problem 2 is that various hyperlinks in the RadGrid also do not work in IE. (Also generated in code.)  The idea is that these hyperlinks call a JavaScript function which in turn calls up a popup window.  

(As far as I can remember I copied this pattern directly from Telerik.
The calls are like this:   var oWnd = window.radopen("EditWindow.aspx?Id=" + Id, "Add Entry For Record " + Id);   )  

All these calls crash, giving a message saying that the window object is null.

Troubleshooting this problem is complicated by the fact that I do not have direct access to the production server due to security concerns.  A friend of mine has suggested that this might be due to some sort of permissions problem in IIS.

Anyone else have a problem like this?
Boris
Top achievements
Rank 1
 answered on 23 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?