Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
620 views
Hi,

I have some questions regarding the customizations for Rad Scheduler:
    1. How can I show AM/PM (basically group on AM/PM) instead of showing hours separately?
    2. How can I customize the date header?
    3. How to disable single and double click on a row? I want to open a pop-up on the appointment pop-up?

I have attached the image to make my questions more clear.

Regards,
Ratnesh 
Hristo Valyavicharski
Telerik team
 answered on 29 Feb 2016
5 answers
95 views

Hello, 

We are experienced an issue with radGrid on iPad/iPhone/iPod. On any postback (trying to retrieve a record, ordering by clicking the column header, changing the page size) the entire browser is blocked. The only way to go back is to force closing the browser and reopen it. 

Mention : The Android devices are working good, also the all browsers on desktop using Windows. 

Mention : The radGrid is placed in a radWindow.

Trying to isolate the problem found that this is happening even on a simple radGrid in a dummy window. Is there something we are missing? Are we wrong with something else? Can you reproduce the problem? 

Telerik version : 2016.1.113.40

This is the source code we are using in order to reproduce the problem .

Thank you!

 

ASPX : 

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DummyLookupContent.ascx.cs" Inherits="wMobilePC.Web.UI.Contents.DummyLookupContent" ClassName="wMobilePC.Web.UI.Contents.DummyLookup" %><br><telerik:RadCodeBlock ID="rcbMain" runat="server"><br>    <script type="text/javascript"><br>        var oWnd = RadWindow_GetRadWindow();<br>        oWnd.set_visibleStatusbar(false);<br>        oWnd.set_width(700);<br>        oWnd.set_height(500);<br>        oWnd.center();<br>       <br><br>    </script><br></telerik:RadCodeBlock><br><br><br><telerik:RadGrid ID="grd" runat="server" AutoGenerateColumns="true"<br>        AllowCustomPaging="True" AllowPaging="True" OnNeedDataSource="grd_NeedDataSource"<br>        PageSize="10" EnableLinqExpressions="false" Height="400px" Width="100%" ><br>        <MasterTableView AllowFilteringByColumn="True" AllowCustomSorting="True" AllowSorting="True"<br>            CanRetrieveAllData="False" EnableColumnsViewState="True" EnableViewState="True"<br>            TableLayout="Fixed"><br>            <PagerStyle AlwaysVisible="true" /><br>        </MasterTableView><br>        <ClientSettings AllowKeyboardNavigation="true"><br>            <Selecting AllowRowSelect="True" /><br>            <Scrolling AllowScroll="true" UseStaticHeaders="true" /><br>            <KeyboardNavigationSettings AllowActiveRowCycle="true" EnableKeyboardShortcuts="false" /><br>        </ClientSettings><br>    </telerik:RadGrid>

 

Code behind : 

namespace wMobilePC.Web.UI.Contents<br>{<br>    public partial class DummyLookupContent : UserControl, IWebContent<br>    {<br>        public string Name<br>        {<br>            get; set;<br>        }<br><br>        public bool IsReadOnly<br>        {<br>            get; set;<br>        }<br><br>        public string Id<br>        {<br>            get; set;<br>        }<br><br>        public string Title<br>        {<br>            get; set;<br>        }<br><br>        public Control Control<br>        {<br>            get { return this; }<br>        }<br><br>        public bool IsDirty<br>        {<br>            get; set;<br>        }<br><br>        public IDataContext DataContext<br>        {<br>            get; set;<br>        }<br><br>        public IWebWorkspace Workspace<br>        {<br>            get; set;<br>        }<br><br>        protected void Page_Load(object sender, EventArgs e)<br>        {<br>            LoadAjaxSettings();<br>        }<br><br>        protected void grd_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)<br>        {<br>            DataSet ds = ContactService.GetAllContacts(SecurityContext.LoggedInUser, GMContactType.Primary, "Company LIKE '%c%'", string.Empty, 0, 100);<br><br>            grd.DataSource = ds.Tables[0];<br>        }<br><br>        public Control GetView(string name)<br>        {<br>            return null;<br>        }<br><br>        public void SaveContent(object info)<br>        {<br>            <br>        }<br><br>        public void Initialize(object info)<br>        {<br>            <br>        }<br><br>        public void LoadContent(object info)<br>        {<br>            <br>        }<br><br>        public void RefreshContent(object info)<br>        {<br>           <br>        }<br><br>        public bool IsRefreshRequired(object info)<br>        {<br>            return false;<br>        }<br><br>        private void LoadAjaxSettings()<br>        {<br>            RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(grd, grd);<br>        }<br>    }<br>}

 

Pavlina
Telerik team
 answered on 29 Feb 2016
7 answers
431 views
hi
how we can add show business hour button
and how we can customize the advanced template.
And we also want to show the advanced template only not the inline template how we can achive this thing.
?
Hristo Valyavicharski
Telerik team
 answered on 29 Feb 2016
1 answer
154 views

Hello

I am using AsyncUpload to upload photos and store them in a folder that exists inside my project

        <asp:Label ID="PhotoLabel" runat="server" Text="Upload a photo"></asp:Label>
        <telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" ManualUpload="false"  ID="AsyncUpload1" MultipleFileSelection="Disabled" OnFileUploaded="AsyncUpload1_FileUploaded"></telerik:RadAsyncUpload>
        <telerik:RadButton runat="server" Text="Sibmit new photos" OnClick="UploadFiles_Click"></telerik:RadButton>
        <asp:Label ID="error" runat="server" Text="" Visible="false"></asp:Label>

 

    protected void UploadFiles_Click(object sender, EventArgs e)
    {
        try
        {
            if(AsyncUpload1.UploadedFiles.Count > 0)
            {
                foreach (UploadedFile file in AsyncUpload1.UploadedFiles)
                {
                    string targetFolder = HttpContext.Current.Server.MapPath("~/images");
                    string targetPath = Path.Combine(targetFolder, file.ToString());

                    file.SaveAs(targetPath);    
                }
                error.Text = "File Uploaded";
                error.Visible = true;

            }
            else
            {
                error.Text = "no files to upload";
                error.Visible = true;
                return;
            }
        }
        catch(Exception ex)
        {
            error.Text = ex.ToString();
            error.Visible = true;
        }
    }

 

This code works. And stores a file on the correct folder. The problem is that instead of it being a png like I uploaded its a 'Telerik.Web.UI.AsyncUploadedFile'

Ivan Danchev
Telerik team
 answered on 29 Feb 2016
2 answers
892 views

I am trying to pull grid column data in order to call a procedure.  on e.item, bold below, i am receiving error :

Error1'Telerik.Web.UI.GridNeedDataSourceEventArgs' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'Telerik.Web.UI.GridNeedDataSourceEventArgs' could be found (are you missing a using directive or an assembly reference?)

here is the C#

protected void Mask_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            GridDataItem dataItem = e.Item as GridDataItem;
            string @Empl_ID = dataItem.GetDataKeyValue("Empl_ID").ToString();
            RadGridEmpl.DataSource = DataLayer.FirmEmployees.PhoneMask(@Empl_ID);
        }

how can this be fixed?

Kostadin
Telerik team
 answered on 29 Feb 2016
1 answer
108 views
I have a RADMenu inside of a ASP.NET Datagrid header temple. I can't get my event to fire
<telerik:RadMenu ID="SubmitDateContextMenu"  
                                       CollapseDelay="2000"
                                       CollapseAnimation-Type="None"
                                       ExpandDelay="200"
                                       ExpandAnimation-Type="None"
                                       DefaultGroupSettings-OffsetX="0"
                                       EnableViewState="true"
                                       runat="server"
                                       Flow="Horizontal"
                                        OnItemClick="ContextMenu_MenuItemSelected"
                                       >
                                       <Items>
                                           <telerik:RadMenuItem ImageUrl="~/images/Buttons/contextmenu_up.png" Text='SUBMISSION_DATE'
                                               meta:resourcekey="SUBMISSION_DATE">
                                               <Items>
                                                   <telerik:RadMenuItem PostBack="true" ValidateRequestMode="Disabled"
                                                       ImageUrl="~/images/Icons/sortorder_ascending.png" Text='SORT_ASCENDING'
                                                       meta:resourcekey="SORT_ASCENDING" Value="SUBMISSION_ASC"/>
                                                   <telerik:RadMenuItem PostBack="true" ValidateRequestMode="Disabled"
                                                       ImageUrl="~/images/Icons/sortorder_descending.png" Text='SORT_DESCENDING'
                                                       meta:resourcekey="SORT_DESCENDING" Value="SUBMISSION_DES"/>  
                                                    </Items>   
                                           </telerik:RadMenuItem>                                      
                                       </Items>
                                   </telerik:RadMenu>

Event:

Public Sub ContextMenu_MenuItemSelected(ByVal sender As System.Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs)
 
     'save the sort order to the user's session
     QueueFilterData.PSTQueueSortID = e.Item.Value
 
     loadPSTResults()
 End Sub

Nencho
Telerik team
 answered on 29 Feb 2016
10 answers
173 views

Hi,

I am trying to avoid the loading issue on the first look of the Scheduler.

If I can catch the events of the following buttons that will help me out to re-load the visible week on the Scheduler.

Previous Day- Next Day- DatePickerActivator- HeaderDay- HeaderWeek- HeaderMonth

It would be awesome to know what name of the events to catch on the client side and how the date range can be captured and passed through.

I have attached the screenshot of the button. Appreciate it.

Mehmet
Top achievements
Rank 1
 answered on 29 Feb 2016
9 answers
614 views
Is it possible to make a RadTreeView node not selectable but so that you can still expand it?
Anders
Top achievements
Rank 1
 answered on 28 Feb 2016
2 answers
260 views
Greetings, I have a project that I am trying to implement your RadControls with.  Everything works fine until I drop a RadScriptManager onto the page.  I'm trying to replace the following ScriptManager tag with a RadScriptManager, but am getting a JavaScript Critical Error message at startup.  Please note that the web page includes some DevExpress controls, and not just RadControls.  Please advise.

WORKS WITH THIS
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" AsyncPostBackTimeout="360000">
        <Scripts>
            <asp:ScriptReference Path="~/Scripts/jquery-1.9.0.min.js" />
            <asp:ScriptReference Path="~/Scripts/jquery.simplemodal.js" />
            <asp:ScriptReference Path="~/Scripts/ui-helper.js" />
        </Scripts>       
</asp:ScriptManager>

DOESN'T WORK WITH THIS
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="True" AsyncPostBackTimeout="360000">
        <Scripts>
            <asp:ScriptReference Path="~/Scripts/jquery-1.9.0.min.js" />
            <asp:ScriptReference Path="~/Scripts/jquery.simplemodal.js" />
            <asp:ScriptReference Path="~/Scripts/ui-helper.js" />
        </Scripts>
    </telerik:RadScriptManager>

I'M RECIEVING THE FOLLOWING ERROR AT APPLICATION STARTUP

JavaScript critical error at line 1, column 1 in http://localhost:16383/MarketOz/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2

SCRIPT1014: Invalid character



Manik
Top achievements
Rank 1
 answered on 26 Feb 2016
6 answers
135 views

What is the control over when the navigation menu is collapsed into the more menu?  I have a menu whereas soon as the page width drops below approx 500px the remaining items are moved to the more menu.

This happens even when there is a ton of space left.  

There doesn't seem to be a property to control this.

Regards

Jon

Jon
Top achievements
Rank 1
 answered on 26 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?