Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
55 views
Greetings,

I am trying to figure out which input control to use.  We have numeric account numbers that can have zero to many decimal points.  For example...

123456
123.456
12.345.6789
1234.5.6

These would all be valid account numbers.  I need to have an input that only allows numbers and periods.  Any advice?

Much appreciated,

Matt
Matt
Top achievements
Rank 1
 answered on 31 Jan 2014
4 answers
111 views

Hi there,

I have a databound (scrolling disabled) tilegrid and am trying to set the width of the grid through code-behind. Setting RadTileList.width works, but there is a "div class='rtlistWrapper'" that appears to default to a value much lower than the width I'm setting. This causes the grid to render as a 'narrow column', rather than taking up the whole defined width. I'm assuming this is some computed value (developer tools show the value coming from Telerik.Webresource.axd), so the question is, how can I access this value from code behind?

I guess I could override the css class client-side with js, but that seems kind of messy ...



Short explanation, just to show what I'm trying to achieve: I'm creating a (reusable) user control, where the user can set the grid width, tile width and row number to make the grid fit into different page layouts - makes sense?



Thx in advance for help and/or pointers!

M.

Marcus
Top achievements
Rank 1
 answered on 31 Jan 2014
8 answers
388 views
I am trying to add a required field validation to a RadComboBox which is defined in a .ascx file. I am using this combo box in many pages. So I wont be able to give required field validation in .ascx page. I have referenced this page in a .aspx page and used a drop down to load with list of combo box items Which works fine. If I add this required field validator I get this error saying
"Unable to find control id 'radcmbEmployeeSearch' referenced by the 'ControlToValidate' property of 'eventAdminRequired'".

I tried replacing the controltovalidate with eventAdminDropDown. I get error for this too. Don't know where I am going wrong.
Any help is much appreciated. 






<telerik:RadComboBox ID="radcmbEmployeeSearch" runat="server" EmptyMessage="Select Event Admin" AllowCustomText="true"
                     EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnItemsRequested="radcmbEmployeeSearch_ItemsRequested" Height="200px">
</telerik:RadComboBox>
 
 
<td runat="server">
                <EAdm:DropDown runat="server" ID="eventAdminDropDown" />
                <asp:requiredfieldvalidator id="eventAdminRequired" runat="server" display="Dynamic"
                        controltovalidate="radcmbEmployeeSearch" initialvalue="0" enableclientscript="True" errormessage="Required">
                </asp:requiredfieldvalidator> 
</td>
Thanks
Boyan Dimitrov
Telerik team
 answered on 31 Jan 2014
1 answer
195 views
Hi Team,

I have an issue with DAY view - time vertical and Week view - time vertical.
when i scroll down, the appointment is in the wrong alignment. when i scroll up it is OK
As you can see in the both images, the actual appointment time is 18:00 to 19:00 but wrongly aligned .

And rendering for the very first time, it is working fine. after refreshing or moving to other view or date it becomes like in the images.
same issues in both IE 10 and chrome

Could anyone please help me where should i need to make the changes to make the correct alignment.


Thanks in advance
Boyan Dimitrov
Telerik team
 answered on 31 Jan 2014
7 answers
203 views
Hello,

I'm using a RadSplitter containing a RadPane and I only want a Scrolling="Y" in case of need.

My problem is that when a long text is posted, the Y scrollbar appears but hide a few characters at the right of the text (see attached shot), and the following demo has the same issue (1st column 2nd line).

I was thinking that adding a div with a smaller width and/or a padding right should fix the problem but this is not the case, when I load a new message my content takes the 100% of the Radpane and a part of the text is hidden.

I do not want to us an horizontal scrollbar because this isn't really nice and a text should be easily included in a container, is there a way to do it ?

Also, is it possible to give a style to the scrollbar ?

Thanks,


Herve



<telerik:RadSplitter ID="Radsplitter" Height="100%" Width="520px" Orientation="Horizontal" runat="server">
<!-- Top Pane -->
 <telerik:RadPane ID="Rp1" runat="server" Width="100%"  Height="300"  Scrolling="Y">
<asp:Panel ID="PnlMessage" Width="500px" runat="server" >

<div  class="MessageSubject">
<div class="MessageSubjectTxt">
<asp:Literal ID="LitSubject" runat="server" />
</div>
<div  class="MessageSubjectBtn">
<telerik:RadButton ID="BtnReply" runat="server" Text="Reply" />
<telerik:RadButton ID="BtnNew" runat="server" Text="New" />
</div>
</div>
 
<div style="width: 500px; padding-right:20px;">
<asp:Literal ID="LitMessage" runat="server" />
</div>
 
</asp:Panel>


Marin Bratanov
Telerik team
 answered on 31 Jan 2014
1 answer
76 views
Hi, 

I have created an asp page that has a telerik scheduler control. I am binding all the appointments in the Page_Load function and I have also implemented other functions such as "OnAppointmentInsert", "OnAppointmentUpdate", "OnAppointmentDelete" and so on. Everything is working correctly.

Now I have a requirement to load the appointments after the page is loaded. Therefore I used the webservice functionality that telerik provides(Link1 , Link2).
So now once the page is loaded, the scheduler will call the "GetAppointments" function of the webservice and bind the appointments to the calender.

Now when I move an appointment, it calls the method that was mentioned in the webservice.
public IEnumerable<AppointmentData> UpdateAppointment(SchedulerInfo schedulerInfo, AppointmentData appointmentData)

But what I want is to call the following function which was written on the page cs file.
protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)

What I need is that once the appointments are bounded to the scheduler, the use of the webservice should get disabled. So that it would use the server events I added earlier such as "OnAppointmentInsert", "OnAppointmentUpdate", "OnAppointmentDelete".

However my primary objective is to load the appointments once the page is completely loaded.

Thanks, 
Hemika Kodikara
Boyan Dimitrov
Telerik team
 answered on 31 Jan 2014
3 answers
72 views
I build the simplest of examples and it works fine on my local machine.  The file is uploaded to the default temporary location and on the postback it is moved to the target folder (c:\temp).  When I move the code to a server in our farm, the file is uploaded to the temporary location, but on the postback, it doesn't move to the target folder (c:\temp).  I have tried multiple IIS servers and have the same results.  It only works locally.  What am I doing wrong?

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>
<script type="text/javascript">
//Put your JavaScript code here.
</script>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

</telerik:RadAjaxManager>

<div>

<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" AllowedFileExtensions="iso,avi,xlsx,xls,docx,png,jpg" MaxFileSize="2000000000" TargetFolder="c:\temp">
</telerik:RadAsyncUpload>
<telerik:RadButton ID="RadButton1" runat="server" Text="Finish">
</telerik:RadButton>
<br />

</div>
</form>
</body>
</html>
Hristo Valyavicharski
Telerik team
 answered on 31 Jan 2014
2 answers
291 views
Hi Telerik,
I need to change the TargetFolder property of the RadAsyncUpload control dynamically.  I extended AsyncUploadConfiguration class and populated the TargetFolder property in the code behind.  I wish to be able to access this property in the AsyncUploadHandler class before the file is saved on the server.  But the property does not get passed to the handler for whatever reason.   

Thanks for any help.

 

Hristo Valyavicharski
Telerik team
 answered on 31 Jan 2014
1 answer
47 views
I have the below setup, where SideMultiPage is linked to a not mentioned tabstrip outside the Holder div and works fine:

<div id="Holder">
        <script type="text/javascript">
            /* <![CDATA[ */
            function onTabSelecting(sender, args) {
 
                if (args.get_tab().get_pageViewID()) {
                    args.get_tab().set_postBack(false);
                }
            }
            /* ]]> */
        </script>
        <div id="SidemenuBar">
            <telerik:RadAjaxPanel ID="RadSidePanel" runat="server">
                <telerik:RadMultiPage runat="server" ID="SideMultiPage" SelectedIndex="0">
                    <telerik:RadPageView runat="server" ID="PageviewPersoneelsleden">
                        <telerik:RadTabStrip ID="tabstripPersoneel" runat="server" MultiPageID="ContentMultiPage" Orientation="VerticalLeft" OnClientTabSelecting="onTabSelecting" OnTabClick="Sidebar_TabClick">
                            <Tabs>
                                <telerik:RadTab Text="Personeelsfiche" PageViewID="Personeelsfiche" runat="server" Selected="True">
                                </telerik:RadTab>
                                <telerik:RadTab Text="Arbeidsovereenkomst" PageViewID="Arbeidsovereenkomst" runat="server">
                                </telerik:RadTab>
                                <telerik:RadTab Text="Asset" PageViewID="Asset" runat="server">
                                </telerik:RadTab>
                                <telerik:RadTab Text="Certificaat" PageViewID="Certificaat" runat="server">
                                </telerik:RadTab>
                                <telerik:RadTab Text="Ervaringen" PageViewID="Ervaring" runat="server">
                                </telerik:RadTab>
                            </Tabs>
                        </telerik:RadTabStrip>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="PageviewAfwezigheden" runat="server">
                        <telerik:RadTabStrip ID="tabstripAfwezigheden" runat="server" MultiPageID="ContentMultiPage" Orientation="VerticalLeft" OnClientTabSelecting="onTabSelecting" OnTabClick="Sidebar_TabClick">
                            <Tabs>
                                <telerik:RadTab Text="Afwezigheid inplannen" PageViewID="Afwezigheid" runat="server">
                                </telerik:RadTab>
                                <telerik:RadTab Text="Maandoverzicht afwezigheden" PageViewID="Maandoverzicht" runat="server">
                                </telerik:RadTab>
                                <telerik:RadTab Text="Jaaroverzicht afwezigheden" PageViewID="Jaaroverzicht" runat="server">
                                </telerik:RadTab>
                                <telerik:RadTab Text="Kalenderoverzicht" PageViewID="Kalender" runat="server">
                                </telerik:RadTab>
                            </Tabs>
                        </telerik:RadTabStrip>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="PageviewWagens" runat="server">
                        <telerik:RadTabStrip ID="TabstripWagens" runat="server" MultiPageID="ContentMultiPage" Orientation="VerticalLeft" OnClientTabSelecting="onTabSelecting" OnTabClick="Sidebar_TabClick">
                            <Tabs>
                                <telerik:RadTab Text="Wagens" PageViewID="Wagen" runat="server">
                                </telerik:RadTab>
                                <telerik:RadTab Text="Tankkaarten" PageViewID="Tankkaart" runat="server">
                                </telerik:RadTab>
                                <telerik:RadTab Text="Technische onderhouden" PageViewID="Onderhoud" runat="server">
                                </telerik:RadTab>
                                <telerik:RadTab Text="Expertiseverslagen" PageViewID="Expertiseverslag" runat="server">
                                </telerik:RadTab>
                            </Tabs>
                        </telerik:RadTabStrip>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </telerik:RadAjaxPanel>
        </div>
        <div id="Content">
            <telerik:RadAjaxPanel ID="RadMainPanel" runat="server">
                <telerik:RadMultiPage ID="ContentMultiPage" SelectedIndex="0" OnPageViewCreated="ContentMultiPage_OnPageViewCreated" runat="server">
                </telerik:RadMultiPage>
            </telerik:RadAjaxPanel>
        </div>
    </div>


The codebehind is:
protected void Page_Init(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                AddPageView(tabstripPersoneel.FindTabByText("Personeelsfiche"));
            }
        }
 
        protected void Sidebar_TabClick(object sender, RadTabStripEventArgs e)
        {
            AddPageView(e.Tab);
            e.Tab.PageView.Selected = true;
        }
 
        private void AddPageView(RadTab tab)
        {
            RadPageView pageView = new RadPageView {ID = tab.PageViewID};
            ContentMultiPage.PageViews.Add(pageView);
        }
 
        protected void ContentMultiPage_OnPageViewCreated(object sender, RadMultiPageEventArgs e)
        {
            string userControlName ="/Controls/"+ e.PageView.ID + "Weergave.ascx";
 
            Control userControl = Page.LoadControl(userControlName);
            userControl.ID = e.PageView.ID + "_userControl";
 
            e.PageView.Controls.Add(userControl);
        }


Everything on the first tabstrip opens fine. I haven't yet developed the second tabstrip. I have developed the "Wagen" page on the 3rd tabstrip. When I try to open this one, all events fire properly, the pageview gets added in the code-behind, but it doesn't appear on the page. When I then return to the first page and select one of those pages, that one loads fine, but even after returning to the Wagen tab, it still doesn't load it.

i checked the generated HTML code. the Personeelsfiche control is loaded fine on page load. when I then go to TabstripWagens and select the one with text "Wagens", the generated code doesn't change. When I then go back to the first tabstrip and select Arbeidsovereenkomst, it loads the appropriate control, AND also adds the Wagenview as a hidden view. So it is not added immediately. so it appears like you CAN have 2 tabstrips with the same multipageID. In fact, when I change .rmpHiddenView to not have "display: none", it can show the control, and the control's code-behind works, so I know that it's accessible. The control just isn't shown properly when there are 2 or more tabstrips linked.

Is this a bug or intended behaviour?
Nate
Top achievements
Rank 1
 answered on 31 Jan 2014
10 answers
112 views
Hi, I have been using Radschedular for quiet some time. One of our business users reported that appointments are moving up on scroll. Like if  an appointment is schedule for 9pm, it is moving up to 8:45pm.
My radschedular code is :

 

 

<telerik:RadScheduler runat="server" ID="RadScheduler1" Skin="Outlook" Height="630px"

 

 

 

WorkDayStartTime="06:00:00" WorkDayEndTime="22:00:00" DayStartTime="06:00:00"

 

 

 

DayEndTime="22:00:00" TimeZoneOffset="00:00:00" DataKeyField="REP_APPT_ID" DataSubjectField="Subject"

 

 

 

CustomAttributeNames="RECUR_SERIES_ID" DataStartField="START_DT_TIME" DataEndField="END_DT_TIME"

 

 

 

AllowEdit="false" AllowInsert="false" ShowViewTabs="false"

 

 

 

NumberOfHoveredRows="1" MinutesPerRow="15" TimeLabelRowSpan="2" HoursPanelTimeFormat="h:mm tt"

 

 

 

AppointmentStyleMode="Default" OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick"

 

 

 

OnClientTimeSlotClick="OnClientTimeSlotClick"

 

 

 

AllowDelete="false" >

 

 

 

</telerik:RadScheduler>

 


I am attaching screenshot with the ticket. Any help would be appreciated.
Ruby
Top achievements
Rank 1
 answered on 31 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?