Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
194 views

Dear,

I want to access a pane and set it's content url.it works by using

var contentPane = $find("<%= PaneRight.ClientID %>");
and not works by using
var splitter = GetRadSplitter();
var pane = splitter.getPaneById("PaneRight");

the page source below
<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Base.Master" AutoEventWireup="true"
    CodeBehind="RptAuth.aspx.cs" Inherits="Rp.UI.ReportManager.RptAuth" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  
    <script type="text/javascript" language="javascript">
        function GetRadSplitter() {
            return $find("<%= RadSplitter1.ClientID %>");
        }
  
        function tvClientNodeClicked(sender, eventArgs) {
            var node = eventArgs.get_node();
            if (node.get_nodes().get_count() > 0) {
                return;
            }
//            var splitter = GetRadSplitter();
//            var pane = splitter.getPaneById("<%= PaneRight.ClientID %>");
//            debugger;
            var contentPane = $find("<%= PaneRight.ClientID %>");
            if (!contentPane) return;
  
                 }
    </script>
  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Vertical" BorderSize="0"
        BorderStyle="None" Height="100%" Width="100%">
        <telerik:RadPane ID="PaneLeft" runat="server" Scrolling="None" Height="100%" Width="180px">
            <div style="border-top-style: solid; border-top-width: 1px; border-top-color: #3333CC">
                <telerik:RadTreeView ID="tvUser" Height="100%" Width="100%" runat="server" OnClientNodeClicked="tvClientNodeClicked">
                    <Nodes>
                                   </div>
        </telerik:RadPane>
        <telerik:RadSplitBar runat="server" ID="RadSplitBar1" CollapseMode="Forward" />
        <telerik:RadPane ID="PaneRight" runat="server" Scrolling="Both">
        </telerik:RadPane>
    </telerik:RadSplitter>
</asp:Content>

I noticed that all the demo have used the second way to access the specified pane.how to fix my code?

thanks

Kevin
Dobromir
Telerik team
 answered on 04 Apr 2011
1 answer
97 views
Is there a list of features that being added to the RibbonBar control in SP1?  I checked the PITS system, but don't see anything there for the RibbonBar at all.

I have mentioned a couple of missing features/bugs in a previous issue which I was told were already on the to-do (Thanks! btw). 

Is there by chance going to be a server side OnClick/OnCommand event available for a RibbonBarButton with CommandName and CommandArgument properties?  How about a NavigateUrl for RibbonBarButton?

Thanks again!  I really love this new control.  We aren't planning on going live with it for a few months, but I at least want to make sure some of these features will eventually be added to the control.
Simon
Telerik team
 answered on 04 Apr 2011
1 answer
153 views

Hi,

I’ve got a problem using the RadTooltipManager combined with RadDatePicker. I was able to fix the Problem on Firefox but not on IE and I don’t know what to do to get it work.

The problem is that the RadToolTip shows the wrong date as you can see on Screenshot 1.

After adding the Calendar-ClientEvents-OnCalendarViewChanged event to the DatePicker with the following JS-function


function OnCalendarViewChanged(sender, args) {
                    element = sender.get_element();
                    tooltipmanager = $find("<%=RadToolTipManager1.ClientID %>");
                    tooltipmanager.tooltipify(sender.get_element());
                }


the problem is solved in FireFox as you can see on Screenshot 2. But in the IE the problem still exists…

I hope you are able to help me to fix this.

I'm using the Version 2010.3.1502.35

Svetlina Anati
Telerik team
 answered on 04 Apr 2011
3 answers
151 views
Hi,
In Scheduler month view,I want to display the dates from other months  in  a diff color than dates inthe current  month, so that it is easy for the user.
 
For e.g.: Scheduler monthview for September 2009 shows August (30, 31) and October (1, 2, and 3). I wantto set Grey color to August and October dates. How to do this?

p.s. the sameissue in Week view  too.

Any clues/hints would help.
 
Thanks
Sabarish
Veronica
Telerik team
 answered on 04 Apr 2011
5 answers
612 views
Hey guys,
After looking thru the forums I can't seem to find anything to help me.  I am wondering if it is possible to only show the actual month in the MonthView and NOT show the last/next few days of the previous/next month?  I have two RadSchedule control on a page to give a 2 month view but the week of the next month is distracting to see twice ( example of month overlap )  Is there an easy way I can suppress the extra days?
Thanks,
Bryan Smouse
Veronica
Telerik team
 answered on 04 Apr 2011
2 answers
738 views
Hello, I'm trying to implement custom validation for my web page, but having problem. I want my ComboBox to be populated asynchronously from Web Service. So, here's the code of my page:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CBSamplePage.aspx.cs" Inherits="CBSamplePage" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<head runat="server">
    <title>
        RadComboBox Sample Page
    </title>
     
</head>
<body>
    <form id="form1" runat="server">
    <script type="text/javascript">
        function validatePerson(source, args) {
            if ($find("<%=cbPersons.ClientID %>").get_value() > 0) {
                args.IsValid = true;
            } else {
                args.IsValid = false;
            }
        }
    </script>
    <div>
        <asp:ScriptManager runat="server" ID="scriptManager1"></asp:ScriptManager>
        <table>
            <tr>
                <td>
                    <asp:Label runat="server" ID="lbl1">Select something</asp:Label>
                </td>
                <td>
                    <telerik:RadComboBox EmptyMessage="Select a person..." runat="server" ID="cbPersons" AllowCustomText="true" EnableLoadOnDemand="true">
                        <WebServiceSettings Method="GetPersons" Path="~/SampleWebService.asmx" />
                    </telerik:RadComboBox>
                    <asp:CustomValidator runat="server" ID="customValrPerson" ValidationGroup="Sample" ControlToValidate="cbPersons" ErrorMessage="Required" ClientValidationFunction="validatePerson"></asp:CustomValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:LinkButton runat="server" ID="lnkSubmit" ValidationGroup="Sample" CausesValidation="true">Submit</asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

And here's the code of the web service that I use for generating ComboBox items:

<%@ WebService Language="C#" Class="SampleWebService" %>
 
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.Script.Services;
using Telerik.Web.UI;
 
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ScriptService]
public class SampleWebService  : System.Web.Services.WebService {
 
    static string[] persons = { "Person Number 1", "Person Number 2", "Person Number 3", "Person Number 4", "Person Number 5" };
     
    [WebMethod]
    public RadComboBoxItemData[] GetPersons(RadComboBoxContext context)
    {
        RadComboBoxItemData[] result = null;
 
        result = new RadComboBoxItemData[persons.Length];
        for (int i = 0; i < persons.Length; i++)
        {
            result[i] = new RadComboBoxItemData { Text = persons[i], Value = i.ToString() };
        }
         
        return result;
    }   
}

So, I have number of problems.

1) When I load the page and click "Submit" link, validation doesn't happen and page gets post back. Obviously, that's wrong because ComboBox doesn't have any item selected.
2) When I select an item I see "Required" text. That happens because when validation function is called, this code:
$find("<%=cbPersons.ClientID %>").get_value()
returns "undefined". Sure, that's not how I expect things to work. When I click "Submit" link everything works properly. 

P.S. It can seem that I would use RequiredFieldValidator in this example, but sometimes I will need to change the way selection is validated, so I would prefer to use CustomValidator for this. 
Kalina
Telerik team
 answered on 04 Apr 2011
5 answers
139 views
I'm getting this error in IE8 only on my RadAjaxManager.  Works great in Chrome & FF4.  

Webpage error details
 
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2;
.NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E;
BRI/2)
Timestamp: Tue, 29 Mar 2011 22:25:34 UTC
 
Message: 'null' is null or not an object
Line: 162
Char: 13
Code: 0


Here's the RadAjaxManager:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="PageLoaded">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Label1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

Here's the OnAjaxRequest & OnLoad methods:
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this.Page);
            if (ajaxManager == null)
            {
                ajaxManager = new RadAjaxManager();
                ajaxManager.ID = "RadAjaxManager1";
                Controls.Add(ajaxManager);
                this.Page.Items.Add(typeof(RadAjaxManager), ajaxManager);
            }
        }
 
protected void PageLoaded(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
        {
            if(e.Argument=="DocumentReady")
                DisplayDates(new DateTime(radCal.FocusedDate.Year, radCal.FocusedDate.Month, 1), new DateTime(radCal.FocusedDate.Year, radCal.FocusedDate.Month, DateTime.DaysInMonth(radCal.FocusedDate.Year, radCal.FocusedDate.Month)));
        }

Here's the javascript:
$(document).ready(function () {
  
            var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
            ajaxManager.ajaxRequest("DocumentReady");//THIS IS WHERE THE ERROR OCCURS
              
}

I have a feeling that I'm missing something important, but I'm still pretty new to telerik.  Any help would be appreciated, thanks.
Iana Tsolova
Telerik team
 answered on 04 Apr 2011
1 answer
136 views
I'm just trying to add some top and bottom padding to Level 1 items (the first level below the root level).  I've got a custom default.css class which I copied out of the install folder.

I've been at it for about 2 hours, with no luck.  For some reason, this is really difficult, probably because I'm not a CSS guy.

Aaron    
Shinu
Top achievements
Rank 2
 answered on 04 Apr 2011
1 answer
35 views
  • Can I use these tools in another PC without installing the RadControls for ASP.NET AJAX  Version: 2011.1 315 in that PC?
  • after i design the web application, i will be use it in a another PC, so will the RadControl tools will be appear there if i do not install them in that PC
Sebastian
Telerik team
 answered on 04 Apr 2011
1 answer
119 views
Hi,

I am working on Scheduler.

I have an issue:

There are many people using my scheduler and they setup their appointment with this scheduler. Whoever logs in will have their details like first name and last name entered and is stored in the database tables.
Now, after logging in when they double click on the scheduler to setup an appointment, I want their first name and last name to be displayed on the scheduler overriding of what they want to save. Their first name and last name will be pulled from the database and should be displayed in the scheduler.
How do I do this? Is there any way?
Veronica
Telerik team
 answered on 04 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?