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

First of all thanks to telerik team for their awesome controls.

After searching a lot on Telerik website I am writing my problem here, though there is some suggestion in some threads of the forum but truly speaking none of the solution is satisfying my requirement.

Here is what I want to achieve ->  My project is displaying RadGrid height correctly and it is filling the page correctly on a screen resolution of (1024 X 768), but problem arise when screen resolution change to some higher value (e.g. 1440 X 900). On high resolution grid looks like hanging in the middle of the browser. Please note that RadGrid scroll height is hard coded in each .aspx page depending on the space available for Radgrid( Means there are also some controls above the Grid like Menu's, tabs, export to excel button etc, which are screen specific,though Menu's are contained in Master page)

Radgrid is using Virtual scrolling, Filtering, static headers, RadToolbar etc.

To make my point clear I made a sample project which demonstrate my page and project structure and here is the link to sample project -

http://www.woofiles.com/dl-242315-4N3ibXA3-GridHeightDemo.zip

I also attached the screen shot of screen on resolution (1024 X 768)  which is working fine and on resolution (1440 X 900) in which grid is hanging out in the middle of browser.

It would be nice if anyone can modify the attached sample project so that it will display consistent on all resolution. I beleive if we can solve this issue it will benefit many others guys also.

Here is detail of environment I am using -

RadControls Version - RadControls for ASP.NET AJAX Q1 2010 ( File Version and product Version - 2010.1.309.20)
ASP.NET version - (ASP.Net 3.5)
Browser - Internet explorer 8 (Version - 8.0.6001.18904)
programming language - C#

Thanks,
Dheeraj
Dheeraj
Top achievements
Rank 1
 answered on 03 May 2011
1 answer
32 views
I have a cascading menu with templated items, where the template consists of 2 halves, left and right. I only want the child items menu to popup when the mouse if moved into the right half, not the left. Is this possible?

Cheers
Shinu
Top achievements
Rank 2
 answered on 03 May 2011
2 answers
67 views
I'm new to these controls. Normally to add an item to a listbox webcontrol I just had to do
 --->>>>  listbox1.items.add("value here") and all was right with the world

Now using the RadListBox I can not do this. I have tried using the RadListBoxItem
DIm itemout as RadListBoxItem
itemout.text = "some value"
radlistbox1.Items.add(itemout)        

BUT using this approach I get compiler error

--->>    Could not find a match for method 'RadListBox1.Items.Add' for the given parameter types: String.

How do I just add a simple value to my listbox???

Help

gollnick

William Gollnick
Top achievements
Rank 1
 answered on 03 May 2011
5 answers
160 views
I've tried everything I can think of but this control just will not render on my page.  From FireFox's error console, I can see the reason for this is because of 4 Javascript errors:

Error: illegal character 
Source File: http://localhost:2173/dev/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.2.701.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7e598a31-3beb-49a1-914c-5f530240f0ea%3a16e4e7cd%3af7645509%3a24ee1bba%3aa585d0d4 
Line: 1 
Source Code: 
� `I�%&/m�{J�J��t��`$ؐ@�����iG#)�*��eVe]f@�흼 ��{���{��;�N'���?\fdl��J�ɞ!���?~|?"~�?�7�5��:��������t�g��������w~�w������?��-��O�=���������O��~������~��g�̿��������}��?�����/��=������������,���;��?���_�O�.��/��������������?���� 

Error: ASP.NET Ajax client-side framework failed to load. 
Source File: http://localhost:2173/dev/test2.aspx 
Line: 40 
 
Error: Sys is not defined 
Source File: http://localhost:2173/dev/test2.aspx 
Line: 46 
 
Error: Sys is not defined 
Source File: http://localhost:2173/dev/test2.aspx 
Line: 64 


Yes those weird characters are what shows up in the error console.  The entire contents of my page are as follows (I've registered my telerik reference in the web.config, works with all other telerik controls I've used so far):

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test2.aspx.cs" Inherits="Test2" %> 
 
<!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"
</head> 
<body> 
    <form runat="server"
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" /> 
    <telerik:RadUpload runat="server" ID="RadUpload1" TargetFolder="~/uploads/flash"
    </telerik:RadUpload> 
    </form> 
</body> 
</html> 

I've also registered the upload module and handler, disabled my URLRewriting, swapped the order of the modules/handlers...nothing worked.  A help article I read said to check Telerik.RadUploadProgressHandler.aspx (I assume this is for the old version and should be .ashx now) and make sure the line shows up:
var rawProgressData = {InProgress:false,ProgressCounters:false};

I'm in Full Trust and my web.config looks like this for the module/handler sections:

 <httpModules> 
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> 
</httpModules> 
<httpHandlers> 
            <remove verb="*" path="*.asmx" /> 
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> 
            <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" /> 
            <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" /> 
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" /> 
            <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" />     
    </httpHandlers> 

I would really like to use this control for some video uploads mainly for the progress area, so please help me.

Genady Sergeev
Telerik team
 answered on 03 May 2011
6 answers
224 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
84 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
383 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
88 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
88 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
71 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?