Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
235 views
Hi,

When I tried to expand my nodes in my RadTreeView I get the following error: 'The server method 'LoadNodes' failed'

I've placed a RadTreeView on a UserControl, in the Page_Init the UserControl is initialized.
Control control = LoadControl("/Pages/Controls/MenuControl.ascx");
control.ID = "menuControl";
panelMenu.Controls.Add(control);

Now the RadTreeView is defined as following:
<telerik:RadTreeView ID="radTOC" runat="server" Width="250px" Visible="false" CssClass="RadTreeView_RadSkins"
    EnableEmbeddedSkins="False" ShowLineImages="false" Style="white-space: normal;">
    <WebServiceSettings Path="../../Services/TreeViewService.asmx" Method="LoadNodes" />
</telerik:RadTreeView>

The treenodes are added to the RadTreeView as following:
foreach (Publication sub in subPublications)
{
   RadTreeNode treeNode = new RadTreeNode(sub.Name, sub.PublicationID.ToString());
   treeNode.ExpandMode = TreeNodeExpandMode.WebService;
   radTOC.Nodes.Add(treeNode);
}

The webmethod in TreeViewService.asmx:
[System.Web.Script.Services.ScriptService]
public class TreeViewService : System.Web.Services.WebService
{
    [WebMethod]
    public static RadTreeNodeData[] LoadNodes(RadTreeNodeData node, object context)
    {
        List<RadTreeNodeData> result = new List<RadTreeNodeData>();
        RadTreeNodeData nodeData = new RadTreeNodeData();
        nodeData.Text = "Loaded on demand";
        nodeData.ExpandMode = TreeNodeExpandMode.WebService;
        result.Add(nodeData);
        return result.ToArray();
    }
}

Does anyone know what I'm doing wrong?

Regards,
Wouter splinter
Wouter
Top achievements
Rank 1
 answered on 03 May 2011
3 answers
88 views
I wish to implement the functionality where we have multiple comboboxes with autocomplete functionality in a datagrid. The comboboxes will be added dynamically by the user as required. For example if they wish to select mutlple locations in a search they will type the location in the first combobox, then add another combobox to search for the second location.

We had an implmentation with the old asp.net version of the rad controls but it has broken in IE9. I was looking for something similar using the latest ASP.Net AJAX controls that would be IE9 compatible.
Shinu
Top achievements
Rank 2
 answered on 03 May 2011
6 answers
390 views
Hi,

I am using Telerik 2010.2.929.20 version controls. I am having issues with the toolbar buttons of Editor control in IE 9. None of the buttons are working. If I click on any button, it just doesnt do anything. I also tried upgrading to Telerik 2011.1.413.35 version controls but facing the same issue.

Please reply ASAP!!!

Thanks!
Francois MARTIN
Top achievements
Rank 2
 answered on 03 May 2011
2 answers
92 views

I am trying to create a StackedBar chart but it seems to be rendering not as i would expect.

The chart is created programatically. I create a List<BindObj> (I have created a class 'BindObj') and then bind the chart to it.

BindObj:

public class BindObj
{
    public string GroupColumnValue { get; set; }
    public string XColumnValue { get; set; }
    public decimal YColumnValue { get; set; }
}

To create and bind the chart:

IList<BindObj> datasource = new List<BindObj>();

BindObj bindingObj1 = new BindObj();
bindingObj1.XColumnValue = "11/04/2011";
bindingObj1.YColumnValue = 1;
bindingObj1.GroupColumnValue = "11/04/2011";

BindObj bindingObj2 = new BindObj();
bindingObj2.XColumnValue = "11/04/2011";
bindingObj2.YColumnValue = 1;
bindingObj2.GroupColumnValue = "11/04/2011";

BindObj bindingObj3 = new BindObj();
bindingObj3.XColumnValue = "11/04/2011";
bindingObj3.YColumnValue = 1;
bindingObj3.GroupColumnValue = "11/04/2011";

BindObj bindingObj4 = new BindObj();
bindingObj4.XColumnValue = "13/04/2011";
bindingObj4.YColumnValue = 1;
bindingObj4.GroupColumnValue = "13/04/2011";

BindObj bindingObj5 = new BindObj();
bindingObj5.XColumnValue = "14/04/2011";
bindingObj5.YColumnValue = 1;
bindingObj5.GroupColumnValue = "14/04/2011";

BindObj bindingObj6 = new BindObj();
bindingObj6.XColumnValue = "14/04/2011";
bindingObj6.YColumnValue = 2;
bindingObj6.GroupColumnValue = "14/04/2011";

datasource.Add(bindingObj1);
datasource.Add(bindingObj2);
datasource.Add(bindingObj3);
datasource.Add(bindingObj4);
datasource.Add(bindingObj5); 
datasource.Add(bindingObj6);

RadChart testChart = new RadChart();
testChart.DefaultType = Telerik.Charting.ChartSeriesType.StackedBar;
testChart.PlotArea.XAxis.DataLabelsColumn = "XColumnValue";
testChart.DataGroupColumn = "GroupColumnValue";
testChart.DataSource = datasource;
testChart.DataBind();

I would have expected:
    _________                ________
    |                |                |                |
    | bindobj3 |                |                 |
    |________|                | bindobj6 |
    |                |                |                |
    | bindobj2 |                |                |
    |________|________|________|
    |                |                |                |
    | bindobj1 | bindobj4  |  bindobj5 |
    |________|________|________|
     11/04/11   13/04/11   14/04/11

All the items with an X Value of 11/04/11 in the first column, all the items with an X Value of 13/04/11 in the second and finally all the items with an X Value of 14/04/11 in the final column.

Instead I get:

    _________________
    |                |                |                
    | bindobj5 |                |                
    |________| bindobj6 |  
    |                |                |                
    | bindobj4 |                |                
    |________|________|________
    |                |                |                |
    | bindobj1 | bindobj2  |  bindobj3 |
    |________|________|________|
     11/04/11   13/04/11   14/04/11



I tried to attatch a sample project, but cant seem to attatch a zip file. Dropping the above code into a standard aspx page should illustrate what I am trying to say. 

Maybe I am just not thinking about this correctly?! Can anyone shed any light on how I would get the result I want?

Thanks,
Simon Letch
Top achievements
Rank 1
 answered on 03 May 2011
3 answers
91 views
I'm trying to generate content on a tooltip dynamically from a database. The problem is, I need to add dynamic check boxes. I looked through the demos but didn't see anything like this. I get an error when I try to add the checkbox, but I put it in to show what I need to do. I couldn't get the button to add either. Do you have any ideas? Here's the vb. The aspx for the tooltip is just standard stuff.

callBack.Text = "<div style=""margin-left: 10px; margin-top: 10px;""><b>Call Backs</b><br /><table cellpadding=""5"">"
callBack.Text &= "<tr><td>Customer:</td><td>Phone:</td><td>Call Back Date:</tr>"
 
Dim check As CheckBox
 
 
While reader.Read()
 
    check = New CheckBox
    check.ID = reader(4)
    check.Text = "Called Back"
 
    If (reader(3).ToString <> "") Then
        callBack.Text &= "<tr><td style=""width: 170px"">" & reader(2) & " - " & reader(3) & "</td><td>" & reader(1) & "</td><td>" & reader(0) & "</td><td>" & callBack.Controls.Add(check) & "</tr>"
    Else
        callBack.Text &= "<tr><td style=""width: 170px"">" & reader(2) & "</td><td>" & reader(1) & "</td><td>" & reader(0) & "</tr>"
    End If 'if reader(3)
     
 
 
End While
 
Dim btn As Button = New Button
btn.ID = "updateCall"
btn.Text = "Update"
callBack.Controls.Add(btn)
AddHandler btn.Click, AddressOf buttonClick
 
 
callBack.Text &= "</table><br /></div>"

 
callBack.Show()
Svetlina Anati
Telerik team
 answered on 03 May 2011
1 answer
73 views
Hi all,


When i change my page on rad datagrid or refresh the grid , along with data object is binded to the rad grid even i have autogeneratecolumns = false.

Any advice
Daniel
Telerik team
 answered on 03 May 2011
1 answer
97 views
Hi,

I'm developing a google-like search webpage and I wonder how to achieve the same presentation. I mean that some items have different layouts. If you look at google webpage, images/videos/news items have different layouts. Can we achieve this using RadListView? (it would mean loading templates dynamically for each item) or maybe using other controls... ?
Maria Ilieva
Telerik team
 answered on 03 May 2011
4 answers
163 views
Hello All,

I am currently performing DDA I have a question regarding the Telerik ASP.NET controls and accessibility support.

Accessibility support for these controls is documented here - http://www.telerik.com/products/aspnet-ajax/getting-started/accessibility-support.aspx.  It states that the Telerik Grid has a W3C compliance level of "AA".  

If you read the W3C WCAC guildelines available here - http://www.w3.org/TR/WCAG10-HTML-TECHS/#identifying-table-rows-columns, you will notice that the example code for identifying row and column information includes "<CAPTION>" and "headers" tags as part of the priority 1 ("A") compliance.  I have checked the Telerik Grid (available here - http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/accessibility/defaultcs.aspx) and it does not appear to generate this information. 

My question is, how is the Telerik Grid "AA" W3C complaint without implementing this functionality?

Many thanks in advance for any information you may have.

Regards,

Aaron
A
Top achievements
Rank 1
 answered on 03 May 2011
1 answer
84 views

I can not figure out what css controls the gray area as shown in the attached image.  What css is it?

Thanks

John
Dimo
Telerik team
 answered on 03 May 2011
1 answer
45 views
Hello,

I used sitefinity skin for the raddcok control. Its really awesome. But there are few dot like appearance at the start of title bar.

It consumes some space. How to remove those dots? Please see attached image.
Bozhidar
Telerik team
 answered on 03 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?