Telerik Forums
UI for ASP.NET AJAX Forum
17 answers
1.0K+ views
Hi. I have followed the examples in both the offline documentation and your online demos and have been unable to bind a DataTable to the RadComboBox at runtime. The code appears to execute without a problem, but the dropdown menu for the combo is empty.

I am using the following code with simple, hardcoded values:
        protected void Lookup_ItemsRequested(object sender, RADHeaderTemplate.LookupBoxExpandedArgs e) 
        { 
            DataTable table; 
            RadComboBox combo; 
            DataRow row; 
 
            table = new DataTable(); 
 
            table.Columns.Add("Col1"); 
            table.Columns.Add("Col2"); 
            table.Columns.Add("Col3"); 
 
            row = table.NewRow(); 
            row.ItemArray = new string[] { "Row1Cell1""Row1Cell2""Row1Cell3" }; 
            table.Rows.Add(row); 
 
            row = table.NewRow(); 
            row.ItemArray = new string[] { "Row2Cell1""Row2Cell2""Row2Cell3" }; 
            table.Rows.Add(row); 
 
            combo = e.ComboBox; 
 
            combo.DataSource = table; 
            combo.DataBind(); 
        }     

Is there any reason that nothing shows up in the RadComboBox once this function is complete?
chandra
Top achievements
Rank 1
 answered on 04 Apr 2009
1 answer
122 views

I am using the RadTree in the ASP.NET AJAX Toolkit and have run into a problem.  I cannot use the tri-state functionality for certain situations in my code and must use a custom JavaScript function to uncheck parent nodes when the child node is unselected.  I found this snippet in the knowledge base.  Unfortunately it does not work as promised. 

When I run this code it unchecks the parent node but also unchecks all of the current nodes siblings.  I put an alert function in the while loop and found that it returns a message that says “I am unchecking  undefined”.  What am I missing?  Thank you.

 

function clientNodeChecked(sender, eventArgs)

        {

           var node = eventArgs.get_node();  

           alert("I am unchecking " + node.Text);    

            if (!node.get_checked())

            {      

                while (node.get_parent().set_checked != null)

                {

                    node.get_parent().set_checked(false);

                    node = node.get_parent();

                    alert("I am unchecking " + node.Text);

                }

            }

        }

Michael
Top achievements
Rank 1
 answered on 04 Apr 2009
2 answers
113 views
When I enable RadCompression with the 2009.1.311.35 release of the RadControls for ASP.Net AJAX I get javascript errors like the following:

  • "Sys is not defined"
  • "WebForm_SaveScrollPosotionSubmit is not defined"

... and other similar errors.

If I either 1) roll back to the latest v2008 Q3 release or 2) comment out the RadCompression module in web.config  everything works correctly.

This is happening with both IE 7 and FF 3. The web server is IIS 6 running on Windows XP on my local workstation.

I am experiencing the same problem on two different web  applications. One is an ASP.Net 3.5 web project, the other is a ASP.Net 3.5 web application (recently converted from ASP.Net 1.1).

Any ideas as to what the problem could be?

Martillo
Top achievements
Rank 2
 answered on 03 Apr 2009
2 answers
113 views
I have a grid with a command button on each row in the grid.

When a user clicks the button, it fires off the ItemCommand

Once I'm there, I don't know how to get values out of the columns or data that is behind the grid.  Can someone give me a quick example of how to do this please?  I tried looking through the help and various pages but I'm not sure what to search on for this. 

Thanks in advance
Kevin
Kevin J
Top achievements
Rank 1
 answered on 03 Apr 2009
6 answers
287 views
Been using Telerik RadGrid for quite a while, but ran into a problem that I just can't figure out.

I'm using OpenAccess - and have successfully created a working set of persistent classes.

I want to do an "inner join" to flatten the dataset, and was using LINQ (which seemed like the easiest way to do it).

On NeedsDatasource event I set the datasource to a "generic RadGrid" with column names set to autogenerate:

 

            RadGrid1.DataSource = from x in OtogramContext.ObjectScope().Extent<Otogram>()  
                                  select new 
                                  {  
                                      Patient = x.patient.name,  
                                      Physician = x.physicianName,  
                                      HearingLoss = x.AMAHearingScore,  
                                      Clinic = x.clinicName,  
                                      Customer = x.customerID  
                                  }; 

This works great. Really fast, and I can do paging, sorting and grouping - and the column names get picked up automatically from the query. However, when I use the Filter in the RadGrid UI, nothing happens.

What am I doing wrong?

I've already tried this using an OpenAccess datasource and it does work - including filtering. But, its much more tedious (and slow). Would love to figure out how to get filtering to work with the LINQ query above.

Thanks.

Thomas
Telerik team
 answered on 03 Apr 2009
4 answers
114 views
Hi... another Dock question.

I'm trying to change the dockhandle type from "Grip" or "None" to "TitleBar" when undocking a Dock.  For the application I'm building, it is desireable to have an image representing what the dock will become when dragged onto the main stage.  Once on the stage I'd like to set it to look like a standard floating Dock.

I looked through the client API, but can't seem to find a way to update the dockhandle on the Client Side.  Any help would be great!

-Kurt
Kurt
Top achievements
Rank 1
 answered on 03 Apr 2009
4 answers
149 views
When I updated to Q1 2009, there was a very noticeable performance improvement with the tooltips.
Now that I updated to Q1 2009 SP1, (some of) my tooltips open in the upper left corner of my page, then move to the position they should be at, all this with much flickering and delay.
These tooltips are relative to elements inside an item template of a radcombobox, which itself is in a radslidingpane. And it worked beautifully and fast in Q1 2009. Now with SP1 it's a total mess. Why? The release notes don't mention anything. This is happening in IE6, IE7 and IE8.
Sylvain
Top achievements
Rank 1
 answered on 03 Apr 2009
7 answers
240 views
Hi,

I have added the line RadScheduler1.rowheight = 10 to my page (using ASP.Net Ajax 2008.3.1314.20).  Although this displays the time slots in the new height, the hours text on the left of the scheduler no longer lines up with the time slots, and the appointments within the days do not represent the actual time of each appointment - that is, they do not line up with the time slots displayed either.

David Penny
Amanda
Top achievements
Rank 1
 answered on 03 Apr 2009
1 answer
53 views
Hi,

I'm doing some custom paging on my Master/Detail radgrid via hooking into grid_ItemCreated event and replacing the numeric pager  with my own controls. So paging works like "numeric pager", it's just the displayed controls are different.

It works great in a single grid scenario, but when I added a detail grid however I can't rely on the _grid.CurrentPageIndex any more for keeping track of currentPageIndex.

Where in the grid can I access detail grid's CurrentPageIndex?

Any help would be appreciated. Thanks
Andrei Vieru
Top achievements
Rank 1
 answered on 03 Apr 2009
2 answers
63 views
We have upgraded to the Q1 2009 release but we're using the Q3 2008 skins.  We display our Editors so that only the statistics show and the spell checker is available but what we're seeing since switching back to the 2008 skins is that the spell check button image is fuzzy.  See below for a sample of what our markup looks like.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="ResQ.Contact.Test" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!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">  
    <link rel="Stylesheet" type="text/css" href="~/Skins/Dock.css" /> 
    <link rel="Stylesheet" type="text/css" href="~/Skins/Editor.css" /> 
    <link rel="Stylesheet" type="text/css" href="~/Skins/Spell.css" /> 
    <link rel="Stylesheet" type="text/css" href="~/Skins/ToolBar.css" /> 
    <link rel="Stylesheet" type="text/css" href="~/Skins/Widgets.css" /> 
    <link rel="Stylesheet" type="text/css" href="~/Skins/Window.css" /> 
    <link rel="Stylesheet" type="text/css" href="~/Skins/Office2007/Dock.Office2007.css" /> 
    <link rel="Stylesheet" type="text/css" href="~/Skins/Office2007/Editor.Office2007.css" /> 
    <link rel="Stylesheet" type="text/css" href="~/Skins/Office2007/Spell.Office2007.css" /> 
    <link rel="Stylesheet" type="text/css" href="~/Skins/Office2007/ToolBar.Office2007.css" /> 
    <link rel="Stylesheet" type="text/css" href="~/Skins/Office2007/Widgets.Office2007.css" /> 
    <link rel="Stylesheet" type="text/css" href="~/Skins/Office2007/Window.Office2007.css" />      
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
        <div style="margin: 3px 3px 3px 3px;">  
            <telerik:RadEditor ID="editor" runat="server"   
                Skin="Office2007" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false" 
                AutoResizeHeight="true" Height="55px" Width="800px"   
                ToolbarMode="Default" EnableResize="false" EditModes="Design">  
                <Modules> 
                    <telerik:EditorModule Name="RadEditorStatistics" Enabled="true" Visible="true" /> 
                </Modules> 
                <Tools> 
                    <telerik:EditorToolGroup Enabled="true" DockingZone="Right">  
                        <telerik:EditorTool Name="AjaxSpellCheck" /> 
                    </telerik:EditorToolGroup> 
                </Tools> 
            </telerik:RadEditor> 
        </div>   
    </form> 
</body> 
</html> 

Anythoughts on how to correct this?
PJ Melies
Top achievements
Rank 1
 answered on 03 Apr 2009
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?