Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
213 views
I've been trying to convert a website to use the current Telerik tools but I've been unable to resolve a couple of errors.

First I cannot seem to find an alternative to RadEditorUtils.Link in the Telerik.Web.UI dll.

I am also getting some event not found errors on the SubmitClicked and CancelClicked events of the editor. I'm not sure if that will go away once I am able to compile the website.

Kate
Telerik team
 answered on 05 Feb 2013
3 answers
201 views
How  can i create a scheduler or what do I need to add to my scheduler that every user can use the same scheduler but he  cannot see what the other one is inserting / updating / deleting 

can you give me some good advise or even a solution ? 

Thanks for fast answer and help 
Plamen
Telerik team
 answered on 05 Feb 2013
1 answer
138 views
Hi,

We're using the following code to print the content of a radpane :
But the newly opened window does not close itself after printing.
Is there any way to achieve this behaviour?
function clientButtonClicking(sender, args) {
                   var toolBar = sender;
                   var button = args.get_item();
 
                   if (button.get_value() == "print") {
                       var splitter = $find('<%= RadSplitter2.ClientID%>');
                       var pane = splitter.GetPaneById('<%= RadPaneContentDetail.ClientID %>');
                       if (!pane) return;
                       pane.Print();
                   }                    }
               }
Vessy
Telerik team
 answered on 05 Feb 2013
1 answer
134 views
We are using 2 treeviews to allow users to move items from one to the other.  After moving the selected items, we are programmatically setting the next node available as selected. When we try to multi-select again after the move we get the following error:

Microsoft JScript runtime error: Unable to get value of the property 'get_nodes': object is null or undefined

Here is a snippet of our JS source.
function Left() {
    if (availableTree.get_selectedNode()) {
        var sourceNodes = availableTree.get_selectedNodes();
        var index = sourceNodes[0].get_index();
        var destNodeList = selectedTree.get_nodes();
        var destNode;
        if (destNodeList) {
            destNode = destNodeList.getNode(0);
            }
        onNodeDroppingPrivate(availableTree, sourceNodes, destNode, "add");
        if (availableTree.get_nodes().get_count() == index) {
            index = index - 1;
        }
        availableTree.get_nodes().getNode(index).set_selected(true);
    }
    else {
        alert("Please select a service level to transfer");
    }
    SetSaveToFalse();
 
}
 
function onNodeDroppingPrivate(sender, sourceNodes, destinationNode, position) {
    var retVal = dropOnTree(sourceNodes); /*gets value of dragged node*/
    if (retVal != "0") {
        clientSideEdit(sender, sourceNodes, destinationNode, position);
    }
    else {
        alert("There are no service levels to transfer.");
    }
    SetSaveToFalse();
}
 
function dropOnTree(sourceNodes) {
    var text = "";
 
    if (sourceNodes.length) {
        var i;
        for (i = 0; i < sourceNodes.length; i++) {
 
            var node = sourceNodes[i];
            if (node.get_attributes().getAttribute("Category") == "true") {
                node = node.get_nodes().getNode(0);
            }
            text = node.get_value();
            break;
        }
    }
    return text;
}
 
function clientSideEdit(sender, sourceNodes, destinationNode, position) {
    availableTree.trackChanges();
    selectedTree.trackChanges();
 
    if (destinationNode)
    {
        for (var i = 0; i < sourceNodes.length; i++) {
            var sourceNode = sourceNodes[i];
            var sourceParent = sourceNode.get_parent();
            sourceParent.get_nodes().remove(sourceNode);
 
            if (sourceParent.get_nodes().get_count() == 0) {
                var node = new Telerik.Web.UI.RadTreeNode();
                node.set_value("0");
                if (sourceParent.get_id() == availableTree.get_id())
                    {
                    node.set_text("All available service levels have been selected.");
                    }
                    else
                    {
                    node.set_text("No service levels have been selected.");
                    }
                sourceParent.get_nodes().add(node);
            }
            if (position == "over") insertAfter(destinationNode, sourceNode);
            if (position == "above") insertBefore(destinationNode, sourceNode);
            if (position == "below") insertAfter(destinationNode, sourceNode);
            if (position == "add") add(destinationNode, sourceNode);
        }
 
        destinationNode.set_expanded(true);
 
        availableTree.commitChanges();
        selectedTree.commitChanges();
    }
}
function add(destinationNode, sourceNode) {
    var destinationParent = destinationNode.get_parent();
    GetAttribute(destinationParent, sourceNode);
    /* If destination parent contains 'No Nodes exist', new node added takes its place*/
    if (destinationParent.get_nodes().getNode(0).get_value() == "0") {
        destinationParent.get_nodes().getNode(0).set_text(sourceNode.get_text());
        destinationParent.get_nodes().getNode(0).set_value(sourceNode.get_value());
        AddTheEditButton(destinationParent.get_nodes().getNode(0), destinationParent.get_nodes().getNode(0));
    }
    else {
        if (destinationParent.get_id() == selectedTree.get_id()) {
            addEditButton(destinationNode, sourceNode, "add", 0);
        }
        else {
            destinationParent.get_nodes().add(sourceNode);
            sourceNode.set_checked(true);
        }
    }
 
    return "false";
}

Kate
Telerik team
 answered on 05 Feb 2013
2 answers
165 views

Even after selecting IsCaseSensitive to false, my searches are case sensetive. For example entering "test" doesn't return me "Test"
 
Below is my code :


<
telerik:RadComboBox ID="radCombobox1" Runat="server" AutoPostBack="true" IsCaseSensitive="false"

 

 

OnSelectedIndexChanged="radCombobox1_OnSelectedIndexChanged"

 

DataSourceID="LinqDataSource_Users" DataValueField="ID"

 

DataTextField="Name" EnableAutomaticLoadOnDemand="true" RadComboBoxImagePosition="Right"

 

ShowToggleImage="false"

 

ItemsPerRequest="10" ShowMoreResultsBox="true"

 

EnableVirtualScrolling="true" CssClass="search-input" MarkFirstMatch="True" EmptyMessage="Search for contacts" SortCaseSensitive="True" Filter="StartsWith">

</telerik:RadComboBox>

 

 

 

<asp:LinqDataSource ID="LinqDataSource_Users" runat="server"

 

TableName="usp_Users"

 

ContextTypeName="MyDataContext" OrderBy="Name"

 

OnSelecting="LinqDataSource_Users_Selecting" > </asp:LinqDataSource>



Nencho
Telerik team
 answered on 05 Feb 2013
1 answer
178 views
I have a WCF Web Service that returns a list of PeopleInfoDTO, however when I DataBind, nothing is displayed. I've confirmed 155 rows objects are returned. Any ideas?

        List<PeopleInfoDTO> people = _service.GetAllActiveEmployees();
        PeopleInfoDTO s = new PeopleInfoDTO();
        //s.LastName
 
        RadOrgChart1.DataFieldID = "ManagerEmployeeNumber"; //s.EmployeeNumber
        RadOrgChart1.DataFieldParentID = "EmployeeNumber"; //s.ManagerEmployeeNumber
        RadOrgChart1.DataTextField = "LastName"; //s.LastName
        RadOrgChart1.DataSource = people;
        RadOrgChart1.DataBind();

<telerik:RadOrgChart runat="server" ID="RadOrgChart1" Skin="Default" 
            ondatabinding="RadOrgChart1_DataBinding" ondatabound="RadOrgChart1_DataBound" 
            ondisposed="RadOrgChart1_Disposed" ondrilldown="RadOrgChart1_DrillDown" 
            ongroupexpandcollapse="RadOrgChart1_GroupExpandCollapse" 
            ongroupitemdatabound="RadOrgChart1_GroupItemDataBound" 
            ongroupitemdrop="RadOrgChart1_GroupItemDrop" oninit="RadOrgChart1_Init" 
            onload="RadOrgChart1_Load" onnodedatabound="RadOrgChart1_NodeDataBound" 
            onnodedrop="RadOrgChart1_NodeDrop" 
            onnodeexpandcollapse="RadOrgChart1_NodeExpandCollapse" 
            onprerender="RadOrgChart1_PreRender" onunload="RadOrgChart1_Unload">
        </telerik:RadOrgChart>
Peter Filipov
Telerik team
 answered on 05 Feb 2013
2 answers
85 views

Hello,
I am new to Telerik and first time creating report using RadChart with Multiple series.

I need to assign the each series with X and Y values directly from Data table.

Please help.

Sample Code behind:

ChartSeries SS = new ChartSeries();

            SS.Type = ChartSeriesType.Line;
            SS.DataYColumn = "Value";
            SS.DataXColumn = "Date";
            //Need to assign Datatable which is having 2 columns Date (Like) 1-Jan, 2-Jan (no year) )) and Sales value(like 30, 50)
            RadChart1.Series.Add(SS);
Likewise i need to add 4 to 5 series.

Thanks,
Moorthy
Ves
Telerik team
 answered on 05 Feb 2013
2 answers
124 views
Hi there I have a radcalendar which has highlighted dates from a dictionary which contains a list of datetimes. The dates are expiry dates for courses and in the dictionary I have the names matched against the right dates. Only the last course name of the list of courses expiring for a date is being displayed so if i have "Word Course", and "Excel Course" and they both expire 31/12/13 the tooltip is coming out as "Excel Course" only instead of "Word Course, Excel Course". I'm unsure how to get this working any help would be greatly appreciated. Here is my current code:

  public void RadCalendar_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
    {


        DBSecurity security = SecurityBAL.TryCastSecurity(Session);
        int index = 0;
        foreach (KeyValuePair<string, DateTime?> pair in expiringCourses)
        {
            RadCalendarDay calendarDay = new RadCalendarDay();
            string name = pair.Key;
            DateTime? date = pair.Value;
            calendarDay.ItemStyle.BorderColor = Color.Blue;
            calendarDay.Date = date.Value;
            if (!calendarDay.ToolTip.Contains(name))
            {
                calendarDay.ToolTip += name;
                calendarEvents.SpecialDays.Add(calendarDay);
            }

        }
}
James
Top achievements
Rank 1
 answered on 05 Feb 2013
1 answer
376 views
Hi

     How can I hide the add new record button if there are more than 10 row in radgrid. Please help

thanks
RT
Shinu
Top achievements
Rank 2
 answered on 05 Feb 2013
3 answers
220 views
Hi,

Is it possible to have a chart which displays only positive values without setting manually Min and Max values?
What I am looking for is a property like the LinearAxis.RangeExtendDirection in the SIlverlight ChartView, is it available in the .net control?

Thanks,

Michele
Peshito
Telerik team
 answered on 05 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?