Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
231 views
Hello! I have been trying to get data bound to a textbox nested inside an ItemTemplate to no avail. I have attempted to bind it in code behind by looping through items in the list, as well as in the ASP and I am coming up with no answers.

As you can see below, I have three cells in the ComboBox, and I have no problems loading the combobox items not bound to asp objects.  The problem is that I am unable to bind values to the nested asp:CheckBox and asp:TextBox.

The text in the section <%#  DataBinder.Eval(Container, "Value")%> is all black, not three tone as is normal in VS2010.
It's almost as one cannot bind data to ASP items in an ItemTemplate.  Is that correct?

Here is the ASP.  If this is possible, what am I doing wrong?

Thanks in advance!

<telerik:RadComboBox runat="server" ID="ddlHardCopies" HighlightTemplatedItems="true" Width="250px" AllowCustomText="True">
    <ItemTemplate>
        <table>
            <tr>
                <td>
                    <asp:checkbox runat="server" ID="chkHardCopy" onclick="stopPropagation(event);" Text='<%# DataBinder.Eval(Container, "Value")%>'/>
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtHardCopyQuantity" onclick="stopPropagation(event);" Width="20px" Text='<%# DataBinder.Eval(Container, "Quantity")%>'/>
                </td>
                <td>
                    <%# DataBinder.Eval(Container, "Text")%>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</telerik:RadComboBox>
Mike
Top achievements
Rank 1
 answered on 08 Mar 2011
1 answer
148 views
See picture if a long word does not have space it exceeds the border instead of going into 2nd line.   Is this expected?

2010.3.1304.20 IE8
Marin Bratanov
Telerik team
 answered on 08 Mar 2011
1 answer
105 views

Hi,

The ASP.NET List Box control allowed the user to hold down shift then accumulate the selection i.e. select first item, second item then fourth and all items would be selected however in the Telerik ASP.NET AJAX List Box selecting first, second then fourth would select 2-4 and de-select the first item.

Does a setting exist that reverts back the behaviour of the old ASP.NET controls?

Genady Sergeev
Telerik team
 answered on 08 Mar 2011
1 answer
104 views
Hello,

I am using a Usercontrol as my edit form for my radgrid and cannot seem to get its Update button to function properly.

The grid is ajaxified with a radajaxmanager to update itself and has the OnUpdateCommand set to the name of my code-behind function that handles the grid's .UpdateCommand event.

The input button that I put in my usercontrol is shown below.

<asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" />

When clicked, it causes the Ajax loading panel to appear briefly but does not change anything (data or the edit form).  It does not close the edit form the way the Cancel button does, either.

Any idea what I might be missing here?

Mike

Tsvetoslav
Telerik team
 answered on 08 Mar 2011
4 answers
169 views
hello is there a way to add a margin to the editor tool bar when using "PageTop" ?
I don't want it display it at the very top but maybe 100px down from the top.
Thank you
Dobromir
Telerik team
 answered on 08 Mar 2011
11 answers
194 views
Hi there

I'm trying to develop an ascx control in Visual Studio 2008 SP1. I get the 'Fail to create designer' rendering error when I switch to the VS design page. Apparently this is due to the absence of Telerik.Web.Design.dll - am I correct in asssuming this. The trouble is, I'm using the 2010.2.929.35 version of Telerik.Web.UI integrated into DotNetNuke 5.6

My questions are:
1. Is there even such Telerik.Web.Design.dll to match this bundled version of Telerik.Web.UI ?
2. Is the error just cosmetic, or does it actually result in corruption of the designer.vb file in Visual Studio?
3. Am I OK to continue my ascx DNN module despite the error, or is there a download location for the correct version of this Telerik.Web.Design.dll, as it does not appear to be included in any of the DotNetNuke installation downloads?

Thanks very much if you can clarify this for me!

Regards






Helen
Telerik team
 answered on 08 Mar 2011
8 answers
120 views
Can you give me the option to set a CssClass on the detail rows?
Tsvetina
Telerik team
 answered on 08 Mar 2011
1 answer
140 views

User love to cut and paste from here and there. apply and reapply font styles etc.

This continuously leaves residual html, what for the user results in â€˜strange behavior’.


Is there some way to clean or prevent this? From the editor except from going in the source?

Stanimir
Telerik team
 answered on 08 Mar 2011
1 answer
106 views
Hi,
    Current version in use  RadControls for ASP.NET AJAX Q3 2010. Noticing issue with number and bullet list in editor, where after enabling number or bullet list for editor text not yet all seen in editor. After saved, content area is showing list outside reserved area of content.


Rumen
Telerik team
 answered on 08 Mar 2011
2 answers
162 views
I have a RadSplitter containing 3 horizontal panes, bottom and top fixed size.  The middle pane contains a html table with several Telerik controls, including RadButtons, NumericTextBoxes and other buttons.  The problem is that when the web browser is resized to be smaller than the natural size of the table, the button and checkbox controls appear frozen on the screen and do not scroll along with the rest of the contents of the RadPane.  The interesting part is that it only happens with IE7 and only when the web page is being hosted from a remote IIS server.  If I launch the project from VS2010 using the development web server, I see no problem.  If I deploy to the remote web server and use FireFox or Chrome the page renders and behaves properly.  It is only when I use IE7 and the browser window size is smaller than the size of the table (in which I expect to get the scrollbars just lime in Chrome and FF), 2 scrollbars appear and the controls appear frozen on the page.

The remote web server is a Win2003 IIS 6.0.  I'm using VS2010 with Telerik.Web.UI_2010_3_1317 and .NET4.0.

Included are 3 snapshots of the problem in IE and one of the page behaving properly in Chrome.  Here is the code (there is a lot of filler to increase the table size and illustrate the issue):

 

<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Sample.aspx.vb" Inherits="RadControlsWebApp1.Sample" %>
  
<!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" style="width: 100%; height: 100%; margin: 0px auto; padding: 0px;">
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body style="width: 100%; height: 100%; margin: 0px auto; padding: 0px;">
    <form id="form1" runat="server" style="width: 100%; height: 100%; margin: 0px auto; padding: 0px;">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Office2007">
    </telerik:RadSkinManager>
    <div style="width: 100%; height: 100%;">
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%" Orientation="Horizontal" VisibleDuringInit="false" BorderSize="0">
            <telerik:RadPane ID="RadPane1" runat="server" Height="20" Locked="true">
                <span style="vertical-align: middle; font-size: 14px; font-weight: bold; margin: 2px;">Title:</span>
            </telerik:RadPane>
            <telerik:RadPane ID="RadPane2" runat="server" Height="100%">
                <div style="height: 100%;">
                    <table>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <telerik:RadButton ID="CheckBox1" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox" Text="CheckBox1" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <telerik:RadButton ID="CheckBox2" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox" Text="CheckBox2" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <telerik:RadButton ID="CheckBox3" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox" Text="CheckBox3" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Print Count:
                                <telerik:RadNumericTextBox ID="NumericTextBox1" runat="server" NumberFormat-DecimalDigits="0" MaxValue="99" MinValue="0" Width="50" ShowSpinButtons="false" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Category:
                                <telerik:RadComboBox ID="ComboBox1" runat="server" Width="200px">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="Item 1" />
                                        <telerik:RadComboBoxItem Text="Item 2" />
                                        <telerik:RadComboBoxItem Text="Item 3" />
                                    </Items>
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <telerik:RadButton ID="RadButton1" runat="server" Text="Button1" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ..
                            </td>
                        </tr>
                    </table>
                </div>
            </telerik:RadPane>
            <telerik:RadPane ID="RadPane3" runat="server" Height="30" Locked="true">
                <table width="100%">
                    <tr>
                        <td>
                            <telerik:RadButton ID="RadButton2" runat="server" Text="Button2" AutoPostBack="false" />
                            <telerik:RadButton ID="RadButton3" runat="server" Text="Button3" AutoPostBack="false" />
                        </td>
                        <td style="text-align: right">
                            <telerik:RadButton ID="RadButton4" runat="server" Text="Button4" AutoPostBack="false" />
                            <telerik:RadButton ID="RadButton5" runat="server" Text="Button5" AutoPostBack="false" />
                        </td>
                    </tr>
                </table>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </div>
    </form>
</body>
</html>

Javier
Top achievements
Rank 1
 answered on 08 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?