Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
456 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
235 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
258 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
124 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
99 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
341 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
63 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
187 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
3 answers
167 views
I have deployed a new web app and the grid display is corrupted (see the attached images).

The grids display correctly in dev mode but all of them are bad when called from the server (IIS 6, 4.0 framework)

It seems like this should be a css or image pathing issue, but the folders and contents are the same for both the dev and server environments (same web.config, image path, styles path, master pages, etc.)

What would be causing this?
Viktor Tachev
Telerik team
 answered on 31 Jan 2014
1 answer
535 views
Has anyone created a dynamic user dashboard with rad dock yet?  The samples provide most of the parts, but I wanted to see if anyone had already done this before I embark on a project to do it.  I am looking for the ability for a user to add precreated dashboard user controls they want and save them once they come back the dashboard will be there the way they left with updated data of course.  something like igoogle.

Let me know
Slav
Telerik team
 answered on 31 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?